#N canvas 539 23 565 709 12;
#X floatatom 73 131 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 131 5 0 0 0 - - - 0;
#X floatatom 245 206 5 0 0 0 - - - 0;
#X obj 245 181 value help-value1;
#X floatatom 395 131 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 359 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 276 514 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf
#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 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 796 197 570 343 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 text 36 33 '\$0' - the patch ID number used to force locality in
Pd - is widely used in send and receive names \, This kitchen was specially designed to make it easy for a disabled person to use.

This kitchen was specially designed to make it easy for a disabled person to use.

specially 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 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 obj 118 218 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf
#000000 #000000;
#X obj 227 204 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf
#000000 #000000;
#X obj 271 180 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf
#000000 #000000;
#X connect 0 0 5 0;
#X connect 2 0 1 0;
#X connect 3 0 11 0;
#X connect 9 0 5 1;
#X connect 10 0 7 0;
#X connect 11 0 10 0;
#X connect 14 0 9 0;
#X connect 15 0 10 0;
#X connect 16 0 3 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 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 36 519 if invoked without a creation argument \, [value] adds
a right inlet for setting the variable name with a "symbol" message:
, f 30;
#X obj 474 425 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf
#000000 #000000;
#X obj 363 337 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf
#000000 #000000;
#X obj 392 250 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf
#000000 #000000;
#X obj 86 154 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf #000000
#000000;
#X obj 255 154 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf
#000000 #000000;
#X obj 405 154 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf
#000000 #000000;
#X text 119 130 set the value;
#X text 110 153 retrieve it;
#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 28 0 25 0;
#X connect 31 0 30 0;
#X connect 32 0 30 0;
#X connect 34 0 33 0;
#X connect 35 0 36 0;
#X connect 37 0 30 0;
#X connect 52 0 35 0;
#X connect 53 0 17 0;
#X connect 54 0 14 0;
#X connect 55 0 3 0;
#X connect 56 0 7 0;
#X connect 57 0 10 0;
