Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Fast Fourier Transform on the sound  (Read 28482 times)

0 Members and 2 Guests are viewing this topic.

Srejv

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Fast Fourier Transform on the sound
« 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. :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Fast Fourier Transform on the sound
« Reply #1 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.
Laurent Gomila - SFML developer

 

anything