aboutsummaryrefslogtreecommitdiff
path: root/pd/doc/5.reference/set-help.pd
blob: d9750558b6e4fc7a1bd452a2d4c93ebc0fa9cf6c (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
52
53
54
55
56
57
58
59
60
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;