How to extract frequency information from samples from PortAudio using FFTW in C
Posted
by houbysoft
on Stack Overflow
See other posts from Stack Overflow
or by houbysoft
Published on 2010-06-17T00:58:30Z
Indexed on
2010/06/17
1:02 UTC
Read the original article
Hit count: 455
Hi all,
I want to make a program that would record audio data using PortAudio (I have this part done) and then display the frequency information of that recorded audio (for now, I'd like to display the average frequency of each of the group of samples as they come in).
From some research I've done, I know that I need to do an FFT. So I googled for a library to do that, in C, and found FFTW.
However, now I am a little lost. What exactly am I supposed to do with the samples I recorded to extract some frequency information from them? What kind of FFT should I use (I assume I'd need a real data 1D?)?
And once I'd do the FFT, how do I get the frequency information from the data it gives me?
Thanks a lot in advance.
© Stack Overflow or respective owner