Q:

Spectrum Analyzer with Python?

I want to create a music player with Python which uses OpenGL for visualizing the audio spectrum.

I already have the 3d engine set up and all I need is to get the spectrum data and feed it to the renderer.
I'd imagine it would be a list of numbers updated each few miliseconds or so.
I've heard you can get that info with FMOD and there's pyfmodex Python wrapper for it, but I can't access the FMOD documentation and the pyfmodex is almost undocumented. Can't find what I need by just browsing the class/function names.
If there's another library which can get that info that will also work.

A:

numpy has an FFT function that will compute a fast fourier transform on a block of input data. You can use its output to obtain your spectral information.

