Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to make an audio spectrogram in C and I 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. Also its a WINDOWS application
Posted
Updated 9-Jul-11 16:19pm
v2
Comments
Sergey Alexandrovich Kryukov 9-Jul-11 23:20pm    
Add Windows API to your tags.
--SA

1 solution

There's no actual question and the number of topics covered is really broad in nature, but here's a push start.

1. There's probably libraries that'll help you to do this, or you can use the Windows Wave IO API[^] to do it.
2. See 1, that is sampling.
3. If you know the math, do it yourself. Alternatitevly search the net for libraries such as FFTW[^].
4. Learn to plot, you can use any of the graphics libraries (GDI, GDI+, etc...).
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 9-Jul-11 23:20pm    
Good response.
--SA
seto6 10-Jul-11 12:07pm    
thanks alot :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900