Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Frequency range of AnaylserNode.getFloatFrequencyData()/getByteFrequencyData()

For the AnalyserNode in the Web Audio API, what is the frequency range of the data returned by getFloatFrequencyData() and getByteFrequencyData()? Can I assume the AnalyserNode is simply FFT, making the range zero-to-half-the-sample-rate?

like image 880
Brad Avatar asked Oct 18 '22 23:10

Brad


1 Answers

Yes, that's correct. The frequency bins are linearly spread across the frequencies from 0 to 1/2 the sample rate.

like image 159
cwilso Avatar answered Oct 21 '22 20:10

cwilso