From 4d84d14ac1aa13958eaa2971b03f7f929a519105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Fri, 8 Feb 2008 13:00:32 +0000 Subject: reorganized svn path=/trunk/; revision=9400 --- desiredata/doc/5.reference/set-help.pd | 61 ++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 desiredata/doc/5.reference/set-help.pd (limited to 'desiredata/doc/5.reference/set-help.pd') diff --git a/desiredata/doc/5.reference/set-help.pd b/desiredata/doc/5.reference/set-help.pd new file mode 100644 index 00000000..d9750558 --- /dev/null +++ b/desiredata/doc/5.reference/set-help.pd @@ -0,0 +1,61 @@ +#N struct help-set-template1 float x float y symbol s; +#N canvas 355 10 598 568 12; +#X text 34 478 see also:; +#X obj 127 499 append; +#X obj 185 499 getsize; +#X obj 252 499 setsize; +#X obj 153 523 element; +#X obj 26 523 sublist; +#X msg 211 174 next; +#X floatatom 20 192 5 0 0 0 - - -; +#X floatatom 109 200 5 0 0 0 - - -; +#X obj 197 199 pointer; +#X text 274 132 output first scalar in list; +#X text 257 174 output next item; +#X text 263 223 First argument selects template.; +#X text 264 238 Remaining args are names of fields.; +#X obj 26 498 pointer; +#X msg 197 150 traverse pd-help-set-data \, next; +#N canvas 0 0 276 122 help-set-data 1; +#X scalar help-set-template1 39 23 dog \;; +#X scalar help-set-template1 99 73 cat \;; +#X restore 389 461 pd help-set-data; +#N canvas 41 424 514 219 help-set-template1 0; +#X obj 41 87 filledpolygon 9 0 1 0 0 20 0 20 30 0 30; +#X obj 39 34 struct help-set-template1 float x float y symbol s; +#X obj 46 133 drawsymbol s 0 -15 0 s=; +#X restore 389 483 pd help-set-template1; +#X text 86 10 -- set values in a scalar; +#X obj 20 223 set help-set-template1 x y; +#X text 19 174 x value; +#X text 107 181 y value; +#X obj 94 498 get; +#X text 14 34 "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 text 333 530 updated for Pd version 0.39; +#X obj 94 523 struct; +#X obj 21 10 set; +#X msg 257 389 next; +#X obj 243 414 pointer; +#X msg 243 365 traverse pd-help-set-data \, next; +#X obj 21 444 set -symbol help-set-template1 s; +#X symbolatom 21 423 10 0 0 0 - - -; +#X msg 21 370 symbol monkey; +#X msg 29 396 symbol fish; +#X text 25 300 To set fields whose values are symbols \, give the set +object the "-symbol" argument. (Unfortunately \, you can't mix symbols +and numbers in the same "set" object.); +#X connect 6 0 9 0; +#X connect 7 0 19 0; +#X connect 8 0 19 1; +#X connect 9 0 19 2; +#X connect 15 0 9 0; +#X connect 27 0 28 0; +#X connect 28 0 30 1; +#X connect 29 0 28 0; +#X connect 31 0 30 0; +#X connect 32 0 31 0; +#X connect 33 0 31 0; -- cgit v1.2.1