From d2eec74a4d8c21aad495ba61539486b24d7ab8dc Mon Sep 17 00:00:00 2001 From: Guenter Geiger Date: Wed, 9 Oct 2002 10:19:04 +0000 Subject: moved from zexy/zexy to zexy svn path=/trunk/externals/zexy/; revision=169 --- examples/sigzero~.pd | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 examples/sigzero~.pd (limited to 'examples/sigzero~.pd') diff --git a/examples/sigzero~.pd b/examples/sigzero~.pd new file mode 100644 index 0000000..4b5d09b --- /dev/null +++ b/examples/sigzero~.pd @@ -0,0 +1,50 @@ +#N canvas 0 0 594 494 10; +#X obj 79 235 sigzero~; +#X obj 79 187 sig~; +#X floatatom 79 129; +#X floatatom 79 262; +#X obj 117 313 print signal; +#X obj 117 264 select 0; +#X msg 117 289 off; +#X msg 176 288 on; +#X text 72 42 sigzero~ detects whether there is a signal or not (e.g. zeroes throughout); +#X obj 74 25 sigzero~; +#X msg 136 161 bang; +#X msg 135 185 off; +#X floatatom 135 208; +#X text 216 163 turn the detector on; +#X text 216 188 turn it off; +#X text 217 210 turn it on/off; +#X text 114 128 try me; +#X text 56 368; +#N canvas 0 0 594 394 sub 0; +#X obj 152 104 inlet~; +#X obj 152 155 nop~; +#X obj 152 210 outlet~; +#X text 190 157 imagine we were doing some VERY heavy calcs here; +#X obj 427 48 inlet; +#X obj 427 75 switch~; +#X text 35 272 if the heavy calculations done here are done in vain because there is no incoming signal \, it would be better to turn the whole sub-patch off...; +#X connect 0 0 1 0; +#X connect 1 0 2 0; +#X connect 4 0 5 0; +#X restore 76 433 page sub; +#X obj 76 383 adc~ 1; +#X obj 76 458 dac~ 1; +#X obj 135 410 sigzero~; +#X text 213 410 that's how i use it; +#X connect 0 0 3 0; +#X connect 0 0 5 0; +#X connect 1 0 0 0; +#X connect 2 0 1 0; +#X connect 5 0 6 0; +#X connect 5 1 7 0; +#X connect 6 0 4 0; +#X connect 7 0 4 0; +#X connect 10 0 0 0; +#X connect 11 0 0 0; +#X connect 12 0 0 0; +#X connect 18 0 20 0; +#X connect 19 0 18 0; +#X connect 19 0 21 0; +#X connect 21 0 18 1; -- cgit v1.2.1