Real-time spectrum analyzer with JACK

Programming applications for making music on Linux.

Moderators: khz, MattKingUSA

d43156
Posts: 2
Joined: Tue Jun 08, 2010 2:16 am

Real-time spectrum analyzer with JACK

Postby d43156 » Tue Jun 08, 2010 2:20 am

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/

brummer

Re: Real-time spectrum analyzer with JACK

Postby brummer » Tue Jun 08, 2010 6:01 am

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

User avatar
autostatic
Established Member
Posts: 1728
Joined: Wed Dec 09, 2009 5:26 pm
Location: Beverwijk, The Netherlands
Contact:

Re: Real-time spectrum analyzer with JACK

Postby autostatic » Tue Jun 08, 2010 11:48 am

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/

d43156
Posts: 2
Joined: Tue Jun 08, 2010 2:16 am

Re: Real-time spectrum analyzer with JACK

Postby d43156 » Thu Jun 10, 2010 12:52 am

Thanks for the links. I am going to go with FFTW.

User avatar
autostatic
Established Member
Posts: 1728
Joined: Wed Dec 09, 2009 5:26 pm
Location: Beverwijk, The Netherlands
Contact:

Re: Real-time spectrum analyzer with JACK

Postby autostatic » Mon Jun 14, 2010 12:36 pm


User avatar
unfa
Established Member
Posts: 113
Joined: Tue May 17, 2011 10:43 am
Location: Warsaw, Poland
Contact:

Re: Real-time spectrum analyzer with JACK

Postby unfa » Wed Aug 24, 2011 11:11 pm

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...

User avatar
unfa
Established Member
Posts: 113
Joined: Tue May 17, 2011 10:43 am
Location: Warsaw, Poland
Contact:

Re: Real-time spectrum analyzer with JACK

Postby unfa » Mon Oct 03, 2011 9:44 pm

*bumps*

Is there any progress on this app? :)

User avatar
unfa
Established Member
Posts: 113
Joined: Tue May 17, 2011 10:43 am
Location: Warsaw, Poland
Contact:

Re: Real-time spectrum analyzer with JACK

Postby unfa » Mon Jun 18, 2012 7:12 pm

I've found a program called Glfer:

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


Return to “Developer's Section”

Who is online

Users browsing this forum: No registered users and 1 guest