#N canvas 389 50 666 457 12;
#X obj 26 22 tabwrite;
#X floatatom 28 116 4 0 10 0 - - - 0;
#X floatatom 165 271 4 0 9 0 - - - 0;
#X text 180 294 creation argument;
#X text 182 312 is array name;
#X text 64 114 set y value;
#X text 164 150 change array name;
#X text 457 420 updated for Pd version 0.33;
#X text 98 22 - write numbers to a table;
#X text 60 176 right inlet selects x value (indexed from 0). Note that input values are clipped to the range from 0 to size-1, f 37;
#X obj 152 420 tabread;
#X obj 209 420 tabread4;
#X obj 274 420 array;
#N canvas 742 134 401 220 init-table 0;
#X obj 35 42 loadbang;
#X msg 35 74 \; tabwrite-ex resize 10 \; tabwrite-ex bounds 0 10 10 0 \; tabwrite-ex xlabel -0.2 0 1 2 3 4 5 6 7 8 9 \; tabwrite-ex ylabel -0.3 0 1 2 3 4 5 6 7 8 9 10 \; tabwrite-ex 0 1 4 2 8 5 6 1 4 2 8;
#X connect 0 0 1 0;
#X restore 521 112 pd init-table;
#X obj 28 305 tabwrite tabwrite-ex;
#X msg 49 150 set tabwrite-ex;
#N canvas 632 117 593 356 Dealing_with_"\$0" 0;
#X text 431 244 <= array with local name, f 13;
#X msg 151 216 set \$1;
#X obj 151 190 symbol \$0-x;
#X obj 151 167 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000;
#X text 170 164 click to set name;
#X floatatom 90 199 6 1 8 0 - - - 0;
#X obj 280 245 array define \$0-x 10;
#X obj 92 284 tabwrite;
#X floatatom 146 256 5 0 0 0 - - - 0;
#X text 36 86 You can use "\$0" in an array name and if you need to set the array name you can load it in a symbol object \, since "\$0" doesn't work in messages., f 70;
#X text 36 33 '\$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 1 0 7 0;
#X connect 2 0 1 0;
#X connect 3 0 2 0;
#X connect 5 0 7 0;
#X connect 8 0 7 1;
#X restore 187 361 pd Dealing_with_"\$0";
#X text 25 352 open subpatch to see how to deal with '\$0', f 21;
#X obj 81 420 tabwrite~;
#N canvas 653 102 583 306 reference 0;
#X obj 18 52 cnv 5 550 5 empty empty INLET: 8 18 0 13 #202020 #000000 0;
#X obj 18 188 cnv 2 550 2 empty empty OUTLETS: 8 12 0 13 #202020 #000000 0;
#X obj 18 233 cnv 2 550 2 empty empty ARGUMENT: 8 12 0 13 #202020 #000000 0;
#X obj 17 270 cnv 5 550 5 empty empty empty 8 18 0 13 #202020 #000000 0;
#X text 113 114 set <symbol> -;
#X text 162 94 float -;
#X text 218 114 set the table name., f 39;
#X obj 46 22 tabwrite;
#X text 118 22 - write numbers to a table.;
#X text 218 94 sets index value and write to a table., f 39;
#X text 170 201 NONE;
#X obj 17 144 cnv 1 550 1 empty empty 2nd: 8 12 0 13 #7c7c7c #000000 0;
#X obj 17 85 cnv 1 550 1 empty empty 1st: 8 12 0 13 #7c7c7c #000000 0;
#X text 162 154 float -;
#X text 218 155 sets index to write to., f 39;
#X text 126 242 1) symbol - sets table name with the sample.;
#X restore 461 18 pd reference;
#X text 559 17 <= click;
#X obj 8 52 cnv 1 650 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#X obj 8 403 cnv 1 650 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#X text 9 419 see also:;
#N canvas 643 412 384 186 array-examples 0;
#N canvas 491 316 457 285 open 0;
#X obj 120 23 inlet;
#X obj 173 121 pdcontrol;
#X msg 173 94 dir;
#X obj 120 181 pack s s;
#X obj 173 64 loadbang;
#X msg 120 212 \; pd open \$1 \$2;
#X obj 173 151 makefilename %s/../2.control.examples;
#X connect 0 0 3 0;
#X connect 1 0 6 0;
#X connect 2 0 1 0;
#X connect 3 0 5 0;
#X connect 4 0 2 0;
#X connect 6 0 3 1;
#X restore 52 131 pd open;
#X msg 52 76 15.array.pd;
#X msg 62 102 16.more.arrays.pd;
#X text 144 77 <-- click to open examples.;
#X text 47 22 See also and the "array" examples from the section 2 of Pd's tutorial:, f 39;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X restore 317 420 pd array-examples;
#X text 22 66 [tabwrite] writes floats into an array \, input values are set in the left inlet \, while the index is set on the right inlet., f 62;
#X obj 374 138 cnv 19 248 198 empty empty empty 20 12 0 12 #e0e0e0 #404040 0;
#N canvas 0 22 450 278 (subpatch) 0;
#X array tabwrite-ex 10 float 2;
#X coords 0 10 10 0 250 200 1 0 0;
#X restore 373 137 graph;
#X msg 65 231 5 2;
#X text 99 225 A list inut spread values into inlets as usual in Pd, f 30;
#X connect 1 0 14 0;
#X connect 2 0 14 1;
#X connect 15 0 14 0;
#X connect 28 0 14 0;
