How can I get(Is it possible?) all audio frequencies are now playing in the system for writing some sound visualizer? Is there any library c++ or c#? Thanks in advance
+4
A:
Basic steps are:
- apply window function to block of samples (e.g. 1024 samples, Hanning window)
- perform real-to-complex FFT on windowed samples
- take magnitude of each FFT output bin (
sqrt(re * re + im * im)
) - identify peaks in resulting power spectrum estimate
- the bin index of each peak corresponds to the frequency of that component
Paul R
2010-04-10 10:26:31
These are basic steps of what action?
TGadfly
2010-04-10 10:33:06
@TGadfly: these are the basic steps for determining the frequency components present in your audio stream. You can use an FFT library such as FFTW or KissFFT to do the heavy lifting - the rest is pretty straightforward.
Paul R
2010-04-10 14:19:46
+1
A:
I am not sure, but i think you can use FMOD library to do that. Specifically, Get spectrum function.
n535
2010-04-10 10:47:56