#N canvas 340 67 592 445 12;
#N canvas 460 63 500 379 stuff 0;
#X obj 231 264 pointer;
#X msg 178 266 100 100;
#X obj 16 18 loadbang;
#X text 152 144 ignore this scaffolding...;
#X msg 96 111 \; pd-help-element-data clear;
#X msg 238 176 \; pd-help-element-data write foo;
#X msg 238 209 \; pd-help-element-data read foo;
#X msg 231 242 traverse pd-help-element-data \, bang;
#X obj 181 296 append help-element-template x y;
#X msg 14 44 \; pd-help-element-data read element.txt;
#X msg 31 321 \; pd-help-element-data write element.txt;
#X connect 0 0 8 2;
#X connect 1 0 8 0;
#X connect 2 0 9 0;
#X connect 7 0 0 0;
#X restore 356 359 pd stuff;
#X text 364 386 updated for Pd version 0.32;
#X text 25 359 see also:;
#X obj 22 379 template;
#N canvas 393 10 491 261 help-element-template 0;
#X obj 27 76 plot array1 500 1 10 15 20;
#X obj 27 174 filledpolygon 509 509 0 -10 -10 10 -10 10 10 -10 10;
#X obj 24 16 template float x float y array array1 help-element-array1-template;
#X restore 357 310 pd help-element-template;
#N canvas 0 0 411 207 help-element-data 1;
#X restore 356 289 pd help-element-data;
#N canvas 196 292 365 134 help-element-array1-template 0;
#X obj 30 71 filledpolygon 0 0 0 -5 0 0 5 5 0 0 -5;
#X obj 32 27 template float y;
#X restore 356 333 pd help-element-array1-template;
#X obj 35 22 element;
#X text 98 22 -- get pointer to an element of an array;
#X obj 84 379 pointer;
#X obj 140 380 getsize;
#X obj 199 381 setsize;
#X text 24 44 "element" takes a pointer at right and a number at left. It looks up a field from the pointer \, which should be an array \, and outputs the element of the array specified by the number. There are no pointers to arrays themselves \, just to individual elements. The template and field mane are specified as creation arguments.;
#X obj 151 214 pointer;
#X msg 151 190 traverse pd-help-element-data \, next;
#X floatatom 33 212 5 0 0;
#X obj 39 242 element help-element-template array1;
#X obj 39 289 get help-element-array1-template y;
#X floatatom 42 314 5 0 0;
#X text 304 241 arguments: template \, field name;
#X text 248 216 pointer inlet;
#X text 31 191 index;
#X text 44 263 outlet is pointer to single element;
#X text 93 312 here we just get the value of y.;
#X text 25 129 Indices range from 0 to the number of elements minus one \; indices out of range are quietly replaced by the nearest endpoint.;
#X text 153 170 click here first;
#X connect 13 0 16 1;
#X connect 14 0 13 0;
#X connect 15 0 16 0;
#X connect 16 0 17 0;
#X connect 17 0 18 0;
