#N canvas 351 23 876 709 12;
#N canvas 0 50 450 250 (subpatch) 0;
#X array array97 5 float 1;
#A 0 0.486666 0.126666 0.566675 0.0333376 0.5;
#X array array98 7 float 1;
#A 0 -1 1 -1 -7.98702e-06 -1 -0.0666752 -1;
#X coords 0 1 6 -1 250 150 1 0 0;
#X restore 555 45 graph;
#X text 105 13 MORE ON ARRAYS;
#X text 27 207 renaming an array:;
#X text 26 276 setting the bounds rectangle:;
#X text 30 441 adding labels. Give a y value and a bunch of x values
or vice versa:, f 37;
#X obj 585 379 tgl 17 0 empty empty empty 17 7 0 10 #dfdfdf #000000
#000000 0 1;
#X msg 585 403 \; array98 vis \$1;
#X msg 518 658 \; array98 style \$1;
#X obj 518 613 hradio 15 1 0 3 empty empty empty 0 -8 0 10 #dfdfdf
#000000 #000000 0;
#X msg 538 521 \; array98 width \$1;
#X floatatom 538 493 5 1 10 0 - - - 0;
#X floatatom 712 496 5 0 0 0 - - - 0;
#X msg 712 522 \; array98 color \$1;
#X text 25 342 Adding x and y labels: give a point to put a tick \,
the interval between ticks \, and the number of ticks overall per large
tick.;
#X msg 679 466 9;
#X msg 712 466 90;
#X msg 746 466 900;
#X text 36 138 set array values from index 0;
#X text 309 129 sets two values from index 3, f 17;
#X text 30 39 Arrays have methods to set their values explicitly. Below
you can set their "bounds" rectangles \, rename them (but if you have
two with the same name this won't necessarily do what you want) and
add markings. To set values by message \, send a list whose first element
gives the index to start at. Indices count up from zero., f 66;
#X msg 28 166 \; array98 0 -1 1 -1 1 -1 1 -1;
#X text 25 526 You can also change x and y range and size in the "properties"
dialog. Note that information about size and ranges is saved \, but
ticks and labels are lost between Pd sessions. The contents of the
array may be saved as part of the patch or discarded. This is set in
the 'properties" dialog as well., f 62;
#X text 488 328 For last \, there are methods to change the visual
appearance of arrays:, f 51;
#X text 506 392 show/hide arrays:, f 9;
#X text 526 467 set line width;
#X text 755 494 set color;
#X floatatom 518 634 5 0 0 0 - - - 0;
#X msg 302 166 \; array97 3 -0.5 0.5;
#X msg 27 229 \; array97 rename george;
#X msg 231 229 \; george rename array97;
#X msg 28 296 \; array97 bounds 0 2 10 -2;
#X msg 255 294 \; array97 bounds 0 1 6 -1;
#X msg 29 395 \; array97 xticks 0 1 1;
#X msg 222 394 \; array97 yticks 0 0.1 5;
#X msg 30 478 \; array97 xlabel -1.1 0 1 2 3 4 5 6;
#X msg 281 478 \; array97 ylabel -0.1 -1 0 1;
#X msg 707 402 \; array97 vis \$1;
#N canvas 715 70 617 394 locality 0;
#N canvas 0 22 450 278 (subpatch) 0;
#X array \$0-array 10 float 3;
#A 0 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5;
#X coords 0 1 10 -1 200 140 1;
#X restore 97 126 graph;
#X text 60 32 '\$0' - the patch ID number used to force locality in
Pd - is widely used in send/receive names as well as array names. This
is specially useful in abstractions so each copy has local names instead
of global., f 70;
#X obj 430 184 send \$0-array;
#X obj 348 129 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X msg 430 154 const 0.5;
#X msg 348 216 \; \$1-array const -0.5;
#X obj 348 168 float \$0;
#X text 371 126 <= click;
#X text 67 306 You can use "\$0" in an array name wherever you want
as above. If you need to send a message to the array \, use the [send]
object or load the "\$0" in a [float] object and pass it to a message
used as a send. This is because "\$0" doesn't get expanded in messages.
, f 69;
#X connect 3 0 6 0;
#X connect 4 0 2 0;
#X connect 6 0 5 0;
#X restore 251 629 pd locality;
#X text 103 615 open subpatch for local array names =>, f 20;
#X msg 693 615 0;
#X msg 683 578 1;
#X text 716 572 allow editing with mouse, f 13;
#X text 722 608 prevent mouse interaction, f 14;
#X text 436 634 0- point \; 1- polygon \; 2- bezier;
#X text 511 589 set display style;
#X msg 683 645 \; array97 edit \$1 \; array98 edit \$1;
#X text 487 214 You can put more than one array in a single "graph"
(which is Pd's name for the bounding rectangle \, and is a synonym
for "canvas".) Arrays' sizes need not match the bounds of the containing
graph. But if you resize an array \, and if it is the only array contained
in a graph \, then the graph automatically resets its bounds to match.
, f 51;
#X text 46 673 updated for version 0.52.;
#X text 567 611 (radio button);
#X obj 707 377 tgl 17 0 empty empty empty 17 7 0 10 #dfdfdf #000000
#000000 0 1;
#X connect 5 0 6 0;
#X connect 8 0 26 0;
#X connect 10 0 9 0;
#X connect 11 0 12 0;
#X connect 14 0 11 0;
#X connect 15 0 11 0;
#X connect 16 0 11 0;
#X connect 26 0 7 0;
#X connect 39 0 45 0;
#X connect 40 0 45 0;
#X connect 49 0 36 0;
