File: value-help.pd

package info (click to toggle)
puredata 0.55.2%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 20,508 kB
  • sloc: ansic: 118,824; tcl: 10,221; cpp: 9,327; makefile: 1,632; sh: 1,476; python: 152; xml: 98; awk: 13
file content (135 lines) | stat: -rw-r--r-- 6,008 bytes parent folder | download | duplicates (4)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#N canvas 487 23 565 709 12;
#X floatatom 73 127 5 0 0 0 - - - 0;
#X floatatom 73 206 5 0 0 0 - - - 0;
#X obj 37 12 value;
#X obj 73 181 value help-value1;
#X obj 51 36 v;
#X floatatom 245 127 5 0 0 0 - - - 0;
#X floatatom 245 206 5 0 0 0 - - - 0;
#X obj 245 181 value help-value1;
#X floatatom 395 127 5 0 0 0 - - - 0;
#X floatatom 395 207 5 0 0 0 - - - 0;
#X obj 395 182 value help-value2;
#X text 24 675 see also:;
#X obj 99 675 expr;
#X obj 313 288 value z;
#X obj 392 277 expr z;
#X floatatom 392 306 5 0 0 0 - - - 0;
#X floatatom 313 259 5 0 0 0 - - - 0;
#X obj 363 362 value y;
#X obj 282 372 send y;
#X floatatom 282 344 5 0 0 0 - - - 0;
#X floatatom 363 387 5 0 0 0 - - - 0;
#X msg 441 352 \; y 5;
#X obj 137 675 send;
#X obj 176 675 float;
#X floatatom 276 575 5 0 0 0 - - - 0;
#X obj 276 549 value;
#X msg 308 514 symbol help-value1;
#X msg 327 548 symbol help-value2;
#X obj 221 675 int;
#X obj 276 474 v help-value1;
#X msg 322 423 send x;
#X msg 334 447 send y;
#X floatatom 395 472 5 0 0 0 - - - 0;
#X obj 395 448 receive x;
#X obj 474 449 value y;
#X floatatom 474 473 5 0 0 0 - - - 0;
#X floatatom 276 423 5 0 0 0 - - - 0;
#X text 322 675 updated for Pd version 0.51.;
#X text 85 12 - nonlocal shared value (named variable);
#X text 82 37 - abbreviation;
#N canvas 720 150 548 342 Dealing_with_"\$0" 0;
#X floatatom 54 237 5 0 0 0 - - - 0;
#X floatatom 389 285 5 0 0 0 - - - 0;
#X obj 389 254 receive \$0-y;
#X obj 271 204 f \$0;
#X floatatom 382 187 5 0 0 0 - \$0-y - 0;
#X obj 86 288 value;
#X floatatom 227 296 5 0 0 0 - - - 0;
#X text 139 218 <= click;
#X obj 118 248 symbol \$0-x;
#X obj 227 265 value \$0-x;
#X msg 271 230 send \$1-y;
#X text 424 185 <= right click for properties, f 10;
#X text 36 128 Since "\$0" only works inside objects \, if you need to set a value name or a send name with it \, you need to use something like a symbol or a float object. See examples below., f 67;
#X obj 271 180 bng 19 250 50 0 empty empty empty 17 7 0 10 #dfdfdf #000000 #000000;
#X obj 227 204 bng 19 250 50 0 empty empty empty 17 7 0 10 #dfdfdf #000000 #000000;
#X obj 118 218 bng 19 250 50 0 empty empty empty 17 7 0 10 #dfdfdf #000000 #000000;
#X text 36 40 '\$0' - the patch ID number used to force locality in Pd - is widely used in send and receive names. This is especially useful in abstractions so that each copy has local connections instead of global. Note that "\$0" is also used in send/receive names in GUIs as well as variable names in value objects., f 67;
#X connect 0 0 5 0;
#X connect 2 0 1 0;
#X connect 3 0 10 0;
#X connect 8 0 5 1;
#X connect 9 0 6 0;
#X connect 10 0 9 0;
#X connect 13 0 3 0;
#X connect 14 0 9 0;
#X connect 15 0 8 0;
#X restore 366 623 pd Dealing_with_"\$0";
#X text 35 623 open subpatch to see how to deal with '\$0' =>;
#X obj 6 67 cnv 1 550 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#X obj 6 664 cnv 1 550 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#N canvas 643 94 573 339 reference 0;
#X obj 8 53 cnv 5 550 5 empty empty INLETS: 8 18 0 13 #202020 #000000 0;
#X obj 8 86 cnv 1 550 1 empty empty 1st: 8 12 0 13 #9f9f9f #000000 0;
#X obj 8 226 cnv 2 550 2 empty empty OUTLET: 8 12 0 13 #202020 #000000 0;
#X obj 8 263 cnv 2 550 2 empty empty ARGUMENT: 8 12 0 13 #202020 #000000 0;
#X obj 7 310 cnv 5 550 5 empty empty empty 8 18 0 13 #202020 #000000 0;
#X obj 8 164 cnv 1 550 1 empty empty 2nd: 8 12 0 13 #7c7c7c #000000 0;
#X obj 27 15 value;
#X text 105 15 - nonlocal shared value (named variable);
#X obj 74 15 v;
#X text 147 95 float -;
#X text 203 95 sets variable value., f 36;
#X text 147 236 float -;
#X text 46 168 (if created without argument);
#X text 140 195 symbol - sets the value name.;
#X text 91 135 send <symbol> -;
#X text 154 114 bang -;
#X text 203 114 outputs the value., f 36;
#X text 203 135 sends the value to a matching receive name.;
#X text 120 271 1) symbol -;
#X text 203 236 outputs variable value when receiving a bang.;
#X text 203 271 send symbol (if given \, 2nd inlet is suppressed \, default: empty symbol)., f 36;
#X restore 387 34 pd reference;
#X text 484 35 <= click;
#X text 41 78 [value] stores a numeric value which is shared between all values with the same name (which need not be in the same Pd window.), f 66;
#X text 32 257 The value may also be stored or recalled in expressions via the [expr] family of objects., f 34;
#X text 32 335 The [value] object can also receive float values sent via a [send] object or a message if it has a variable with the same name., f 31;
#X text 32 424 You can also send the stored value to a named object such as a [receive] or another [value] \, see example to the right., f 31;
#X text 119 126 set the value;
#X text 110 151 retrieve it;
#X obj 255 152 bng 19 250 50 0 empty empty empty 17 7 0 10 #dfdfdf #000000 #000000;
#X obj 405 152 bng 19 250 50 0 empty empty empty 17 7 0 10 #dfdfdf #000000 #000000;
#X obj 86 152 bng 19 250 50 0 empty empty empty 17 7 0 10 #dfdfdf #000000 #000000;
#X obj 392 250 bng 19 250 50 0 empty empty empty 17 7 0 10 #dfdfdf #000000 #000000;
#X obj 363 336 bng 19 250 50 0 empty empty empty 17 7 0 10 #dfdfdf #000000 #000000;
#X obj 474 423 bng 19 250 50 0 empty empty empty 17 7 0 10 #dfdfdf #000000 #000000;
#X obj 276 514 bng 19 250 50 0 empty empty empty 17 7 0 10 #dfdfdf #000000 #000000;
#X text 36 509 if invoked without a creation argument \, [value] is assigned to an empty symbol adds a right inlet is created for setting the variable name with a "symbol" message:, f 30;
#X connect 0 0 3 0;
#X connect 3 0 1 0;
#X connect 5 0 7 0;
#X connect 7 0 6 0;
#X connect 8 0 10 0;
#X connect 10 0 9 0;
#X connect 14 0 15 0;
#X connect 16 0 13 0;
#X connect 17 0 20 0;
#X connect 19 0 18 0;
#X connect 25 0 24 0;
#X connect 26 0 25 1;
#X connect 27 0 25 1;
#X connect 30 0 29 0;
#X connect 31 0 29 0;
#X connect 33 0 32 0;
#X connect 34 0 35 0;
#X connect 36 0 29 0;
#X connect 52 0 7 0;
#X connect 53 0 10 0;
#X connect 54 0 3 0;
#X connect 55 0 14 0;
#X connect 56 0 17 0;
#X connect 57 0 34 0;
#X connect 58 0 25 0;