#N canvas 273 23 863 699 12;
#N canvas 0 50 450 250 (subpatch) 0;
#X array array97 5 float 1;
#A 0 0.486666 0.126666 0.566675 -0.5 0.5;
#X array array98 7 float 1;
#A 0 -1 1 -1 1 -1 1 -1;
#X coords 0 1 6 -1 250 150 1 0 0;
#X restore 567 41 graph;
#X text 105 13 MORE ON ARRAYS;
#X obj 614 369 tgl 19 0 empty empty empty 17 7 0 10 #dfdfdf #000000 #000000 0 1;
#X msg 614 396 \; array98 vis \$1;
#X msg 518 653 \; array98 style \$1;
#X msg 506 484 \; array98 width \$1;
#X floatatom 506 456 5 1 10 0 - - - 0;
#X floatatom 708 485 5 0 0 0 - - - 0;
#X msg 708 511 \; array98 color \$1;
#X msg 675 455 9;
#X msg 708 455 90;
#X msg 742 455 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 488 316 For last \, there are methods to change the visual appearance of arrays:, f 51;
#X text 486 370 show/hide arrays:;
#X text 546 455 set line width;
#X text 751 483 set color;
#X floatatom 518 629 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 736 395 \; array97 vis \$1;
#N canvas 715 70 1918 1003 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 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 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 especially useful in abstractions so each copy has local names instead of global., f 70;
#X connect 2 0 5 0;
#X connect 3 0 1 0;
#X connect 5 0 4 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 msg 683 645 \; array97 edit \$1 \; array98 edit \$1;
#X text 487 210 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 25 526 You can also change the 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 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 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 text 44 670 updated for version 0.52;
#X obj 736 369 tgl 19 0 empty empty empty 17 7 0 10 #dfdfdf #000000 #000000 0 1;
#X obj 518 563 vradio 19 1 0 3 empty empty empty 0 -10 0 12 #dfdfdf #000000 #000000 0;
#X text 542 563 Point (0);
#X text 542 582 Polygon (1);
#X text 542 602 Bezier (2);
#X text 512 533 set display style:;
#X connect 2 0 3 0;
#X connect 6 0 5 0;
#X connect 7 0 8 0;
#X connect 9 0 7 0;
#X connect 10 0 7 0;
#X connect 11 0 7 0;
#X connect 20 0 4 0;
#X connect 33 0 37 0;
#X connect 34 0 37 0;
#X connect 45 0 30 0;
#X connect 46 0 20 0;
