From 838dafd9d7a66eb75e52ba5520591b1315744fa6 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 25 Mar 2004 17:34:51 +0000 Subject: added symbol atoms and a 10 item makesymbol svn path=/trunk/externals/zexy/; revision=1477 --- examples/makesymbol.pd | 136 ++++++++++++++++++++++++++++--------------------- 1 file changed, 78 insertions(+), 58 deletions(-) (limited to 'examples') diff --git a/examples/makesymbol.pd b/examples/makesymbol.pd index a9ac712..2fced08 100644 --- a/examples/makesymbol.pd +++ b/examples/makesymbol.pd @@ -1,58 +1,78 @@ -#N canvas 131 -9 723 652 10; -#X obj 57 15 makesymbol; -#X text 56 39 makesymbol is something between the "symbol" and the "makefilename" object.; -#X text 56 79 Any list (with up to 10 members) on the first input will be applied on a C-like format-string that can be either given as an argument on the second input or as a creation-argument.; -#X text 58 150 The result will be a symbol.; -#X obj 59 267 makesymbol; -#X obj 61 591 makesymbol %s_is_%s; -#X msg 14 246 bang; -#X msg 11 359 bang; -#X msg 10 570 bang; -#X msg 232 246 symbol cat; -#X msg 59 208 symbol horse; -#X msg 59 233 symbol cow; -#X obj 58 380 makesymbol house; -#X msg 61 349 symbol castle; -#X msg 232 221 symbol %ss; -#X symbolatom 233 196; -#X symbolatom 59 182; -#X symbolatom 232 310; -#X msg 61 562 list conan back; -#X floatatom 128 511; -#X obj 61 536 pack s 12; -#X msg 61 488 symbol eleven; -#X obj 59 293 print A; -#X obj 58 405 print B; -#X obj 61 615 print C; -#X msg 232 335 symbol %d; -#X msg 232 359 symbol %s; -#X text 320 360 only %s does; -#X text 319 328 %d \, %f... won't work properly; -#X text 321 241 if the right inlet (mask) does not have any format-tags \, the left one won't get through !!; -#X floatatom 62 460; -#X text 149 461 it doesn't matter whether you are using numbers \, symbols...; -#X text 254 541 note:: every member of the list will be converted to a STRING \, so there's no use \, using %d \, %f...; -#X floatatom 59 324; -#X text 353 338 (at least \, you won't get what you normally want); -#X connect 4 0 22 0; -#X connect 5 0 24 0; -#X connect 6 0 4 0; -#X connect 7 0 12 0; -#X connect 8 0 5 0; -#X connect 9 0 4 1; -#X connect 10 0 4 0; -#X connect 11 0 4 0; -#X connect 12 0 23 0; -#X connect 13 0 12 0; -#X connect 14 0 4 1; -#X connect 15 0 4 1; -#X connect 16 0 4 0; -#X connect 17 0 12 1; -#X connect 18 0 5 0; -#X connect 19 0 20 1; -#X connect 20 0 5 0; -#X connect 21 0 20 0; -#X connect 25 0 12 1; -#X connect 26 0 12 1; -#X connect 30 0 5 0; -#X connect 33 0 12 0; +#N canvas 469 38 727 656 10; +#X obj 57 15 makesymbol; +#X text 152 13 makesymbol is something between the "symbol" and the +"makefilename" object.; +#X text 57 42 Any list (with up to 10 members) on the first input will +be applied on a C-like format-string that can be either given as an +argument on the second input or as a creation-argument.; +#X obj 59 281 makesymbol; +#X obj 61 591 makesymbol %s_is_%s; +#X msg 14 260 bang; +#X msg 11 380 bang; +#X msg 10 570 bang; +#X msg 232 260 symbol cat; +#X msg 65 222 symbol horse; +#X msg 69 247 symbol cow; +#X obj 58 401 makesymbol house; +#X msg 67 370 symbol castle; +#X msg 232 235 symbol %ss; +#X symbolatom 233 210 0 0 0 0 - - -; +#X symbolatom 59 196 0 0 0 0 - - -; +#X symbolatom 200 340 0 0 0 0 - - -; +#X msg 71 568 list conan back; +#X floatatom 128 521 0 0 0 0 - - -; +#X obj 61 546 pack s 12; +#X msg 69 498 symbol eleven; +#X msg 200 359 symbol %d; +#X msg 200 378 symbol %s; +#X text 288 380 only %s does; +#X text 278 357 %d \, %f... won't work properly; +#X text 321 255 if the right inlet (mask) does not have any format-tags +\, the left one won't get through !!; +#X floatatom 61 458 0 0 0 0 - - -; +#X text 149 471 it doesn't matter whether you are using numbers \, +symbols...; +#X text 235 567 note:: every member of the list will be converted to +a STRING \, so there's no use \, using %d \, %f...; +#X floatatom 58 340 0 0 0 0 - - -; +#X text 317 367 (at least \, you won't get what you normally want) +; +#X symbolatom 92 427 25 0 0 0 - - -; +#X symbolatom 72 306 25 0 0 0 - - -; +#X symbolatom 80 619 25 0 0 0 - - -; +#X obj 61 478 ftos; +#X symbolatom 58 166 0 0 0 0 - - -; +#X text 58 98 The result will always be a symbol.; +#X msg 58 118 list you can have up to ten members in your list.; +#X obj 58 142 makesymbol 1%s_2%s_3%s_4%s_5%s_6%s_7%s_8%s_9%s_10%s; +#X obj 19 426 print B; +#X obj 10 618 print C; +#X obj 13 305 print A; +#X connect 3 0 32 0; +#X connect 3 0 41 0; +#X connect 4 0 33 0; +#X connect 4 0 40 0; +#X connect 5 0 3 0; +#X connect 6 0 11 0; +#X connect 7 0 4 0; +#X connect 8 0 3 1; +#X connect 9 0 3 0; +#X connect 10 0 3 0; +#X connect 11 0 31 0; +#X connect 11 0 39 0; +#X connect 12 0 11 0; +#X connect 13 0 3 1; +#X connect 14 0 3 1; +#X connect 15 0 3 0; +#X connect 16 0 11 1; +#X connect 17 0 4 0; +#X connect 18 0 19 1; +#X connect 19 0 4 0; +#X connect 20 0 19 0; +#X connect 21 0 11 1; +#X connect 22 0 11 1; +#X connect 26 0 34 0; +#X connect 29 0 11 0; +#X connect 34 0 19 0; +#X connect 37 0 38 0; +#X connect 38 0 35 0; -- cgit v1.2.1