getByteFrequencyData abstract method
- TauUint8Array array
The getByteFrequencyData()
method of the AnalyserNode interface
copies the current frequency data into a Uint8Array
(unsigned byte
array) passed into it.
The frequency data is composed of integers on a scale from 0 to 255.
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 48000
sample rate, the last item of the array
will represent the decibel value for 24000
Hz.
If the array has fewer elements than the AnalyserNode.frequencyBinCount, excess elements are dropped. If it has more elements than needed, excess elements are ignored.
Implementation
void getByteFrequencyData(TauUint8Array array);