1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
#N canvas 252 0 531 364 12;
#X text 326 337 updated for Pd version 0.32;
#X text 8 263 see also:;
#X obj 117 309 template;
#X obj 94 283 append;
#X obj 141 283 getsize;
#X obj 195 283 setsize;
#X obj 250 283 element;
#X obj 11 308 sublist;
#X obj 66 309 scalar;
#N canvas 113 280 528 297 stuff 0;
#X obj 110 35 loadbang;
#X msg 110 57 bang;
#X obj 109 80 t b b b b;
#X obj 248 134 pointer;
#X msg 95 137 60 200 \, 120 250;
#X msg 236 64 \; pd-help-set-data clear;
#X msg 248 111 traverse pd-help-set-data \, bang;
#X obj 96 210 append help-set-template1 x y;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 1 4 0;
#X connect 2 2 6 0;
#X connect 2 3 5 0;
#X connect 3 0 7 2;
#X connect 4 0 7 0;
#X connect 6 0 3 0;
#X restore 379 288 pd stuff;
#X msg 210 155 next;
#X obj 21 10 get;
#X floatatom 19 173 5 0 0;
#X floatatom 108 181 5 0 0;
#X obj 196 180 pointer;
#X text 273 113 output first scalar in list;
#X text 244 155 output next item;
#X text 218 203 First argument selects template.;
#X text 219 218 Remaining args are names of fields.;
#X obj 11 283 pointer;
#X msg 196 131 traverse pd-help-set-data \, next;
#N canvas 0 0 219 163 help-set-data 1;
#X restore 377 244 pd help-set-data;
#N canvas 164 72 425 146 help-set-template1 0;
#X obj 41 87 filledpolygon 9 0 1 0 0 20 0 20 30 0 30;
#X obj 60 21 template float x float y;
#X restore 377 266 pd help-set-template1;
#X text 86 10 -- set values in a scalar;
#X obj 19 204 set help-set-template1 x y;
#X text 18 155 x value;
#X text 106 162 y value;
#X obj 68 283 get;
#X text 19 32 "Set" takes a pointer to a scalar in its rightmost inlet \; the remaining inlets set numeric values of fields. Only the leftmost inlet is "hot". You can't "set" arrays or sublists. Instead \, you can get pointers into them using "element" and "sublist" (probably not working yet) and set individual items.;
#X connect 10 0 14 0;
#X connect 12 0 24 0;
#X connect 13 0 24 1;
#X connect 14 0 24 2;
#X connect 20 0 14 0;
|