ailiaAudioGetFBMatrix method
~japanese @brief メルフィルタバンクの係数を計算します。 @param dst 出力データのポインタ、float 型、外側から mel_n, freq_n 順のメモリレイアウト @param freq_n 周波数のインデックス数 @param f_min 周波数の最小値 @param f_max 周波数の最大値 @param mel_n メル周波数のインデックス数( < freq_n) @param sample_rate サンプリング周波数 @param mel_norm 出力される係数の正規化の有無、AILIA_AUDIO_MEL_NORMALIZE_* のいずれか @param mel_formula MEL尺度の形式、AILIA_AUDIO_MEL_SCALE_FORMULA_* のいずれか @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。
~english @brief Create a mel filter-bank. @param dst pointer to the output data, of float format, and of length (mel_n * freq_n). (memory layout, using the row-major convention: (mel_n, freq_n)) @param freq_n number of frequency indices for the FFT (1+fft_n/2) @param f_min lowest frequency @param f_max highest frequency @param mel_n number of mel frequency bins in the output (< freq_n) @param sample_rate sampling rate for the signal that will be inputted to this filter @param mel_norm whether to normalize the output (and the type of the normalization): any of the AILIA_AUDIO_MEL_NORMALIZE_* constants @param mel_formula mel scale format: any of the AILIA_AUDIO_MEL_SCALE_FORMULA_* constants @return In case of success, \ref AILIA_STATUS_SUCCESS , and else an error code is returned.
Implementation
int ailiaAudioGetFBMatrix(
ffi.Pointer<ffi.Void> dst,
int freq_n,
double f_min,
double f_max,
int mel_n,
int sample_rate,
int mel_norm,
int mel_formula,
) {
return _ailiaAudioGetFBMatrix(
dst,
freq_n,
f_min,
f_max,
mel_n,
sample_rate,
mel_norm,
mel_formula,
);
}