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/
Real-time spectrum analyzer with JACK
Moderators: MattKingUSA, khz
Re: Real-time spectrum analyzer with JACK
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
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
- autostatic
- Established Member
- Posts: 1994
- Joined: Wed Dec 09, 2009 5:26 pm
- Location: Beverwijk, The Netherlands
- Has thanked: 32 times
- Been thanked: 104 times
- Contact:
Re: Real-time spectrum analyzer with JACK
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/
Or maybe the JACK Oscrolloscope: http://das.nasophon.de/jack_oscrolloscope/
- autostatic
- Established Member
- Posts: 1994
- Joined: Wed Dec 09, 2009 5:26 pm
- Location: Beverwijk, The Netherlands
- Has thanked: 32 times
- Been thanked: 104 times
- Contact:
Re: Real-time spectrum analyzer with JACK
Maybe Sonogram is an option too: http://www.christoph-lauer.de/Homepage/Sonogram.html
- unfa
- Established Member
- Posts: 129
- Joined: Tue May 17, 2011 10:43 am
- Location: Warsaw, Poland
- Has thanked: 1 time
- Been thanked: 19 times
- Contact:
Re: Real-time spectrum analyzer with JACK
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...
- unfa
- Established Member
- Posts: 129
- Joined: Tue May 17, 2011 10:43 am
- Location: Warsaw, Poland
- Has thanked: 1 time
- Been thanked: 19 times
- Contact: