aboutsummaryrefslogtreecommitdiff
path: root/doc/pddp/all_about_symbol_construction.pd
blob: a50c85ca0290f0884581553192a6e4f5b648a9fc (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
#N canvas 86 22 759 427 10;
#X obj 0 2 cnv 15 750 20 empty empty all_about_symbol_construction
20 10 1 18 -233017 -66577 0;
#X obj 716 3 pddp/pddplink http://puredata.info/dev/pddp -text pddp
;
#X text 23 389 updated for Pd version 0.37.1;
#X obj 372 390 sprintf;
#X obj 671 390 makesymbol;
#X obj 579 390 makefilename;
#X obj 494 390 list2symbol;
#X symbolatom 396 177 55 0 0 0 - - -;
#X obj 396 151 list2symbol;
#X symbolatom 468 129 6 0 0 0 - - -;
#X msg 468 103 symbol -;
#X msg 396 73 make these into one symbol with no spaces;
#X text 385 35 By setting a symbol on the right inlet of [list2symbol]
\, you can create symbols without spaces:;
#X text 532 102 <- click here to use "-";
#X text 553 115 instead of spaces;
#X text 9 85 There are many different ways of constructing symbols
from various parts. You can turn lists into symbols by replacing the
spaces with other characters or you can use objects with "format strings"
that allow you to create symbols with more flexibility;
#X obj 430 390 tosymbol;
#X text 382 211 [tosymbol] works in a very similar way:;
#X text 9 40 Many times you need to dynamically create different symbols.
For example \, if you are working with many files \, you might want
to name them with a sequential number.;
#X symbolatom 395 316 55 0 0 0 - - -;
#X msg 395 232 make these into one symbol with no spaces;
#X text 578 274 instead of spaces;
#X obj 395 292 tosymbol;
#X text 486 144 ^-- or type here and hit enter;
#X text 366 363 Related objects:;
#X msg 457 260 separator -|-;
#X text 556 261 <- click here to use "-|-";
#X msg 18 258 list you can have up to ten members in your list.;
#X obj 18 282 makesymbol 1%s_2%s_3%s_4%s_5%s_6%s_7%s_8%s_9%s_10%s;
#X symbolatom 18 305 55 0 0 0 - - -;
#X text 16 211 Using zexy's makesymbol \, you can build symbols by
plugging lists into printf-style patterns:;
#X connect 8 0 7 0;
#X connect 9 0 8 1;
#X connect 10 0 9 0;
#X connect 11 0 8 0;
#X connect 20 0 22 0;
#X connect 22 0 19 0;
#X connect 25 0 22 0;
#X connect 27 0 28 0;
#X connect 28 0 29 0;