As written in the title, I'm currently looking for a way, to turn pygame.sndarray.array(Sound) wave-coordinates (There are points on the sinus wave) into a [Frequency, Volume] list, and I'd like to know how to convert it back then. If you know the answer, or have an idea, please comment below. If you don't know what I mean, also comment below.
Asked
Active
Viewed 130 times
0
-
1It seems what you need is to take the Fourier transform of your sound wave. Check the `fft` and related routines in numpy/scipy. – cfh May 22 '15 at 17:52
-
see [Plot Spectrum in real time?](http://stackoverflow.com/a/24822928/2521214) and [plotting real time Data on qwt Oscillocope](http://stackoverflow.com/a/21658139/2521214) for the approach and this [How to compute Discrete Fourier Transform?](http://stackoverflow.com/a/26355569/2521214) in the sub links you will find QA with C++ source for DFT/DFFT/DCT/DFCT – Spektre May 23 '15 at 07:19
-
but be aware that FFT and DCT will return only basis frequencies not the real ones in your data !!! – Spektre May 23 '15 at 07:24