#N canvas 420 23 563 715 10;
#X obj 257 401 tgl 35 0 empty empty empty 17 7 0 10 #dcdcdc #000000 #000000 0 1;
#X obj 2 691 cnv 15 552 21 empty empty empty 20 12 0 14 #e0e0e0 #202020 0;
#X obj 4 523 cnv 3 550 3 empty empty inlets 8 12 0 13 #dcdcdc #000000 0;
#X obj 4 607 cnv 3 550 3 empty empty outlets 8 12 0 13 #dcdcdc #000000 0;
#X obj 4 643 cnv 3 550 3 empty empty arguments 8 12 0 13 #dcdcdc #000000 0;
#X obj 96 533 cnv 17 3 17 empty empty 0 5 9 0 16 #dcdcdc #9c9c9c 0;
#X obj 96 556 cnv 17 3 17 empty empty 1 5 9 0 16 #dcdcdc #9c9c9c 0;
#X text 171 531 signal;
#X obj 96 580 cnv 17 3 17 empty empty 2 5 9 0 16 #dcdcdc #9c9c9c 0;
#X obj 96 615 cnv 17 3 17 empty empty 0 5 9 0 16 #dcdcdc #9c9c9c 0;
#X text 169 614 signal;
#X text 227 556 - low threshold level;
#X text 226 580 - high threshold level;
#X text 227 531 - a signal whose level you want to detect;
#X text 227 614 - 1/0 depending on signal detect;
#X text 134 556 float/signal;
#X text 134 580 float/signal;
#X text 400 225 low;
#X text 402 247 hi;
#X obj 338 224 sig~ -0.5;
#X obj 344 246 sig~ 0.5;
#X obj 257 224 osc~ 0.5;
#X obj 127 334 vsl 20 100 -1 1 0 0 empty empty empty 0 -9 0 10 #dcdcdc #000000 #000000 0 1;
#X text 115 378 0;
#X text 115 327 1;
#X text 103 352 0.5;
#X text 97 403 -0.5;
#X text 109 426 -1;
#X text 157 650 1) float;
#X text 157 666 2) float;
#X obj 257 304 cyclone/thresh~;
#X text 74 96 [thresh~] is a "Schmitt trigger". When the input is greater than or equal to the high threshold level \, the output is 1 and becomes 0 when the signal is equal to or less than the reset level (low threshold).;
#X text 74 152 If low and high threshold are the same \, the output is 1 until a sample in the input signal is less than the reset level (thus it works in the same way as [>=~]).;
#X text 227 666 - sets high threshold (default 0);
#X text 227 650 - sets low threshold (default 0);
#X obj 499 69 cyclone/dsponoff~;
#X obj 2 3 ./header tresh~;
#X text 22 63 Detect signal above a threshold;
#X obj 257 343 cyclone/snapshot~ 1;
#X obj 257 370 nbx 7 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 #dcdcdc #000000 #000000 0 256;
#X obj 127 275 cyclone/snapshot~ 1;
#X obj 127 302 nbx 7 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 #dcdcdc #000000 #000000 0 256;
#X obj 393 494 open-else;
#X text 456 465 click;
#X text 55 474 see also:;
#X msg 393 466 schmitt~;
#X text 126 471 Plugdata users or those with ELSE can also use [else/schmitt~] as an alternative., f 42;
#X connect 19 0 30 1;
#X connect 20 0 30 2;
#X connect 21 0 30 0;
#X connect 21 0 40 0;
#X connect 30 0 38 0;
#X connect 38 0 39 0;
#X connect 39 0 0 0;
#X connect 40 0 41 0;
#X connect 41 0 22 0;
#X connect 45 0 42 0;
