SFML community forums
Help => Audio => Topic started by: Srejv on October 24, 2007, 10:45:00 pm
-
Is it possible to do a Fast Fourier Transform on a sound it get it's frequency data?
http://www.robthebloke.org/opengl_programming.html#8
"fmod Frequencies Example
This example uses fmod to perform a fast fourier transform (FFT) on the sounds waveform data to produce the frequencies in the sound. Fmod's FFT unit can then provide you with an array of 512 floats representing the frequency data. This is then rendered to an openGL window."
Was looking for something like that, only I'd like to use SFML and OpenAL (it is OpenAL SFML uses, isn't it?) for it. :)
-
SFML is using OpenAL, that's right.
I don't provide any FFT-related function, but you can easily program yours, sf::SoundBuffer should give you all you need from the sound.