[Chicago] Audio spectrograms

Carl Karsten carl at personnelware.com
Sat Dec 4 23:32:52 CET 2010


I did get this working:
            levs = [message.structure[type] for type in ("rms","peak","decay")]

https://github.com/CarlFK/veyepar/blob/master/dj/scripts/cklevel.py

That shows how to build a gstreamer pipeline that spits out audio
levels, not what you want.

What you want is:

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-spectrum.html

"""
GstValueList of gfloat "magnitude": the level for each frequency band
in dB. All values below the value of the "threshold" property will be
set to the threshold. Only present if the message-magnitude property
is true.
"""



On 12/4/10, Adrian Holovaty <adrian at holovaty.com> wrote:
> Hey guys,
>
> Has anybody used Python to create spectrograms of audio data? Here's
> what I mean:
>
> http://en.wikipedia.org/wiki/Spectrogram
>
> I've been futzing with numpy but haven't gotten anything working yet.
> Just wondering whether anybody on the list has gone down this road and
> has any tips and tricks.
>
> Adrian
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago
>


-- 
Carl K


More information about the Chicago mailing list