<div dir="ltr">Thanks Phil. I&#39;m pretty sure this is not the first time I&#39;ve had to fix that. Blogger is just the worst. :-P</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 14, 2016 at 9:26 PM, Phil Burk <span dir="ltr">&lt;<a href="mailto:philburk@mobileer.com" target="_blank">philburk@mobileer.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Bjorn,<div><br><div>Nice! But I think the &#39;&lt;&#39; character in your for loops caused the line to get truncated.</div><br>   for( int j=0; j</div><span class="HOEnZb"><font color="#888888"><br>Phil</font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 14, 2016 at 8:06 AM, Bjorn Roche <span dir="ltr">&lt;<a href="mailto:bjorn@shimmeo.com" target="_blank">bjorn@shimmeo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Robert is correct that Goertzel&#39;s algorithm is probably better if you are just looking for one or two known pitches.<br></div><div><br></div><div>That said, I&#39;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&#39;s in the details, so having it explained with working code should help.</div><div><br></div><a href="http://blog.bjornroche.com/2012/07/frequency-detection-using-fft-aka-pitch.html" target="_blank">http://blog.bjornroche.com/2012/07/frequency-detection-using-fft-aka-pitch.html</a><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Mon, Mar 14, 2016 at 10:45 AM, Robert Bielik <span dir="ltr">&lt;<a href="mailto:Robert.Bielik@dirac.se" target="_blank">Robert.Bielik@dirac.se</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>





<div lang="SV" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">As long as you only need to detect specific frequencies, the Goertzel algo should be ok:
<a href="http://stackoverflow.com/questions/11579367/implementation-of-goertzel-algorithm-in-c" target="_blank">
http://stackoverflow.com/questions/11579367/implementation-of-goertzel-algorithm-in-c</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Applying the algo to the correct portions of wav file is left as an exercise for the reader ;)
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Regards<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">/R<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> <a href="mailto:portaudio-bounces@lists.columbia.edu" target="_blank">portaudio-bounces@lists.columbia.edu</a> [mailto:<a href="mailto:portaudio-bounces@lists.columbia.edu" target="_blank">portaudio-bounces@lists.columbia.edu</a>]
<b>On Behalf Of </b><a href="mailto:keghn@netscape.net" target="_blank">keghn@netscape.net</a><br>
<b>Sent:</b> den 14 mars 2016 15:36<br>
<b>To:</b> <a href="mailto:portaudio@lists.columbia.edu" target="_blank">portaudio@lists.columbia.edu</a><br>
<b>Subject:</b> [Portaudio] Cannot find a ease hello world FFT or what ever frequency finder.<u></u><u></u></span></p><span>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;background:white">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.</span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black"><u></u><u></u></span></p>
</div>
</span></div>
</div>

<br></div></div><span>_______________________________________________<br>
Portaudio mailing list<br>
<a href="mailto:Portaudio@lists.columbia.edu" target="_blank">Portaudio@lists.columbia.edu</a><br>
<a href="https://lists.columbia.edu/mailman/listinfo/portaudio" rel="noreferrer" target="_blank">https://lists.columbia.edu/mailman/listinfo/portaudio</a><br></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Bjorn Roche<div><div>@shimmeoapp</div></div></div></div>
</font></span></div>
<br>_______________________________________________<br>
Portaudio mailing list<br>
<a href="mailto:Portaudio@lists.columbia.edu" target="_blank">Portaudio@lists.columbia.edu</a><br>
<a href="https://lists.columbia.edu/mailman/listinfo/portaudio" rel="noreferrer" target="_blank">https://lists.columbia.edu/mailman/listinfo/portaudio</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Portaudio mailing list<br>
<a href="mailto:Portaudio@lists.columbia.edu">Portaudio@lists.columbia.edu</a><br>
<a href="https://lists.columbia.edu/mailman/listinfo/portaudio" rel="noreferrer" target="_blank">https://lists.columbia.edu/mailman/listinfo/portaudio</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Bjorn Roche<div><div>@shimmeoapp</div></div></div></div>
</div>