aboutsummaryrefslogtreecommitdiff
path: root/doc/help/cyclone/tosymbol.pd
blob: 714b2f8c2144671b6e837e6bf71dae24c60c2150 (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
#N canvas 134 92 582 543 10;
#X obj 29 16 fromsymbol;
#X obj 53 251 fromsymbol;
#X obj 29 37 tosymbol;
#X text 121 22 transform symbol to numbers or messages and vice versa
;
#X text 17 488 cyclone is (c) Miller Puckette and others;
#X text 18 501 docs based on the MAX/MSP reference (c) cycling'74;
#X text 17 515 ___________________________________________________
;
#X obj 94 190 tosymbol;
#X text 35 72 since pd lacks a quoting mechanism (like `foo bar`) there
is;
#X text 36 84 no support for spaces in symbols \, so the original max
way of;
#X text 35 96 using from/tosymbol won't work. One has to construct
symbols;
#X text 34 109 with other tools like;
#X obj 185 113 tosymbol;
#X obj 267 113 makesymbol;
#X text 248 109 or;
#X text 342 110 from zexy;
#X msg 94 164 this is a list of symbols;
#X obj 94 215 print symbol_with_spaces;
#X text 271 218 becomes a symbol with spaces;
#X obj 53 279 print list_again;
#X text 178 282 and can be transformed back into a list;
#X text 31 164 so this:;
#X obj 90 409 tosymbol;
#X obj 90 434 print separator;
#X text 50 353 1;
#X text 57 382 2;
#X obj 55 317 tosymbol;
#X msg 90 379 lets place a _ instead of a space inside;
#X msg 67 354 separator _;
#X text 117 321 can also be used to generate non space symbols from
lists:;
#X connect 1 0 19 0;
#X connect 7 0 17 0;
#X connect 7 0 1 0;
#X connect 16 0 7 0;
#X connect 22 0 23 0;
#X connect 27 0 22 0;
#X connect 28 0 22 0;