aboutsummaryrefslogtreecommitdiff
path: root/desiredata/doc/5.reference/threshold~-help.pd
blob: 5922d15bc0c02bfbbab5537d8460720f4a761c3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#N canvas 114 43 685 360 12;
#X msg 452 58 \; pd dsp 0;
#X msg 452 24 \; pd dsp 1;
#X obj 124 11 threshold~;
#X text 200 12 - TRIGGER FROM AUDIO SIGNAL;
#X obj 49 183 sig~;
#X obj 49 261 threshold~ 10 100 0 100;
#X text 303 255 Arguments:;
#X text 384 255 1 trigger threshold;
#X floatatom 49 156 5 0 0;
#X obj 49 289 print trigger;
#X obj 205 287 print rest;
#X text 385 271 2 trigger debounce time;
#X text 385 288 3 rest threshold;
#X text 384 303 4 rest debounce time;
#X text 486 342 updated for Pd version 0.32;
#X msg 205 209 1;
#X msg 235 210 0;
#X text 12 39 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 131 151 set 0 2000 1 2000;
#X msg 131 174 set 10 100 0 100;
#X text 262 150 "set" to change the parameters;
#X text 268 210 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;