Programming a Spectrogram using C [closed]

2019-04-09 00:58发布

问题:

I am trying to make an audio spectrogram in C and am thinking about using the BASS library:

http://www.un4seen.com.

I searched over Google and here, but majority of examples are in C++. If any of you have any experience or resource regarding this, please help; it would be much appreciated.

So this is what I want to do:

  1. Read from mic input.
  2. Sample the data.
  3. Apply Short time Fourier transform.
  4. Then take the magnitude and plot it at the certain frequency.

Something like this:

http://upload.wikimedia.org/wikipedia/commons/c/c5/Spectrogram-19thC.png

If you can help it would be great.