最終更新:2013-03-07 (木) 11:27:53 (4061d)  

AnalyserNode
Top / AnalyserNode

ビジュアライザFFTとか

インターフェイス

interface AnalyserNode : AudioNode {

    // Real-time frequency-domain data 
    void getFloatFrequencyData(Float32Array array);
    void getByteFrequencyData(Uint8Array array);

    // Real-time waveform data 
    void getByteTimeDomainData(Uint8Array array);

    attribute unsigned long fftSize;
    readonly attribute unsigned long frequencyBinCount;

    attribute float minDecibels;
    attribute float maxDecibels;

    attribute float smoothingTimeConstant;

};

属性

  • fftSize? - 周波数の解析に使われるFFTのサイズ。2の累乗でなければならない。
  • frequencyBinCount? - FFTサイズの半分
  • minDecibels? - The minimum power value in the scaling range for the FFT analysis data for conversion to unsigned byte values.
  • maxDecibels? - The maximum power value in the scaling range for the FFT analysis data for conversion to unsigned byte values.
  • smoothingTimeConstant? - A value from 0 -> 1 where 0 represents no time averaging with the last analysis frame.

メソッド

関連