#include <straight/straight.h> stBool straightSpecgramInitConfig(StraightSpecgramConfig *config);
#include <straight/straight.h> StraightSpecgram straightSpecgramInitialize(StraightSpecgramConfig *config);
#include <straight/straight.h> stBool straightSpecgramDestroy(StraightSpecgram specgram);
#include <straight/straight.h> stBool straightSpecgramCompute(Straight straight, StraightSource source, StraightSpecgram specgram, double *inputWave, long inputWaveLength);
#include <straight/straight.h> long straightSpecgramGetNumFrames(StraightSpecgram specgram); long straightSpecgramGetFrequencyLength(StraightSpecgram specgram); double straightSpecgramQuantizePosition(Straight straight, StraightSpecgram specgram, double positionSec, long *framePtr); double straightSpecgramGetFramePosition(Straight straight, StraightSpecgram specgram, long frame); stBool straightSpecgramGetSpectrum(Straight straight, StraightSpecgram specgram, long frame, double *specBuffer, long specBufferLength); stBool straightSpecgramSetSpectrum(Straight straight, StraightSpecgram specgram, long frame, double *specBuffer, long specBufferLength); double *straightSpecgramGetSpectrumPointer(Straight straight, StraightSpecgram specgram, long frame); stBool straightSpecgramCreate(Straight straight, StraightSpecgram specgram, long nframes); stBool straightSpecgramIsFixedFrameShift(StraightSpecgram specgram);
straightSpecgramQuantizePositionは、秒単位の時刻を、 その時刻に最も近いスペクトログラムのフレームの時刻に変換します。 straightSpecgramGetFramePositionは、該当のフレーム番号の時刻(秒単位)を取得します。
straightSpecgramGetSpectrumは、特定のフレームのスペクトルの内容を指定されたバッファに取得します。 straightSpecgramSetSpectrumは、特定のフレームのスペクトルの内容を指定されたバッファの内容で置き換えます。 straightSpecgramGetSpectrumPointerは、特定のフレームのスペクトルの内容を 保持する内部バッファへのポインタを取得します。 このポインタを用いて内容を書き換えれば内部バッファの内容を書き換えることができます。 これらの関数は、内部バッファが作られていない状態の場合にはエラーになります。
straightSpecgramCreateは、スペクトログラムの内容を保持する内部バッファを新たに作成します。
straightSpecgramIsFixedFrameShiftは、スペクトログラムの分析において、 フレームシフトが固定長であるかどうかを調べます。 現在の実装では、固定長のフレームシフトのみをサポートしてます。
Last modified: "2013-04-08 17:10:20 hideki"