Real-time spectrum analyzer with JACK

Audio software developers forum.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
c1014164
Posts: 2
Joined: Mon Jun 07, 2010 4:53 am
Operating System: Please select

Real-time spectrum analyzer with JACK

Post by c1014164 » Mon Jun 07, 2010 6:05 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/

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Real-time spectrum analyzer with JACK

Post by Gale Andrews » Thu Jun 10, 2010 5:31 pm

c1014164 wrote: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/
I don't think anyone currently reading the Forum will be able to help you with details of this. You could subscribe to our developers mailing list and ask there for pointers, but Audacity doesn't run effects or analysis on real-time audio yet. If you do write to -devel, please have a look at our source code e.g. http://code.google.com/p/audacity/sourc ... ectrum.cpp .

Personally I think this question may be better sent to the JACK Mailing lists .



Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

c1014164
Posts: 2
Joined: Mon Jun 07, 2010 4:53 am
Operating System: Please select

Re: Real-time spectrum analyzer with JACK

Post by c1014164 » Fri Jun 11, 2010 2:38 am

I found what I was looking for.

Fastest Fourier Transform in the West
http://www.fftw.org/

bgravato
Posts: 2098
Joined: Wed Jan 13, 2010 8:56 pm
Operating System: Linux Debian

Re: Real-time spectrum analyzer with JACK

Post by bgravato » Wed Jun 16, 2010 11:06 am

While searching for something else I found this: FreqTweak - http://freqtweak.sourceforge.net/

Not sure if it's of any interest for what you need but here's the link anyway :)
Include as much details as you can in your post (Audacity version, Operating System, Equipment used, etc).
Please post your question in the appropriate forum (regarding audacity version and operating system).

Post Reply