Page 1 of 1

Real-time spectrum analyzer with JACK

Posted: Tue Jun 08, 2010 2:20 am
by d43156
I would like to create a real-time spectrum analyzer from sound coming in from a microphone through JACK. I looked over the jaaa [ 1 ] source code [ 2 ] and read through some JACK documentation [ 3 ] and client examples [ 4 ], but I still do not understand how to separate the stream into the frequency bands and get the magnitude for each band.

Does anyone have recommended reading or an open-source library that has something like stream->get_magnitude(frequency) or stream->get_magnitude_of_range(lowest_frequency, highest_frequency)?

Thanks.

1 http://www.kokkinizita.net/linuxaudio/#jaaa
2 http://www.kokkinizita.net/linuxaudio/d ... index.html
3 http://jackaudio.org/documentation
4 http://dis-dot-dat.net/index.cgi?item=/ ... /starting/

Re: Real-time spectrum analyzer with JACK

Posted: Tue Jun 08, 2010 6:01 am
by brummer
Hi

Mostly you will use Fast Fourier Transforms to get information about frequency and time domain.
Here is a example prog for a spectrogram plot with fftw:
http://www.captain.at/howto-fftw-spectrograph.php

greats brummer

Re: Real-time spectrum analyzer with JACK

Posted: Tue Jun 08, 2010 11:48 am
by autostatic
You could try ProjectM with a Spectrum Analyzer Milkdrop plugin: http://projectm.sourceforge.net/
Or maybe the JACK Oscrolloscope: http://das.nasophon.de/jack_oscrolloscope/

Re: Real-time spectrum analyzer with JACK

Posted: Thu Jun 10, 2010 12:52 am
by d43156
Thanks for the links. I am going to go with FFTW.

Re: Real-time spectrum analyzer with JACK

Posted: Mon Jun 14, 2010 12:36 pm
by autostatic

Re: Real-time spectrum analyzer with JACK

Posted: Wed Aug 24, 2011 11:11 pm
by unfa
Good to see you want to make such a program. I was thinking about it recently too, when I saw my friend using Foobar 2000. Stereo fullscreen spectrogram for JACK would be cool to analyse music, samples, voice, synth output...

Re: Real-time spectrum analyzer with JACK

Posted: Mon Oct 03, 2011 9:44 pm
by unfa
*bumps*

Is there any progress on this app? :)

Re: Real-time spectrum analyzer with JACK

Posted: Mon Jun 18, 2012 7:12 pm
by unfa
I've found a program called Glfer:

http://www.qsl.net/in3otd/glfer.html