Ghetto python spectrum analysis.
This project consists of a command line util "plot-spectrum", which takes a .wav file and outputs a pretty looking display.
This thing works by:
- Loading the entire file into memory
- Splitting the sample data into small chunks, given by "samples-sec".
- Running numpy's Discrete Fourier Transform function on each chunk.
- Plotting each chunk using matplotlib
Note: This code was done on a long weekend for the heck of it just to explore Fourier Transforms. It may/may not work on your machine and probably has tons of bugs in it. Lord knows the combination of sound files it works on.