#N canvas 502 23 602 571 12;
#X floatatom 69 449 5 0 0 0 - - - 0;
#X floatatom 68 259 5 0 0 0 - - - 0;
#X floatatom 101 389 5 0 0 0 - - - 0;
#X text 141 389 sets the value;
#X text 114 420 creation argument initializes the value;
#X text 73 172 output the value;
#X text 110 258 set and output the value;
#X obj 69 419 int 6;
#X msg 95 325 send int-help;
#X msg 68 203 9.6;
#X msg 78 226 -9.6;
#X floatatom 453 281 5 0 0 0 - - - 0;
#X floatatom 455 356 5 0 0 0 - - - 0;
#X obj 455 310 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf
#000000 #000000;
#X floatatom 456 389 5 0 0 0 - int-help - 0;
#X obj 453 257 r int-help;
#X obj 455 332 v int-help;
#N canvas 771 162 565 399 Dealing_with_"\$0" 0;
#X text 36 33 '\$0' - the patch ID number used to force locality in
Pd - is widely used in send and receive names \, specially in abstractions
so each copy has local connections instead of global., f 67;
#X floatatom 341 339 5 0 0 0 - - - 0;
#X msg 149 257 send \$1-x;
#X obj 149 225 f \$0;
#X obj 288 225 value \$0-x;
#X floatatom 288 256 5 0 0 0 - - - 0;
#X floatatom 390 221 5 0 0 0 - \$0-x - 0;
#X msg 44 254 send \$1;
#X obj 44 225 symbol \$0-y;
#X obj 341 298 receive \$0-y;
#X text 435 220 <= right click for properties, f 10;
#X obj 149 295 int 15;
#X text 33 99 Since "\$0" only works inside objects \, if you need
to set a send name with it \, you need to use something like a symbol
or a float object. Note that "\$0" is also used in send/receive names
in GUIs as well as variable names in value objects., f 68;
#X obj 149 190 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf
#000000 #000000;
#X obj 288 190 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf
#000000 #000000;
#X obj 44 190 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf #000000
#000000;
#X connect 2 0 11 0;
#X connect 3 0 2 0;
#X connect 4 0 5 0;
#X connect 7 0 11 0;
#X connect 8 0 7 0;
#X connect 9 0 1 0;
#X connect 13 0 3 0;
#X connect 14 0 4 0;
#X connect 15 0 8 0;
#X restore 362 474 pd Dealing_with_"\$0";
#X text 38 80 The int object stores a number initialized by its creation
argument \, which may be reset using its inlet and output by sending
it the "bang" message. Sending a number sets a new value and outputs
it. A non-integer input is truncated to an integer (a la Max) so the
object can also be used to truncate values and convert from float to
integers., f 72;
#X obj 69 481 print float;
#X msg 83 290 3 10 a;
#X text 136 291 list get truncated to the first item;
#X text 23 535 see also:;
#X obj 142 535 value;
#X obj 189 535 send;
#X obj 50 13 int;
#X obj 94 535 float;
#X text 386 534 updated for Pd version 0.48;
#X obj 51 37 i;
#X obj 11 69 cnv 1 580 1 empty empty empty 8 12 0 13 #000000 #000000
0;
#N canvas 729 137 575 340 reference 0;
#X obj 10 51 cnv 5 550 5 empty empty INLETS: 8 18 0 13 #202020 #000000
0;
#X obj 9 82 cnv 1 550 1 empty empty 1st: 8 12 0 13 #9f9f9f #000000
0;
#X obj 10 234 cnv 2 550 2 empty empty OUTLET: 8 12 0 13 #202020 #000000
0;
#X obj 10 271 cnv 2 550 2 empty empty ARGUMENT: 8 12 0 13 #202020 #000000
0;
#X obj 9 308 cnv 5 550 5 empty empty empty 8 18 0 13 #202020 #000000
0;
#X obj 9 199 cnv 1 550 1 empty empty 2nd: 8 12 0 13 #7c7c7c #000000
0;
#X obj 32 16 int;
#X text 85 107 float -;
#X text 141 159 send the stored value to a [receive] or [value] object
that has the same name as the symbol (no output)., f 55;
#X text 29 159 send <symbol> -;
#X obj 64 16 i;
#X text 92 88 bang - output the stored value., f 62;
#X text 109 244 float - the stored integer value., f 49;
#X text 185 282 initially stored value (default 0)., f 38;
#X text 141 106 store and output the value \, non-integers are truncated.
;
#X text 98 15 - truncate floats and store an integer.;
#X text 90 125 list -;
#X text 141 125 considers the first element if it's a float \, stores
and outputs it.;
#X text 107 282 1) float -;
#X text 80 206 float - store the value \, non-integers are truncated
(no output)., f 65;
#X restore 419 31 pd reference;
#X text 517 32 <= click;
#X text 85 12 - truncate floats and store an integer.;
#X text 87 36 - abbreviation.;
#X obj 233 535 expr int($f1);
#X obj 13 518 cnv 1 580 1 empty empty empty 8 12 0 13 #000000 #000000
0;
#X obj 47 172 bng 19 250 50 0 empty empty empty 17 7 0 10 #dfdfdf #000000
#000000;
#X text 122 214 <-- non-integers get truncated toward zero, f 21;
#X text 498 389 <-- right click for properties, f 10;
#X text 175 461 open subpatch to see how to deal with '\$0' ------>
, f 25;
#X text 203 318 send to a named object such as a GUI \, a receive or
value objects -->, f 35;
#X connect 0 0 19 0;
#X connect 1 0 7 0;
#X connect 2 0 7 1;
#X connect 7 0 0 0;
#X connect 8 0 7 0;
#X connect 9 0 1 0;
#X connect 10 0 1 0;
#X connect 13 0 16 0;
#X connect 15 0 11 0;
#X connect 16 0 12 0;
#X connect 20 0 7 0;
#X connect 36 0 7 0;
