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/strcmp.pd | 56 +++++++++++++++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 26 deletions(-) (limited to 'examples/strcmp.pd') diff --git a/examples/strcmp.pd b/examples/strcmp.pd index a2a64ee..7e168d4 100644 --- a/examples/strcmp.pd +++ b/examples/strcmp.pd @@ -1,26 +1,30 @@ -#N canvas 45 175 628 611 10; -#X obj 90 54 strcmp; -#X text 147 54 -- compare 2 lists as if they were strings; -#X obj 71 398 strcmp this is list # 3; -#X floatatom 71 423; -#X obj 96 423 print strcmp; -#X msg 71 184 list this is list # 3; -#X msg 71 221 list this is list # 4; -#X msg 71 239 1 2 3 4 5; -#X msg 71 256 list yet another list; -#X floatatom 83 286; -#X msg 204 313 list yet another list; -#X msg 222 366 list \$1; -#X floatatom 222 349; -#X text 278 357 to compare symbols/floats you have to make sure that they go to the 2nd inlet as lists; -#X text 98 442 the output follows the "strcmp" of the C programming language; -#X connect 2 0 4 0; -#X connect 2 0 3 0; -#X connect 5 0 2 0; -#X connect 6 0 2 0; -#X connect 7 0 2 0; -#X connect 8 0 2 0; -#X connect 9 0 2 0; -#X connect 10 0 2 1; -#X connect 11 0 2 1; -#X connect 12 0 11 0; +#N canvas 459 236 628 611 10; +#X obj 90 54 strcmp; +#X text 147 54 -- compare 2 lists as if they were strings; +#X obj 71 398 strcmp this is list # 3; +#X floatatom 71 423 0 0 0 0 - - -; +#X obj 96 423 print strcmp; +#X msg 71 184 list this is list # 3; +#X msg 71 221 list this is list # 4; +#X msg 71 239 1 2 3 4 5; +#X msg 71 256 list yet another list; +#X floatatom 83 286 0 0 0 0 - - -; +#X msg 204 313 list yet another list; +#X msg 222 366 list \$1; +#X floatatom 222 349 0 0 0 0 - - -; +#X text 278 357 to compare symbols/floats you have to make sure that +they go to the 2nd inlet as lists; +#X text 98 442 the output follows the "strcmp" of the C programming +language; +#X text 426 24 part of zexy; +#X text 68 525 probably not very efficient!!; +#X connect 2 0 4 0; +#X connect 2 0 3 0; +#X connect 5 0 2 0; +#X connect 6 0 2 0; +#X connect 7 0 2 0; +#X connect 8 0 2 0; +#X connect 9 0 2 0; +#X connect 10 0 2 1; +#X connect 11 0 2 1; +#X connect 12 0 11 0; -- cgit v1.2.1