I was curious how you set it since the default is 2048. I also had a question about FFT itself. A sample rate of 2048 means it will create 2048 ” mini ranges” over which the frequencies will be calculated?
 Darryl Vo asked 3 years ago
 You must login to post comments
int window = 512;
fftDsp>setParameterInt(FMOD_DSP_FFT_WINDOWSIZE, window);
The number of frequency bins is half the FFT size.
 Nicholas Wilcox answered 3 years ago

the number of frequency bins is half the fft window size?
oh thats what this comment was referring too?
“Only read/display half of the buffer typically for analysis as the 2nd half is usually the same data reversed due to the nature of the way FFT works.”http://www.fmod.org/docs/content/generated/FMOD_DSP_PARAMETER_FFT.html

Yes. To be precise the first half of the FFT buffer contains the positive frequencies, which is what you’re interested in. The second half contains the negative frequencies, which is symmetrical to the positive frequencies.
 You must login to post comments
Please login first to submit.