<br><br><div class="gmail_quote">2010/6/16 Jon <span dir="ltr">&lt;<a href="mailto:potaxpotax@gmail.com">potaxpotax@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

i&#39;m planning a patch that will listen to live acoustic instruments<br>
(via fiddle~or sigmund~) and then trigger some effects when the<br>
analysis objects detect certain frequencies. the catch is that i not<br>
only want to trigger these fx: ideally the effect should be sustained<br>
until fiddle or sigmund detect some other frequency. below is a small<br>
piece of code that works for this (triggers at 400, stops at 500), but<br>
i&#39;d love to see other approaches, especially if they are less<br>
cumbersome (because i don&#39;t wanna do this with a pair of frequencies,<br>
but a bunch of them!)<br>
thank you!!!<br>
<br></blockquote><div><br></div><div>Hello,</div><div>In so far pitch tracking is easy, this should be easy. </div><div>I threw together this little patch to be used as an abstraction like so: </div><div>[inrange 36 48] to monitor pitches that are within the range 36 to 48.</div>

<div>When the pitch falls within the range, [inrange 36 48] reports 1, as soon as the pitch leaves the range, it reports 0.</div><div><div><div><div>I may have overlooked the existence of an object that does this, but anyway, maybe it&#39;s insightful for you to see a way to do it with basic objects.</div>

</div></div></div><div>Instantiate one for each pitch-range you want to monitor.</div><div>gr,</div><div>Tim</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


<br>
#N canvas 0 22 450 300 10;<br>
#X obj -193 123 sel 400;<br>
#X obj -242 149 tgl 25 0 empty empty empty 17 7 0 10 -262144 -1 -1<br>
0 1;<br>
#X obj -133 122 moses 400;<br>
#X floatatom -133 74 5 0 0 0 - - -;<br>
#X floatatom -133 156 5 0 0 0 - - -;<br>
#X floatatom -82 156 5 0 0 0 - - -;<br>
#X msg -193 148 \; fx 1;<br>
#X obj -242 124 r fx;<br>
#X msg -82 204 \; fx 0;<br>
#X obj -82 179 sel 500;<br>
#X text -143 29 (analysis);<br>
#X connect 0 0 6 0;<br>
#X connect 2 0 4 0;<br>
#X connect 2 1 5 0;<br>
#X connect 3 0 2 0;<br>
#X connect 3 0 0 0;<br>
#X connect 5 0 9 0;<br>
#X connect 7 0 1 0;<br>
#X connect 9 0 8 0;<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br>