that's great, Tim thanks so much for this!
On Wed, Jun 16, 2010 at 10:27 PM, tim vets <[email protected]> wrote: > > > 2010/6/16 Jon <[email protected]> >> >> i'm planning a patch that will listen to live acoustic instruments >> (via fiddle~or sigmund~) and then trigger some effects when the >> analysis objects detect certain frequencies. the catch is that i not >> only want to trigger these fx: ideally the effect should be sustained >> until fiddle or sigmund detect some other frequency. below is a small >> piece of code that works for this (triggers at 400, stops at 500), but >> i'd love to see other approaches, especially if they are less >> cumbersome (because i don't wanna do this with a pair of frequencies, >> but a bunch of them!) >> thank you!!! >> > > Hello, > In so far pitch tracking is easy, this should be easy. > I threw together this little patch to beĀ used as an abstraction like so: > [inrange 36 48] to monitor pitches that are within the range 36 to 48. > When the pitch falls within the range, [inrange 36 48] reports 1, as soon as > the pitch leaves the range, it reports 0. > I may have overlooked the existence of an object that does this, but anyway, > maybe it's insightful for you to see a way to do it with basic objects. > Instantiate one for each pitch-range you want to monitor. > gr, > Tim >> >> #N canvas 0 22 450 300 10; >> #X obj -193 123 sel 400; >> #X obj -242 149 tgl 25 0 empty empty empty 17 7 0 10 -262144 -1 -1 >> 0 1; >> #X obj -133 122 moses 400; >> #X floatatom -133 74 5 0 0 0 - - -; >> #X floatatom -133 156 5 0 0 0 - - -; >> #X floatatom -82 156 5 0 0 0 - - -; >> #X msg -193 148 \; fx 1; >> #X obj -242 124 r fx; >> #X msg -82 204 \; fx 0; >> #X obj -82 179 sel 500; >> #X text -143 29 (analysis); >> #X connect 0 0 6 0; >> #X connect 2 0 4 0; >> #X connect 2 1 5 0; >> #X connect 3 0 2 0; >> #X connect 3 0 0 0; >> #X connect 5 0 9 0; >> #X connect 7 0 1 0; >> #X connect 9 0 8 0; >> >> _______________________________________________ >> [email protected] mailing list >> UNSUBSCRIBE and account-management -> >> http://lists.puredata.info/listinfo/pd-list > > _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
