diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2008-02-08 13:00:32 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2008-02-08 13:00:32 +0000 |
commit | 4d84d14ac1aa13958eaa2971b03f7f929a519105 (patch) | |
tree | 6579d3f2cea5410a10c4baac8d0f372fb0dff372 /desiredata/doc/5.reference/get-help.pd | |
parent | b334d38aefbd8e0e159d7af6c20d63c5d2b64859 (diff) |
reorganized
svn path=/trunk/; revision=9400
Diffstat (limited to 'desiredata/doc/5.reference/get-help.pd')
-rw-r--r-- | desiredata/doc/5.reference/get-help.pd | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/desiredata/doc/5.reference/get-help.pd b/desiredata/doc/5.reference/get-help.pd new file mode 100644 index 00000000..3b2f235a --- /dev/null +++ b/desiredata/doc/5.reference/get-help.pd @@ -0,0 +1,51 @@ +#N struct help-get-template1 float x float y symbol s; +#N canvas 489 102 633 413 12; +#X text 22 324 see also:; +#X obj 93 344 set; +#X obj 125 344 append; +#X obj 184 344 getsize; +#X obj 252 344 setsize; +#X obj 320 344 element; +#X obj 25 369 sublist; +#X msg 60 130 next; +#N canvas 292 338 631 204 help-get-template1 0; +#X obj 41 87 filledpolygon 9 0 1 0 0 20 0 20 30 0 30; +#X obj 60 21 struct help-get-template1 float x float y symbol s; +#X restore 376 234 pd help-get-template1; +#N canvas 0 0 276 156 help-get-data 1; +#X scalar help-get-template1 46 23 dog \;; +#X scalar help-get-template1 106 73 cat \;; +#X restore 376 212 pd help-get-data; +#X obj 21 10 get; +#X text 86 10 -- get values from a scalar; +#X msg 45 102 traverse pd-help-get-data \, next; +#X floatatom 45 211 5 0 0 0 - - -; +#X floatatom 168 211 5 0 0 0 - - -; +#X obj 45 157 pointer; +#X text 337 101 output first scalar in list; +#X text 103 129 output next item; +#X text 24 267 If you have data whose template varies (from a heterogeneous +list \, for example) you can use "pointer" to select according to template +before sending to "get".; +#X text 31 37 "Get" \, when sent a pointer to a scalar \, retrieves +fields from it by name. The fields can be float or symbol. In the future +this will also allow access to sublists of scalars.; +#X text 307 167 First argument selects template.; +#X text 308 182 Remaining args are names of fields.; +#X text 41 227 x output; +#X text 166 228 y output; +#X obj 25 344 pointer; +#X obj 93 369 struct; +#X text 377 377 updated for Pd version 0.39; +#X obj 45 185 get help-get-template1 x y s; +#X text 252 229 s output; +#X symbolatom 256 211 6 0 0 0 - - -; +#X obj 118 158 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X connect 7 0 15 0; +#X connect 12 0 15 0; +#X connect 15 0 27 0; +#X connect 15 1 30 0; +#X connect 27 0 13 0; +#X connect 27 1 14 0; +#X connect 27 2 29 0; |