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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
|
#N canvas 451 84 558 505 10;
#X obj -1 626 cnv 15 552 21 empty empty empty 20 12 0 14 -233017 -33289
0;
#X obj 1 290 cnv 3 550 3 empty empty inlets 8 12 0 13 -228856 -1 0
;
#N canvas 724 351 424 317 META 0;
#X text 12 145 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2;
#X text 12 125 AUTHOR Johannes Taelman (johannes.taelman@rug.ac.be)
;
#X text 12 5 KEYWORDS control;
#X text 12 45 DESCRIPTION trigger float from stream;
#X text 12 65 INLET_0 float set;
#X text 12 85 OUTLET_0 bang;
#X text 12 105 OUTLET_1 bang;
#X restore 499 628 pd META;
#X obj 0 355 cnv 3 550 3 empty empty outlets 8 12 0 13 -228856 -1 0
;
#X obj 0 417 cnv 3 550 3 empty empty arguments 8 12 0 13 -228856 -1
0;
#N canvas 120 492 428 85 Related_objects 0;
#X obj 0 0 cnv 15 425 20 empty empty empty 3 12 0 14 -204280 -1 0;
#X text 6 1 Related Objects;
#X obj 4 26 threshold~;
#X restore 195 629 pd Related_objects;
#X obj 0 0 cnv 15 552 40 empty empty threshold 3 12 0 18 -204280 -1
0;
#X obj 79 364 cnv 17 3 17 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X obj 79 300 cnv 17 3 40 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X text 82 436 a) float;
#X text 82 454 b) float;
#X text 82 473 c) float;
#X floatatom 83 135 5 0 0 0 - - -, f 5;
#X obj 105 263 print trigger;
#X obj 246 263 print rest;
#X obj 83 112 float;
#X obj 83 89 metro 100;
#X obj 83 48 loadbang;
#X obj 83 70 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
;
#X obj 195 71 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144
-1 -1 5900 1;
#X msg 192 108 set 50 0 10 0;
#X msg 193 131 set 50 15 10 15;
#X obj 227 263 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 83 263 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 83 232 threshold 70 10 30 10;
#N canvas 768 736 450 300 upDownCounter 0;
#X obj 125 60 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 160 138 f;
#X obj 189 138 + 1;
#X msg 240 82 -1;
#X msg 241 106 1;
#X floatatom 106 216 5 0 0 0 - - -, f 5;
#X obj 160 173 t f f f;
#X obj 199 245 outlet;
#X obj 160 98 metro 100;
#X obj 160 41 inlet;
#X obj 210 223 moses 2;
#X obj 70 112 vsl 15 128 0 80 0 0 empty empty empty 0 -9 0 10 -262144
-1 -1 9366 1;
#X obj 205 200 moses 29;
#X msg 301 112 29;
#X msg 304 167 79;
#X msg 302 140 59;
#X obj 0 0 cnv 15 425 20 empty empty empty 3 12 0 14 -204280 -1 0;
#X text 6 1 up-down counter;
#N canvas 254 711 450 300 updown 0;
#X obj 125 60 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 160 138 f;
#X obj 189 138 + 1;
#X msg 240 82 -1;
#X msg 241 106 1;
#X floatatom 106 216 5 0 0 0 - - -, f 5;
#X obj 187 245 outlet;
#X obj 160 98 metro 100;
#X obj 160 41 inlet;
#X obj 70 112 vsl 15 128 0 80 0 0 empty empty empty 0 -9 0 10 -262144
-1 -1 9049 1;
#X obj 160 211 smlib/threshold 60 0 0 0;
#X msg 302 140 60 0 0 0;
#X msg 304 167 80 0 0 0;
#X msg 301 112 30 0 0 0;
#X obj 160 244 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 301 246 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X msg 213 57 0;
#X obj 0 0 cnv 15 425 20 empty empty empty 3 12 0 14 -204280 -1 0;
#X text 6 1 up-down counter with threshold;
#X obj 160 173 t f f;
#X connect 0 0 7 0;
#X connect 1 0 2 0;
#X connect 1 0 5 0;
#X connect 1 0 19 0;
#X connect 2 0 1 1;
#X connect 3 0 2 1;
#X connect 4 0 2 1;
#X connect 5 0 9 0;
#X connect 7 0 1 0;
#X connect 8 0 7 0;
#X connect 10 0 14 0;
#X connect 10 0 3 0;
#X connect 10 1 15 0;
#X connect 10 1 4 0;
#X connect 11 0 10 0;
#X connect 12 0 10 0;
#X connect 13 0 10 0;
#X connect 16 0 1 0;
#X connect 19 0 10 0;
#X connect 19 1 6 0;
#X restore 286 259 pd updown with threshold;
#X connect 0 0 8 0;
#X connect 1 0 2 0;
#X connect 1 0 5 0;
#X connect 1 0 6 0;
#X connect 2 0 1 1;
#X connect 3 0 2 1;
#X connect 4 0 2 1;
#X connect 5 0 11 0;
#X connect 6 0 10 0;
#X connect 6 1 12 0;
#X connect 6 2 7 0;
#X connect 8 0 1 0;
#X connect 9 0 8 0;
#X connect 10 0 4 0;
#X connect 12 1 3 0;
#X connect 13 0 12 1;
#X connect 14 0 12 1;
#X connect 15 0 12 1;
#X restore 192 50 pd upDownCounter;
#X obj 170 51 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 99 298 float;
#X text 174 299 - input value;
#X text 99 316 set t d r d;
#X text 174 317 - sets trigger threshold \, trigger debounce number
\, rest threshold \, rest debounce number;
#X obj 79 388 cnv 17 3 17 empty empty 1 5 9 0 16 -228856 -162280 0
;
#X text 99 366 bang;
#X text 174 366 - input float higher than trigger threshold;
#X text 174 390 - input float lower than rest threshold;
#X text 175 436 - trigger threshold;
#X text 174 454 - trigger debounce number;
#X text 174 473 - rest threshold;
#X text 174 491 - rest debounce number;
#X text 82 491 d) float;
#X text 99 390 bang;
#X obj 0 510 cnv 3 550 3 empty empty more_info 8 12 0 13 -228856 -1
0;
#X text 78 532 threshold monitors its input float stream and outputs
bangs when the signal exceeds a specified "trigger" value \, and also
when the input value recedes below a "rest" value. You can specify
debounce in number of floats received \, for the threshold~ to wait
after the two event types before triggering again.;
#X obj 485 5 threshold;
#X text 11 23 trigger on upper and lower boundaries of float stream
, f 71;
#X connect 12 0 24 0;
#X connect 15 0 12 0;
#X connect 16 0 15 0;
#X connect 17 0 18 0;
#X connect 18 0 16 0;
#X connect 19 0 15 1;
#X connect 20 0 24 0;
#X connect 21 0 24 0;
#X connect 24 0 13 0;
#X connect 24 0 23 0;
#X connect 24 1 14 0;
#X connect 24 1 22 0;
#X connect 25 0 19 0;
#X connect 26 0 25 0;
|