Hi, you might be interested in C::NTR::L http://cntrl.sourceforge.net. It's a Pd-based application which recognizes pitch out of an electric bass guitar, guitar, or piano (only two octaves) and trigger audiovisual fx (outputting a bang everytime a new note is recognized using a proper threshold system to avoid weird behaviour).
You can also set manually the frequencies you want to track. I use it often in my performances.
If you need help while using/de-constructing it, just drop me a line, I'll be glad to help you.
M
Message: 1 Date: Wed, 16 Jun 2010 21:36:29 +0200 From: Jon potaxpotax@gmail.com Subject: [PD] triggering fx To: pd-list pd-list@iem.at Message-ID: AANLkTinPn3URdZe1m1ZWRpMBvd_05XtxfS-LWl__4gpO@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1
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!!!
#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;
--