getFloatFrequencyData abstract method

void getFloatFrequencyData(
  1. TauFloat32Array array
)

The getFloatFrequencyData() method of the AnalyserNode Interface copies the current frequency data into a Float32Array array passed into it. Each array value is a sample, the magnitude of the signal at a particular time.

Each item in the array represents the decibel value for a specific frequency. The frequencies are spread linearly from 0 to 1/2 of the sample rate. For example, for a 48000 Hz sample rate, the last item of the array will represent the decibel value for 24000 Hz.

If you need higher performance and don't care about precision, you can use AnalyserNode.getByteFrequencyData instead, which works on a Uint8Array.

Implementation

void getFloatFrequencyData(TauFloat32Array array);