I would like to work with percentages while doing some FFT with the web audio API.
To do so I need to know the range of the values the analyser.getByteFrequencyData
returns.
I can't find anything about that, maybe someone knows?
Thanks
analyser.getByteFrequencyData returns a normalized array of values between 0 and 255.
The length of the array is half the value of analyzer.fftSize. So if analyzer.fftSize = 1024 analyser.getByteFrequencyData will return an array with 512 values. Also see https://stackoverflow.com/a/14789992/4303873 for more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With