aboutsummaryrefslogtreecommitdiff
path: root/desiredata/doc/5.reference/get-help.pd
blob: 3b2f235a84d97c3783870999a0eaca2777be1ee4 (plain)
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
#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;