[Portaudio] Cannot find a ease hello world FFT or what ever frequency finder.

Bjorn Roche bjorn at shimmeo.com
Mon Mar 14 11:06:19 EDT 2016

Robert is correct that Goertzel's algorithm is probably better if you are
just looking for one or two known pitches.

That said, I've seen this question so often on stack overflow that I wrote
a blog post (with code) about this some time ago. The concept is simple,
but the devil's in the details, so having it explained with working code
should help.


On Mon, Mar 14, 2016 at 10:45 AM, Robert Bielik <Robert.Bielik at dirac.se>

> As long as you only need to detect specific frequencies, the Goertzel algo
> should be ok:
> http://stackoverflow.com/questions/11579367/implementation-of-goertzel-algorithm-in-c
> Applying the algo to the correct portions of wav file is left as an
> exercise for the reader ;)
> Regards
> /R
> *From:* portaudio-bounces at lists.columbia.edu [mailto:
> portaudio-bounces at lists.columbia.edu] *On Behalf Of *keghn at netscape.net
> *Sent:* den 14 mars 2016 15:36
> *To:* portaudio at lists.columbia.edu
> *Subject:* [Portaudio] Cannot find a ease hello world FFT or what ever
> frequency finder.
> Is there a c/c++ software that looks for a certain frequency in a wav
> file? For example, like a c/c++ function that will return the strength
> 440Hz frequency between 10 seconds and 12 seconds in a 60 second wav file.
> _______________________________________________
> Portaudio mailing list
> Portaudio at lists.columbia.edu
> https://lists.columbia.edu/mailman/listinfo/portaudio

Bjorn Roche
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.columbia.edu/pipermail/portaudio/attachments/20160314/d812ab16/attachment.html>

More information about the Portaudio mailing list