For my current project in C++ / Qt I need a library (LGPL is preferred) which can calculate a spectrogram from a signal ( basically an array of doubles ). I already use Qwt for the GUI part.
Any suggestions? Thanks.
It would be fairly easy to put together your own spectrogram. The steps are:
"How do I create a frequency vs time plot?" lists several libraries, each of which can calculate a spectrogram from a signal.
Copied and pasted from my own answer:
Some source code to generate spectrograms / waterfall plots from audio data:
Image to Spectrogram goes in the reverse direction from the above utilities.
you could use fftw (fftw.org) to calculate the spectrogram, you would still need to plot the data, but that should not be a problem
You can use FFT code from here. It uses C++ template metaprogramming for efficiency. The full source is provided by the author here.
It was suggested to include this code into Eigen for its use of templated (type friendly) code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With