aboutsummaryrefslogtreecommitdiff
path: root/doc/pddp/symbol-help.pd
blob: 2a21eb8e0984c50a8ebd7b0825d95357e243f01c (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
59
60
61
62
63
64
65
66
67
68
69
#N canvas 353 86 570 640 10;
#X text 31 576 This document was updated for Pd version 0.35 test 24
by Dave Sabine as part of a project called pddp proposed by Krzysztof
Czaja to build comprehensive documentation for Pd.;
#X obj 55 12 symbol;
#X obj 28 259 symbol;
#X msg 28 112 bang;
#X text 60 112 "Bang" will force the object to output its value.;
#X symbolatom 28 310 10 0 0 0 - - -;
#X obj 28 329 print;
#X text 22 41 The symbol object stores a symbol (which is set either
by its creation argument or by the right inlet) and then outputs that
symbol when it receives a "bang" message or a new symbol in its left
inlet.;
#X text 23 381 IMPORTANT NOTE;
#X obj 71 410 symbol;
#X symbolatom 63 449 10 0 0 0 - - -;
#X text 75 328 For this example \, I have used the symbol atom to display
the value that was stored in the symbol object and also printed the
value to the terminal window.;
#X text 74 253 The symbols are stored here. When banged \, the symbol
is outputted through the outlet. Note that a creation argument is optional.
;
#X msg 40 137 dog;
#X msg 48 155 cat;
#X msg 59 181 symbol horse;
#X msg 73 199 symbol wolf;
#X msg 82 217 symbol pig;
#X text 75 139 Sending a symbol to its left inlet will store AND output
the value.;
#X text 23 490 RELATED OBJECTS;
#X obj 26 513 int;
#X obj 58 513 float;
#X obj 102 513 f;
#X obj 134 513 select;
#X obj 188 513 makefilename;
#X text 153 179 Sending new symbols to its right inlet will store the
values. These values can later be sent via "bang" to its left inlet.
Note that these symbols are preceded by the word "symbol" to indicate
the appropriate data type.;
#N canvas 0 22 462 238 related_objects_from_other_libraries 0;
#X obj 160 28 makesymbol;
#X obj 118 28 index;
#X obj 16 27 ftos;
#X obj 52 27 unsymbol;
#X text 10 129 The best places to find information about Pd's libraries
is:;
#X text 13 159 www.puredata.org and click on "Downloads" then "Software"
;
#X text 14 172 or;
#X text 15 186 iem.kug.ac.at/pdb/;
#X obj 243 28 lister;
#X text 17 58 These objects are offered in Pd only if you have downloaded
and properly installed the appropriate library. These objects may or
may not exist in a single library. These objects usually included in
the installers.;
#X restore 25 536 pd related_objects_from_other_libraries;
#X text 31 395 Symbol - the OBJECT:;
#X text 31 431 is very different than symbol - the ATOM:;
#X text 29 466 Careful not to get them confused.;
#X text 109 13 STORE A SYMBOL;
#X connect 2 0 5 0;
#X connect 3 0 2 0;
#X connect 5 0 6 0;
#X connect 13 0 2 0;
#X connect 14 0 2 0;
#X connect 15 0 2 1;
#X connect 16 0 2 1;
#X connect 17 0 2 1;