0
0

Hi, I know the frequencies returned in the spectrum are between 1hz and the nyquist as the doc’s say but, what are the actual frequencies which are returned throughout the 512 float buffer?

PS Or could someone show me how to calculate them ?

Cheers Leo

  • You must to post comments
0
0

Of General discusion forum.
“frecuency analizer” topic.
Author: “nathanb”

A 44100Hz audio has a Nyquist frequency of 22050Hz. The Nyquist freqency is the highest frequency a 44100Hz-audio can reproduce.
The FSOUND_DSP_GetSpectrum()-Method returns an array of 512 floats. These floats describe the intensity of a part of the whole bandwidth(0-22050Hz):
22050Hz/512=43,06640625Hz
Value 00: 000.0-043.1
Value 01: 043.1-086.1
Value 02: 086.1-129.2
Value 03: 129.2-172.3
Value 04: 172.3-215.3
Value 05: 215.3-258.4
Value 06: 258.4-301.5
Value 07: 301.5-344.5
Value 08: 344.5-387.6
Value 09: 387.6-430.7
Value 10: 430.7-473.7
Value 11: 473.7-516.8
Value 12: 516.8-559.9

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.