C# Class ux.Component.Envelope

時間によって変化するパラメータを実装するためのエンベロープ (包絡線) クラスです。
ファイルを表示 Open project: nanase/ux Class Usage Examples

Public Methods

Method Description
Attack ( ) : void

エンベロープの状態をアタック状態に変更します。

CreateConstant ( float samplingFreq ) : Envelope

値の変化しない、常に一定値を出力するエンベロープを作成します。

Envelope ( float samplingFreq ) : ux.Utils

サンプリング周波数を指定して新しい Envelope クラスのインスタンスを初期化します。

Generate ( int time, float envelopes, int count ) : void

現在のエンベロープの状態に基づき、エンベロープ値を出力します。

Release ( int time ) : void

エンベロープの状態をリリース状態に変更します。

Reset ( ) : void

このインスタンスにおけるすべてのパラメータを既定値に戻します。

SetParameter ( int data1, float data2 ) : void

パラメータを用いてこのエンベロープの設定値を変更します。

Silence ( ) : void

エンベロープの状態をサイレンス状態に変更します。

Method Details

Attack() public method

エンベロープの状態をアタック状態に変更します。
public Attack ( ) : void
return void

CreateConstant() public static method

値の変化しない、常に一定値を出力するエンベロープを作成します。
public static CreateConstant ( float samplingFreq ) : Envelope
samplingFreq float サンプリング周波数。
return Envelope

Envelope() public method

サンプリング周波数を指定して新しい Envelope クラスのインスタンスを初期化します。
public Envelope ( float samplingFreq ) : ux.Utils
samplingFreq float サンプリング周波数。
return ux.Utils

Generate() public method

現在のエンベロープの状態に基づき、エンベロープ値を出力します。
public Generate ( int time, float envelopes, int count ) : void
time int エンベロープの開始時間値。
envelopes float 出力が格納される実数の配列。
count int 代入される実数値の数。
return void

Release() public method

エンベロープの状態をリリース状態に変更します。
public Release ( int time ) : void
time int リリースが開始された時間値。
return void

Reset() public method

このインスタンスにおけるすべてのパラメータを既定値に戻します。
public Reset ( ) : void
return void

SetParameter() public method

パラメータを用いてこのエンベロープの設定値を変更します。
public SetParameter ( int data1, float data2 ) : void
data1 int 整数パラメータ。
data2 float 実数パラメータ。
return void

Silence() public method

エンベロープの状態をサイレンス状態に変更します。
public Silence ( ) : void
return void