いらないモノ、ひつようなモノ

書籍、音楽、そして若干のテクノロジー

Performing the Analysis

The analyze function in the Loris procedural interface performs an analysis according to the current configuration of analysis parameters. It is an error to call analyze before calling analyzer_configure.

最初にanalyze_configureを呼んでパラメータを設定してからでないと解析は出来ない。

partials = createPartialList();
analyze( buffer, bufsize, srate, partials );

The first two arguments specify the array of samples (doubles) to analyze and the number of samples in the array. The third argument is the sample rate.

buffer, bufsize,で解析する音データがdoubleで入っている。
srateには音データのサンプル周波数。

The final argument is a PartialList that is to store the partials constructed in the analysis. The PartialList is not created by the analyzer, it must be created before calling analyze using the createPartialList function. The analyzer performs thousands of discrete Fourier transforms, so it may take a few seconds. Be patient.

PartialListの最後のパラメータに解析結果のpartialが保存されるが、解析前にcreatePartialList関数で領域を確保しておく。アナライザーは数千の離散フーリエ変換を行うので少し時間がかかる。