aboutsummaryrefslogtreecommitdiff
path: root/examples/makesymbol.pd
blob: a9ac712b07948e7d01a40b4449bae4994b47bbe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#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;