From 2b60d55c919e7588f5aff15936e83c300b3660bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 22 Mar 2005 20:58:25 +0000 Subject: zexy-2.0: - use of abstractions for objects that allow it - some objects are build both as externals and abstractions (as slower fallbacks) - code-layout is now 1:1 c-file<->object (this should allow for building of zexy as a collection of externals instead as a big library) - matrix-objects have moved to iemmatrix !! svn path=/trunk/externals/zexy/; revision=2641 --- examples/swap~.pd | 129 +++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 90 insertions(+), 39 deletions(-) (limited to 'examples/swap~.pd') diff --git a/examples/swap~.pd b/examples/swap~.pd index 599811e..614fc75 100644 --- a/examples/swap~.pd +++ b/examples/swap~.pd @@ -1,39 +1,90 @@ -#N canvas 0 -1 718 576 10; -#X obj 97 321 swap~; -#X text 138 102 this object first converts the signal to 16bit \, then swaps upper and lower byte.; -#X msg 120 233 0; -#X msg 120 209 1; -#X msg 119 258 bang; -#X obj 33 288 osc~ 440; -#X floatatom 33 264; -#X msg 119 283 help; -#X obj 81 401 *~; -#X obj 43 352 dbtorms; -#X floatatom 43 328; -#X msg 445 28 \; pd dsp 1; -#X obj 81 376 sig~ 0.2; -#X msg 520 28 \; pd dsp 0; -#X graph graph5 0 -1 100 1 298 494 698 194; -#X array scope 100 float; -#X pop; -#X obj 176 426 tabwrite~ scope; -#X msg 176 401 bang; -#X text 159 258 toggle; -#X text 152 208 on; -#X text 154 232 off; -#X obj 87 27 swap~; -#X text 149 25 byte-swap a 16bit signal; -#X obj 81 425 dac~ 1; -#X connect 0 0 8 1; -#X connect 0 0 15 0; -#X connect 2 0 0 0; -#X connect 3 0 0 0; -#X connect 4 0 0 0; -#X connect 5 0 0 0; -#X connect 6 0 5 0; -#X connect 7 0 0 0; -#X connect 8 0 22 0; -#X connect 9 0 12 0; -#X connect 10 0 9 0; -#X connect 12 0 8 0; -#X connect 16 0 15 0; +#N canvas 427 339 718 576 10; +#X obj 97 321 swap~; +#X text 138 102 this object first converts the signal to 16bit \, then +swaps upper and lower byte.; +#X msg 120 233 0; +#X msg 120 209 1; +#X msg 119 258 bang; +#X obj 33 288 osc~ 440; +#X floatatom 33 264 0 0 0 0 - - -; +#X msg 119 283 help; +#X msg 533 54 \; pd dsp 1; +#N canvas 0 0 450 300 graph5 0; +#X array scope 100 float 0; +#X coords 0 1 100 -1 400 300 1; +#X restore 298 194 graph; +#X obj 143 345 tabwrite~ scope; +#X msg 143 320 bang; +#X text 159 258 toggle; +#X text 152 208 on; +#X text 154 232 off; +#X obj 87 27 swap~; +#X text 149 25 byte-swap a 16bit signal; +#X floatatom 126 412 0 0 0 0 - - -; +#N canvas 159 26 495 266 output 0; +#X obj 338 160 t b; +#X obj 338 110 f; +#X obj 338 60 inlet; +#X text 344 29 mute; +#X obj 338 185 f; +#X msg 425 178 0; +#X msg 338 85 bang; +#X obj 338 135 moses 1; +#X obj 425 153 t b f; +#X obj 397 117 moses 1; +#X obj 83 148 dbtorms; +#X obj 22 181 inlet~; +#X obj 199 41 inlet; +#X text 199 18 level; +#X msg 96 65 set \$1; +#X obj 96 89 outlet; +#X msg 214 64 \; pd dsp 1; +#X obj 83 194 line~; +#X obj 22 212 *~; +#X obj 22 241 dac~; +#X obj 83 171 pack 0 50; +#X text 20 158 audio; +#X text 93 110 show level; +#X obj 83 42 r \$0master-lvl; +#X obj 199 100 s \$0master-lvl; +#X obj 397 92 r \$0master-lvl; +#X obj 338 210 s \$0master-lvl; +#X connect 0 0 4 0; +#X connect 1 0 7 0; +#X connect 2 0 6 0; +#X connect 4 0 26 0; +#X connect 5 0 26 0; +#X connect 6 0 1 0; +#X connect 7 0 0 0; +#X connect 7 1 8 0; +#X connect 8 0 5 0; +#X connect 9 1 4 1; +#X connect 10 0 20 0; +#X connect 11 0 18 0; +#X connect 12 0 16 0; +#X connect 12 0 24 0; +#X connect 14 0 15 0; +#X connect 17 0 18 1; +#X connect 18 0 19 0; +#X connect 18 0 19 1; +#X connect 20 0 17 0; +#X connect 23 0 10 0; +#X connect 23 0 14 0; +#X connect 25 0 1 1; +#X connect 25 0 9 0; +#X restore 97 440 pd output; +#X msg 155 412 MUTE; +#X text 121 393 output amplitude; +#X text 513 29 part of zexy; +#X connect 0 0 10 0; +#X connect 0 0 18 0; +#X connect 2 0 0 0; +#X connect 3 0 0 0; +#X connect 4 0 0 0; +#X connect 5 0 0 0; +#X connect 6 0 5 0; +#X connect 7 0 0 0; +#X connect 11 0 10 0; +#X connect 17 0 18 1; +#X connect 18 0 17 0; +#X connect 19 0 18 2; -- cgit v1.2.1