Menu

#168 wish: raw, realtime spectrogram data (graphical equaliser)

open
nobody
None
5
2011-08-03
2011-08-03
No

I'd love to be able to see the raw spectrogram data, in realtime. For example:

sox myfile.wav -n --equaliser --update 100ms --bands 1-100,101-500,501-2k

would show the instantanous (or moving average) power in each of the frequency bands mentioned, updating every 0.1 second.

Example output might look like:

0 0.76 0.42 0.003
100 0.33 0.41 0.003
200 0.44 0.40 0.02

i.e. the timestamp, and the amount of power in each of the frequency bands, every 100ms....

One might use this in realtime to record from a microphone, and pipe the output to a trivial shell script which can then illuminate some bargraph leds, or drive an "old-fashioned" 3 channel sound-to-light unit. Alternatively, it could be used to provide animated spectrograms, or dynamic plots of response (eg tuning a room to have a flat response to white noise, or simply tuning a piano).

Thanks very much for your consideration - sox is wonderful!

Discussion


Log in to post a comment.