#N canvas 114 43 732 399 12;
#X msg 535 83 \; pd dsp 0;
#X msg 535 37 \; pd dsp 1;
#X obj 109 13 threshold~;
#X text 200 12 - TRIGGER FROM AUDIO SIGNAL;
#X obj 31 196 sig~;
#X obj 31 274 threshold~ 10 100 0 100;
#X text 307 271 Arguments:;
#X text 398 271 1 trigger threshold;
#X floatatom 31 169 5 0 0 0 - - -, f 5;
#X obj 31 302 print trigger;
#X obj 187 300 print rest;
#X text 399 287 2 trigger debounce time;
#X text 399 304 3 rest threshold;
#X text 398 319 4 rest debounce time;
#X text 490 358 updated for Pd version 0.32;
#X msg 169 223 1;
#X msg 212 223 0;
#X text 17 45 threshold~ monitors its input signal and outputs bangs
when the signal exceeds a specified "trigger" value \, and also when
the signal recedes below a "rest" value. You can specify debounce times
in milliseconds \, for the threshold~ to wait after the two event types
before triggering again.;
#X msg 113 164 set 0 2000 1 2000;
#X msg 113 187 set 10 100 0 100;
#X text 257 163 "set" to change the parameters;
#X text 250 223 zero or nonszero in inlet to set the state to "high"
or "low". There is no debounce period after this.;
#X connect 4 0 5 0;
#X connect 5 0 9 0;
#X connect 5 1 10 0;
#X connect 8 0 4 0;
#X connect 15 0 5 1;
#X connect 16 0 5 1;
#X connect 18 0 5 0;
#X connect 19 0 5 0;
