문제

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

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top