C# Class SoundLibrary.WaveAnalysis.WaveAnalyzer

Wave ファイル解析用クラス。
Datei anzeigen Open project: ufcpp/UfcppSample Class Usage Examples

Public Methods

Method Description
ReadData ( string filename, int skip, int length ) : void

データ wave の読み出し。

ReadData ( string filename, int skip, int length, double threshold, bool relative ) : void

データ wave の読み出し。 無音区間の除去を行う。

ReadData ( string filename, int skip, int length, double threshold, bool relative, int dstLength ) : void

データ wave の読み出し。 無音区間の除去を行う。

ReadData ( string filename, int skip, int length, int dstLength ) : void

データ wave の読み出し。

WirteData ( string filename ) : void

データ wave の書き込み。

Private Methods

Method Description
CopyArray ( double src, int index, int length ) : double[]

配列をコピー

CopyArray ( double src, int index, int length, int dstLength ) : double[]

配列をコピー コピー後の配列の長さの方が長い場合、後ろを0詰め

GetPeekValue ( double x ) : double

配列のピーク値を求める。

GetSilentLength ( double x, double threshold ) : int

無音区間の長さを求める。

Read ( string filename, int skip, int length ) : WaveData

ファイルから Wave データを読み出し。

Read ( string filename, int skip, int length, double threshold, bool relative ) : WaveData

ファイルから Wave データを読み出し。

Read ( string filename, int skip, int length, double threshold, bool relative, int dstLength ) : WaveData

ファイルから Wave データを読み出し。 (後ろ0詰め)

Read ( string filename, int skip, int length, int dstLength ) : WaveData

ファイルから Wave データを読み出し。 (後ろ0詰め)

Method Details

ReadData() public method

データ wave の読み出し。
public ReadData ( string filename, int skip, int length ) : void
filename string ファイル名
skip int ファイルの先頭を読み飛ばす長さ
length int 読み込む長さ
return void

ReadData() public method

データ wave の読み出し。 無音区間の除去を行う。
public ReadData ( string filename, int skip, int length, double threshold, bool relative ) : void
filename string ファイル名
skip int ファイルの先頭を読み飛ばす長さ
length int 読み込む長さ
threshold double 閾値
relative bool 閾値にピーク値から見た相対値を使う
return void

ReadData() public method

データ wave の読み出し。 無音区間の除去を行う。
public ReadData ( string filename, int skip, int length, double threshold, bool relative, int dstLength ) : void
filename string ファイル名
skip int ファイルの先頭を読み飛ばす長さ
length int 読み込む長さ
threshold double 閾値
relative bool 閾値にピーク値から見た相対値を使う
dstLength int コピー後の配列の長さ
return void

ReadData() public method

データ wave の読み出し。
public ReadData ( string filename, int skip, int length, int dstLength ) : void
filename string ファイル名
skip int ファイルの先頭を読み飛ばす長さ
length int 読み込む長さ
dstLength int コピー後の配列の長さ
return void

WirteData() public method

データ wave の書き込み。
public WirteData ( string filename ) : void
filename string ファイル名
return void