Rapid spectral analysis of audio file using Python 2.6?
Posted
by Ephemeralis
on Stack Overflow
See other posts from Stack Overflow
or by Ephemeralis
Published on 2010-06-13T13:56:24Z
Indexed on
2010/06/13
14:02 UTC
Read the original article
Hit count: 211
What I want to do is to have a subroutine that analyses every 200 milliseconds of a sound file which it is given and spits out the frequency intensity value (from 0 to 1 as a float) of a specific frequency range into an array which I later save. This value then goes on to be used as the opacity value for a graphic which is supposed to 'strobe' to the audio file.
The problem is, I have never ventured into audio analysis before and have no clue where to start. I have looked pymedia and scipy/numpy thinking I would be able to use FFT in order to achieve this, but I am not really sure how I would manipulate this data to end up with the desired result. The documentation on the SpectrAnalyzer class of pymedia is virtually non-existant and the examples on the website do not actually work with the latest release of the library - which isn't exactly making my life easier.
How would I go about starting this project? I am at a complete loss as to what libraries I should even be using.
© Stack Overflow or respective owner