#N canvas 539 23 565 709 12;
#X floatatom 38 131 5 0 0 0 - - - 0;
#X floatatom 38 206 5 0 0 0 - - - 0;
#X msg 48 154 bang;
#X obj 37 12 value;
#X obj 38 181 value help-value1;
#X obj 51 36 v;
#X floatatom 180 131 5 0 0 0 - - - 0;
#X floatatom 180 206 5 0 0 0 - - - 0;
#X msg 190 154 bang;
#X obj 180 181 value help-value1;
#X floatatom 330 131 5 0 0 0 - - - 0;
#X floatatom 330 207 5 0 0 0 - - - 0;
#X msg 340 154 bang;
#X obj 330 182 value help-value2;
#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 384 130 numbers set the value;
#X text 388 153 bang retrieves it;
#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 obj 392 250 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X floatatom 313 259 5 0 0 0 - - - 0;
#X obj 363 359 value y;
#X obj 282 372 send y;
#X floatatom 282 344 5 0 0 0 - - - 0;
#X obj 363 337 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#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 text 32 257 The value may also be stored or recalled in expressions
via the expr \, expr~ \, and fexpr~ objects., f 34;
#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 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 33 502 if invoked without a creation argument \, the value
object adds a right inlet for setting the variable name with a "symbol"
message:, f 30;
#X obj 276 514 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#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 obj 474 425 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#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 31 429 You can also send the stored value to a named object
such as a receive or another value:, f 30;
#X text 82 37 - abbreviation;
#N canvas 988 197 570 343 Dealing_with_"\$0" 0;
#X obj 118 218 bng 17 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#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 obj 271 180 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X floatatom 382 187 5 0 0 0 - \$0-y - 0;
#X obj 86 288 value;
#X text 36 33 '\$0' - the patch ID number used to force locality in
Pd - is widely used in send and receive names \, speacially in abstractions
so 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 obj 227 204 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X floatatom 227 296 5 0 0 0 - - - 0;
#X text 138 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 37 114 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 connect 0 0 12 0;
#X connect 1 0 7 0;
#X connect 3 0 2 0;
#X connect 4 0 14 0;
#X connect 5 0 4 0;
#X connect 9 0 13 0;
#X connect 12 0 7 1;
#X connect 13 0 10 0;
#X connect 14 0 13 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 203 271 sets value name (if no name is given \, a right inlet
is created to set the name)., f 44;
#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 restore 387 34 pd reference;
#X text 484 35 <= click;
#X connect 0 0 4 0;
#X connect 2 0 4 0;
#X connect 4 0 1 0;
#X connect 6 0 9 0;
#X connect 8 0 9 0;
#X connect 9 0 7 0;
#X connect 10 0 13 0;
#X connect 12 0 13 0;
#X connect 13 0 11 0;
#X connect 20 0 21 0;
#X connect 22 0 20 0;
#X connect 23 0 19 0;
#X connect 24 0 28 0;
#X connect 26 0 25 0;
#X connect 27 0 24 0;
#X connect 34 0 33 0;
#X connect 35 0 34 1;
#X connect 36 0 34 1;
#X connect 39 0 34 0;
#X connect 42 0 41 0;
#X connect 43 0 41 0;
#X connect 45 0 44 0;
#X connect 46 0 47 0;
#X connect 48 0 46 0;
#X connect 49 0 41 0;
