#N canvas 680 75 610 616 12;
#X msg 39 182 bang;
#X floatatom 71 458 5 0 0 0 - - - 0;
#X floatatom 70 268 5 0 0 0 - - - 0;
#X floatatom 103 398 5 0 0 0 - - - 0;
#X text 143 398 sets the value;
#X text 116 429 creation argument initializes the value;
#X text 83 181 output the value;
#X text 112 267 set and output the value;
#X text 31 544 see also:;
#X obj 150 544 value;
#X obj 197 544 send;
#X obj 52 22 int;
#X obj 71 428 int 6;
#X msg 97 334 send int-help;
#X obj 102 544 float;
#X msg 70 212 9.6;
#X msg 80 235 -9.6;
#X text 124 223 <= non-integers get truncated toward zero, f 21;
#X text 370 543 updated for Pd version 0.48;
#X obj 53 46 i;
#X floatatom 454 288 5 0 0 0 - - - 0;
#X floatatom 455 361 5 0 0 0 - - - 0;
#X obj 455 317 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X floatatom 455 393 5 0 0 0 - int-help - 0;
#X text 501 393 <= right click for properties, f 10;
#X text 205 327 send to a named object such as a GUI \, a receive or
value objects =>, f 34;
#X obj 453 264 r int-help;
#X obj 455 337 v int-help;
#N canvas 995 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 \, speacially 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 149 198 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X obj 288 221 value \$0-x;
#X obj 288 192 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#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 200 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#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 connect 2 0 14 0;
#X connect 3 0 2 0;
#X connect 4 0 3 0;
#X connect 5 0 7 0;
#X connect 6 0 5 0;
#X connect 9 0 14 0;
#X connect 10 0 11 0;
#X connect 11 0 9 0;
#X connect 12 0 1 0;
#X restore 364 483 pd Dealing_with_"\$0";
#X text 177 470 open subpatch to see how to deal with '\$0' ======>
, f 25;
#X text 40 89 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 intput 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 text 87 21 - truncate floats and store an integer.;
#X text 89 45 - abreviation.;
#X obj 241 544 expr int($f1);
#X obj 71 490 print float;
#X msg 85 299 3 10 a;
#X text 138 300 list get truncated to the first item;
#X connect 0 0 12 0;
#X connect 1 0 34 0;
#X connect 2 0 12 0;
#X connect 3 0 12 1;
#X connect 12 0 1 0;
#X connect 13 0 12 0;
#X connect 15 0 2 0;
#X connect 16 0 2 0;
#X connect 22 0 27 0;
#X connect 26 0 20 0;
#X connect 27 0 21 0;
#X connect 35 0 12 0;
