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/step~.pd | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 examples/step~.pd (limited to 'examples/step~.pd') diff --git a/examples/step~.pd b/examples/step~.pd new file mode 100644 index 0000000..8b85d3d --- /dev/null +++ b/examples/step~.pd @@ -0,0 +1,74 @@ +#N canvas 179 22 564 331 8; +#X obj 243 283 step~; +#X obj 243 309 print~; +#X msg 186 236 bang; +#X floatatom 283 259; +#X floatatom 243 237; +#X obj 186 259 t b b; +#X obj 243 259 t f b; +#X text 50 20 step~ ::; +#X text 50 70 IN1 :; +#X text 50 110 IN2 :; +#X text 50 180 note :; +#X text 100 20 produces a unit:step:sequence or a rectangle:window; +#X text 100 70 define \, how many samples after the float::bang:message the rectangle:window will start; +#X text 100 110 define the length of the rectangle:window choosing 1 will produce a dirac:impulse :: unit:sample:sequence) choosing 0 will make the rectangle infinitely long :: unit:step:sequence; +#X text 100 180 1 sample equals 1:over:samplerate secs; +#X text 235 217 position; +#X text 303 239 length; +#N canvas 169 79 597 397 application 0; +#X obj 88 188 sig~ 440; +#X obj 88 211 osc~; +#X obj 88 235 *~; +#X obj 149 211 osc~; +#X obj 149 235 *~; +#X obj 149 188 sig~ 550; +#X floatatom 88 163; +#X floatatom 149 163; +#X obj 276 189 sig~ -1; +#X obj 228 189 step~; +#X msg 258 166 0; +#X msg 291 166 44100; +#X floatatom 338 166; +#X msg 228 142 bang; +#X obj 149 320 dac~; +#X obj 149 290 *~; +#X obj 431 227 dbtorms; +#X obj 431 249 pack 0 100; +#X obj 431 271 line~; +#X floatatom 431 204; +#X text 193 118 toggle::press; +#X text 38 23 This \, of course \, is a quite barbarious use of the step~-object; +#X text 124 51 but it was fast to do and I do think it illustrates the way it works.; +#X connect 0 0 1 0; +#X connect 1 0 2 0; +#X connect 2 0 15 0; +#X connect 3 0 4 0; +#X connect 4 0 15 0; +#X connect 5 0 3 0; +#X connect 6 0 0 0; +#X connect 7 0 5 0; +#X connect 8 0 4 1; +#X connect 9 0 2 1; +#X connect 9 0 4 1; +#X connect 10 0 9 1; +#X connect 11 0 9 1; +#X connect 12 0 9 1; +#X connect 13 0 9 0; +#X connect 15 0 14 0; +#X connect 15 0 14 1; +#X connect 16 0 17 0; +#X connect 17 0 18 0; +#X connect 18 0 15 1; +#X connect 19 0 16 0; +#X restore 439 186 page application; +#X msg 186 283 1; +#X connect 0 0 1 0; +#X connect 2 0 5 0; +#X connect 3 0 0 1; +#X connect 4 0 6 0; +#X connect 5 0 0 0; +#X connect 5 1 18 0; +#X connect 6 0 0 0; +#X connect 6 1 1 0; +#X connect 18 0 1 0; -- cgit v1.2.1