SFML community forums

Help => Audio => Topic started by: Srejv on October 24, 2007, 10:45:00 pm

Title: Fast Fourier Transform on the sound
Post 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. :)
Title: Fast Fourier Transform on the sound
Post by: Laurent on October 25, 2007, 03:12:15 am
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.