For audio programming I often need a spectrogram that has a logarithmic frequency scale. Matplotlib hasn't got that feature (it doesn't work) and I couldn't find a module on the web, so I hacked a few lines, it uses numpy, scipy and matplotlib. The memory and performance optimisation might be a bit off-the-wall, but it works well.
Sunday, 23 September 2012
Pylab spectogram with log. frequency scale
For audio programming I often need a spectrogram that has a logarithmic frequency scale. Matplotlib hasn't got that feature (it doesn't work) and I couldn't find a module on the web, so I hacked a few lines, it uses numpy, scipy and matplotlib. The memory and performance optimisation might be a bit off-the-wall, but it works well.
Labels:
ipython,
logarithmic,
matplotlib,
numpy,
python,
scipy
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment