#N canvas 619 183 687 414 12;
#X msg 524 101 \; pd dsp 0;
#X msg 524 55 \; pd dsp 1;
#X obj 70 12 threshold~;
#X obj 52 178 sig~;
#X obj 52 273 threshold~ 10 100 0 100;
#X text 241 272 Arguments:;
#X text 322 272 1 trigger threshold;
#X floatatom 52 151 5 0 0 0 - - -;
#X obj 52 304 print trigger;
#X obj 210 302 print rest;
#X text 323 288 2 trigger debounce time;
#X text 323 305 3 rest threshold;
#X text 322 320 4 rest debounce time;
#X text 443 368 updated for Pd version 0.32;
#X msg 190 222 1;
#X msg 233 222 0;
#X text 57 50 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 116 163 set 0 2000 1 2000;
#X msg 124 189 set 10 100 0 100;
#X text 244 163 "set" to change the parameters;
#X text 271 219 zero or nonzero in inlet to set the state to "high"
or "low". There is no debounce period after this.;
#X text 161 11 - triger from audio signal;
#X connect 3 0 4 0;
#X connect 4 0 8 0;
#X connect 4 1 9 0;
#X connect 7 0 3 0;
#X connect 14 0 4 1;
#X connect 15 0 4 1;
#X connect 17 0 4 0;
#X connect 18 0 4 0;
