<br><br><div><span class="gmail_quote">On 10/16/07, <b class="gmail_sendername">AlgoMantra</b> &lt;<a href="mailto:algomantra@gmail.com">algomantra@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
1. What is the simplest way to detect the pitch <br>of an audio signal (from the mic) in Chuck? </blockquote><div><br>To add to Joerg&#39;s sugestion;<br><br>Tracking zero crossings is a viable option, it gets used in a fair amount of hardware but due to it&#39;s limitations it tends to work best on simple signals and such hardware tends to be aimed at specific instruments (say bass guitar) because it helps if you can make a good guess what range the ouput should be in. Typically I&#39;d only use zero-crossing for sub-octave generation.
<br><br>Another option is a phase-locked loop which comes down to synthesising a sine, comparing it to the signal to be analysed, look at the difference in phase, then tweak the sine until this difference becomes as small as possible. It has some of the same weaknesses but should be more accurate most of the time, it&#39;s less simple.
<br><br>It kinda depends in what way you want it to be simple; FFT analysis is not at all simple on a fundamental level but it&#39;s simplified considerably if Ge &amp; Rebecca do all of the hard stuff for you :¬). Have a look at /chuck1.2.1.1/examples/analysis/tracking/tracking.ck (I think that&#39;s your solution)
<br><br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2. How much wood could a woodChucK ChucK <br>if a woodchucK could chucK wood?
</blockquote><div><br><br>That&#39;s on the wish-list, Ge said it depends on garbage collection because of the splinters. Perry commented a while back that woodChucKs might be protected as well so that would further complicate matters. Obviously it won&#39;t be useful at all until we have trees which are generally a form of lists and we don&#39;t have lists (yet?).
<br><br><br>;¬)<br><br>Kas.<br></div></div>