AudioAnalyzeFFT1024 - Range of values

netmindz

Member
What is the range of values retuned by the read method of AudioAnalyzeFFT1024. I know it's a float but what's the max value of this?

On a related note, as I'm migrating from using a dedicated MSGEQ7 using https://github.com/NicoHood/MSGEQ7 that has the idea of ReadsPerSecond is there a comparable "resolution" to the FFT? the fft1024.available() looks to be the substitution for MSGEQ7.read() but I can't see how you set how often you wish it to fire
 
I believe the range depends on which FFT window is used as they are not normalized for level IIRC.

Perhaps connect a AudioSynthWaveformSine into AudioAnalyzeFFT1024 to find out? A full-scale sinewave will
produce the largest peak possible. Choose a frequency thats a multiple of 44100/1024 to avoid scalloping error,
such as 44100.0 / 16.

The available() call is true once there are enough samples and an FFT has been performed, and when available()
returns true you have to read all the spectrum data you need before it changes again (I believe that's 4 audio blocks
later)
 
Back
Top