aboutsummaryrefslogtreecommitdiff
path: root/doc/pddp/hradio-help.pd
blob: c8323008a9f72d954d4c10ea8daee4cafe0bcb41 (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
#N canvas 0 0 555 619 10;
#X obj 0 595 cnv 15 552 21 empty \$0-pddp.cnv.footer empty 20 12 0
14 -228856 -66577 0;
#X obj 0 0 cnv 15 552 40 empty \$0-pddp.cnv.header hradio 3 12 0 18
-204280 -1 0;
#X obj 0 295 cnv 3 550 3 empty \$0-pddp.cnv.inlets inlets 8 12 0 13
-228856 -1 0;
#N canvas 54 246 494 344 META 0;
#X text 12 135 LIBRARY internal;
#X text 12 45 LICENSE SIBSD;
#X text 12 155 AUTHOR Thomas Musil;
#X text 12 175 WEBSITE;
#X text 12 215 HELP_PATCH_AUTHORS Jonathan Wilkes revised the patch
to conform to the PDDP template for Pd version 0.42.;
#X text 12 25 KEYWORDS control storage GUI nonlocal;
#X text 12 65 DESCRIPTION horizontal row of gui-radio buttons;
#X text 12 85 INLET_0 float bang list size init number send receive
label label_pos label_font color pos delta;
#X text 12 115 OUTLET_0 float;
#X text 12 195 RELEASE_DATE 2002;
#X text 12 5 ALIAS rdb radiobut radiobutton;
#X restore 500 597 pd META;
#X obj 0 412 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlets 8 12 0
13 -228856 -1 0;
#X obj 0 464 cnv 3 550 3 empty \$0-pddp.cnv.argument arguments 8 12
0 13 -228856 -1 0;
#X obj 0 547 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 12
0 13 -228856 -1 0;
#X obj 78 304 cnv 17 3 90 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
-162280 0;
#N canvas 78 462 428 129 Related_objects 0;
#X obj 22 43 bang;
#X obj 69 43 trigger;
#X obj 145 43 until;
#X obj 201 43 bang~;
#X msg 257 43;
#X obj 20 93 x_all_guis bng tgl vsl hsl hradio vradio vu cnv nbx;
#X text 18 69 All iem-gui objects:;
#X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0
14 -204280 -1 0;
#X text 8 2 [hradio] Related Objects;
#X restore 100 597 pd Related_objects;
#X obj 78 421 cnv 17 3 17 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
-162280 0;
#X text 291 165 and receive names. Right-;
#X text 291 180 click and choose;
#X text 290 196 "Properties" to set them \,;
#X obj 455 20 pddp/pddplink http://wiki.puredata.info/en/hradio -text
pdpedia: hradio;
#X obj 424 45 hradio 15 1 0 8 hradio-help-rcv empty empty 0 -8 0 10
-262144 -1 -1 0;
#X obj 27 50 bng 15 250 50 0 empty empty empty 8 -8 0 10 -262144 -1
-1;
#X floatatom 27 207 4 0 0 0 - - -;
#X obj 27 229 bng 15 250 50 0 empty empty empty 8 -8 0 10 -262144 -1
-1;
#X obj 72 179 tgl 12 0 empty empty empty 8 -8 0 10 -262144 -1 -1 0
1;
#X obj 72 154 route 0 1 2 3 4 5 6 7 8 9;
#X msg 172 71 set \$1;
#X floatatom 172 50 4 0 9 0 - - -;
#X floatatom 50 50 4 0 9 0 - - -;
#X obj 91 179 tgl 12 0 empty empty empty 8 -8 0 10 -262144 -1 -1 0
1;
#X obj 111 179 tgl 12 0 empty empty empty 8 -8 0 10 -262144 -1 -1 0
1;
#X obj 131 179 tgl 12 0 empty empty empty 8 -8 0 10 -262144 -1 -1 0
1;
#X obj 150 179 tgl 12 0 empty empty empty 8 -8 0 10 -262144 -1 -1 0
1;
#X obj 170 179 tgl 12 0 empty empty empty 8 -8 0 10 -262144 -1 -1 0
1;
#X obj 190 179 tgl 12 0 empty empty empty 8 -8 0 10 -262144 -1 -1 0
1;
#X obj 209 179 tgl 12 0 empty empty empty 8 -8 0 10 -262144 -1 -1 0
1;
#X obj 229 179 tgl 12 0 empty empty empty 8 -8 0 10 -262144 -1 -1 0
1;
#X obj 249 179 tgl 12 0 empty empty empty 8 -8 0 10 -262144 -1 -1 0
1;
#X obj 75 207 print;
#X obj 27 118 hradio 25 1 0 10 hradio-help-snd hradio-help-rcv hradio
150 -8 0 12 -128992 -204786 -1 0;
#X msg 107 76 3;
#X msg 107 50 7;
#X floatatom 292 59 5 0 0 0 - - -;
#X floatatom 292 128 5 0 0 0 - - -;
#X obj 292 80 s hradio-help-rcv;
#X obj 292 105 r hradio-help-snd;
#X text 98 303 float;
#X text 98 367 list;
#X text 98 421 float;
#N canvas 109 230 428 285 hradio-creation-arguments 0;
#X obj 25 202 s pd-hradio-creation-arguments;
#X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0
14 -204280 -1 0;
#X text 8 2 [hradio] Creation Arguments and Dynamic Patching;
#X text 22 38 [hradio] can be called with 15 creation arguments. These
are not "optional" - all parameters must be filled or the gui-bng will
not instantiate correctly.;
#X text 22 80 [hradio] creation arguments: Size Unknown Init Number
sendName receiveName Label labelXOff labelYOff font# fontSize bgColor
foregroundColor labelColor initValue;
#X text 22 123 For example \, click the msg-box to dynamically create
a [hradio]:;
#X msg 25 160 obj 160 245 hradio 25 1 0 3 empty empty Sterope 12 -8
0 12 3 27 13 0 \;;
#X connect 6 0 0 0;
#X restore 170 522 pd hradio-creation-arguments;
#X text 291 210 or change them with messages (see below);
#N canvas 79 8 428 608 Setting_hradio_properties_through_messages 0
;
#X text 105 23 no init;
#X text 161 155 label;
#X msg 162 175 label blabla;
#X msg 115 94 init 1;
#X msg 105 42 init 0;
#X text 114 61 init value;
#X text 115 75 on loadbang;
#X text 307 23 change send name;
#X text 10 155 change receive name;
#X obj 28 228 s z_rcv;
#X msg 11 177 receive z_rcv;
#N canvas 378 326 146 263 init 0;
#X obj 16 11 loadbang;
#X obj 16 42 f \$0;
#X msg 16 73 \; \$1-xpos 290 \; \$1-ypos 550 \; \$1-xlabel 0 \; \$1-ylabel
-8 \; \$1-number 8 \; \$1-font-size 10 \; \$1-size 15 \; \$1-font-size
10 \; \$1-font 0 \; \$1-bg 0 \; \$1-front 12 \; \$1-label 12;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X restore 370 491 pd init;
#X text 105 23 no init;
#X msg 115 94 init 1;
#X msg 105 42 init 0;
#X text 114 61 init value;
#X text 115 75 on loadbang;
#X floatatom 198 42 3 0 20 0 - #0-number -;
#X msg 198 94 number \$1;
#X msg 322 92 send vradio_snd;
#X msg 11 94 size \$1;
#X text 10 23 dimensions;
#X obj 11 44 nbx 3 14 8 200 0 0 empty \$0-size empty 0 -8 0 12 -262144
-1 -1 15 256;
#X text 61 41 size;
#X text 300 155 label position;
#X text 9 289 font properties;
#X msg 302 229 label_pos \$1 \$2;
#X msg 11 396 label_font \$1 \$2;
#X text 60 313 1.font(0-2);
#X text 60 334 2.height;
#X text 351 178 1.x-offset;
#X text 351 199 2.y-offset;
#N canvas 366 206 174 259 flash-time 0;
#X obj 68 180 pack;
#X obj 103 149 t b a;
#X obj 68 205 outlet;
#X obj 103 104 nbx 3 14 -1e+37 1e+37 0 0 \$0-dummy \$0-xlabel empty
0 -8 0 12 -262144 -1 -1 0 256;
#X obj 103 124 nbx 3 14 -1e+37 1e+37 0 0 \$0-dummy \$0-ylabel empty
0 -8 0 12 -262144 -1 -1 -8 256;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 1 1 0 1;
#X connect 3 0 0 0;
#X connect 4 0 1 0;
#X coords 0 -1 1 1 48 42 2 100 100;
#X restore 302 177 pd flash-time;
#N canvas 366 206 174 259 flash-time 0;
#X obj 68 180 pack;
#X obj 103 149 t b a;
#X obj 68 205 outlet;
#X obj 103 104 nbx 3 14 0 2 0 0 \$0-dummy \$0-font empty 0 -8 0 12
-262144 -1 -1 0 256;
#X obj 103 124 nbx 3 14 -1e+37 1e+37 0 0 \$0-dummy \$0-font-size empty
0 -8 0 12 -262144 -1 -1 10 256;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 1 1 0 1;
#X connect 3 0 0 0;
#X connect 4 0 1 0;
#X coords 0 -1 1 1 48 42 2 100 100;
#X restore 11 311 pd flash-time;
#X text 162 289 preset-colors;
#X text 301 289 RGB-colors;
#X msg 162 396 color \$1 \$2 \$3;
#N canvas 364 205 306 317 flash-time 0;
#X obj 69 196 t b a;
#X obj 33 262 outlet;
#X obj 33 237 pack 0 0 0;
#X obj 120 197 t b a;
#X obj 103 104 nbx 3 14 0 29 0 0 \$0-dummy \$0-bg empty 0 -8 0 12 -262144
-1 -1 0 256;
#X obj 103 124 nbx 3 14 0 29 0 0 \$0-dummy \$0-front empty 0 -8 0 12
-262144 -1 -1 12 256;
#X obj 103 144 nbx 3 14 0 29 0 0 \$0-dummy \$0-label empty 0 -8 0 12
-262144 -1 -1 12 256;
#X connect 0 0 2 0;
#X connect 0 1 2 1;
#X connect 2 0 1 0;
#X connect 3 0 2 0;
#X connect 3 1 2 2;
#X connect 4 0 2 0;
#X connect 5 0 0 0;
#X connect 6 0 3 0;
#X coords 0 -1 1 1 48 62 2 100 100;
#X restore 162 311 pd flash-time;
#N canvas 0 0 306 317 flash-time 0;
#X obj 96 521 outlet;
#X obj 162 230 t b f;
#X obj 96 268 +;
#X obj 96 293 t b f;
#X obj 96 324 +;
#X obj 19 208 * -65536;
#X obj 96 208 * -256;
#X obj 162 208 * -1;
#X obj 96 355 - 1;
#X obj 96 385 list prepend 0;
#X obj 96 410 route 0 1 2;
#X obj 96 497 pack 0 0 0;
#X obj 115 456 t b a;
#X obj 168 455 t b a;
#X obj 104 124 vradio 15 1 0 3 empty empty empty 0 -8 0 10 -262144
-1 -1 0;
#X text 120 120 1.bg;
#X text 120 137 2.front;
#X text 120 153 3.label;
#X obj 103 105 nbx 3 14 0 255 0 0 \$0-dummy \$0-r empty 0 -8 0 10 -262144
-258113 -1 0 256;
#X obj 133 105 nbx 3 14 0 255 0 0 \$0-dummy \$0-g empty 0 -8 0 10 -262144
-13381 -1 0 256;
#X obj 163 105 nbx 3 14 0 255 0 0 \$0-dummy \$0-b empty 0 -8 0 10 -262144
-4160 -1 0 256;
#X connect 1 0 2 0;
#X connect 1 1 2 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 1 4 1;
#X connect 4 0 8 0;
#X connect 5 0 4 0;
#X connect 6 0 2 0;
#X connect 7 0 1 0;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 10 0 11 0;
#X connect 10 1 12 0;
#X connect 10 2 13 0;
#X connect 11 0 0 0;
#X connect 12 0 11 0;
#X connect 12 1 11 1;
#X connect 13 0 11 0;
#X connect 13 1 11 2;
#X connect 14 0 9 1;
#X connect 18 0 5 0;
#X connect 19 0 6 0;
#X connect 20 0 7 0;
#X coords 0 -1 1 1 102 74 2 100 100;
#X restore 302 311 pd flash-time;
#X text 211 313 1.bg;
#X text 211 333 2.front;
#X text 211 354 3.label;
#X text 162 452 delta;
#X text 10 452 position;
#X msg 11 559 pos \$1 \$2;
#X msg 163 559 delta \$1 \$2;
#X obj 163 535 list;
#X obj 163 474 bng 20 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X text 59 473 1.x-position;
#X text 59 495 2.y-position;
#X text 242 473 1.x-delta;
#X text 242 495 2.y-delta;
#N canvas 366 206 174 259 flash-time 0;
#X obj 68 180 pack;
#X obj 103 149 t b a;
#X obj 68 205 outlet;
#X obj 103 104 nbx 3 14 -1e+37 1e+37 0 0 \$0-dummy \$0-xpos empty 0
-8 0 12 -262144 -1 -1 290 256;
#X obj 103 124 nbx 3 14 -1e+37 1e+37 0 0 \$0-dummy \$0-ypos empty 0
-8 0 12 -262144 -1 -1 550 256;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 1 1 0 1;
#X connect 3 0 0 0;
#X connect 4 0 1 0;
#X coords 0 -1 1 1 48 42 2 100 100;
#X restore 11 474 pd flash-time;
#N canvas 366 206 174 259 flash-time 0;
#X obj 68 180 pack;
#X obj 103 149 t b a;
#X obj 68 205 outlet;
#X obj 103 104 nbx 3 14 -20 20 0 0 \$0-dummy \$0-xdelta empty 0 -8
0 12 -262144 -1 -1 0 256;
#X obj 103 124 nbx 3 14 -20 20 0 0 \$0-dummy \$0-ydelta empty 0 -8
0 12 -262144 -1 -1 0 256;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 1 1 0 1;
#X connect 3 0 0 0;
#X connect 4 0 1 0;
#X coords 0 -1 1 1 48 42 2 100 100;
#X restore 192 474 pd flash-time;
#X obj 269 525 cnv 15 147 77 empty empty empty 20 12 0 14 -1 -66577
0;
#X obj 270 526 cnv 15 145 75 empty empty empty 20 12 0 14 -261682 -66577
0;
#X floatatom 291 580 5 0 0 0 - - -;
#X obj 290 550 hradio 15 1 0 8 hradio_snd hradio_rcv myHradio 0 -8
0 10 -262144 -33289 -33289 0;
#X obj 11 118 s hradio_rcv;
#X obj 105 118 s hradio_rcv;
#X obj 198 118 s hradio_rcv;
#X obj 308 118 s hradio_rcv;
#X obj 11 254 s hradio_rcv;
#X obj 162 254 s hradio_rcv;
#X obj 302 254 s hradio_rcv;
#X obj 11 421 s hradio_rcv;
#X obj 162 421 s hradio_rcv;
#X obj 11 584 s hradio_rcv;
#X obj 163 584 s hradio_rcv;
#X msg 28 203 receive hradio_rcv;
#X msg 308 46 send hradio1_snd;
#X msg 172 229 label myHradio;
#X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0
14 -204280 -1 0;
#X text 8 2 [hradio] Set Properties through Messages;
#X text 198 23 number of cells;
#X connect 2 0 63 0;
#X connect 3 0 59 0;
#X connect 4 0 59 0;
#X connect 10 0 62 0;
#X connect 17 0 18 0;
#X connect 18 0 60 0;
#X connect 19 0 61 0;
#X connect 20 0 58 0;
#X connect 22 0 20 0;
#X connect 26 0 64 0;
#X connect 27 0 65 0;
#X connect 32 0 26 0;
#X connect 33 0 27 0;
#X connect 36 0 66 0;
#X connect 37 0 36 0;
#X connect 38 0 36 0;
#X connect 44 0 67 0;
#X connect 45 0 68 0;
#X connect 46 0 45 0;
#X connect 47 0 46 0;
#X connect 52 0 44 0;
#X connect 53 0 46 1;
#X connect 57 0 56 0;
#X connect 69 0 9 0;
#X connect 70 0 61 0;
#X connect 71 0 63 0;
#X restore 171 388 pd Setting_hradio_properties_through_messages;
#X text 168 421 - output the number of the cell that has been clicked
or sent to the inlet of [hradio]. Cell's are numbered from right to
left \, in increasing order \, starting from zero.;
#X text 24 246 Use the UP- \, DOWN- \, LEFT- or RIGHT-key to move a
selected gui-object. Right-click and choose "Properties" to modify
its appearance.;
#X text 11 21 horizontal row of gui-radio buttons;
#X text 290 149 [hradio] has settable send;
#X text 168 303 - a float highlights the corresponding button and outputs
the button number. Buttons are numbered from left to right \, starting
from zero. For incoming numbers that are out of range \, the nearest
button number is selected.;
#X text 168 468 - creating an [hradio] without any arguments sets default
values for its gui-properties. See the subpatch below to learn how
to dynamically instantiate a [hradio] object with custom properties:
;
#X text 99 468 15;
#X text 215 552 (c) musil@iem.kug.ac.at;
#X text 257 565 IEM KUG;
#X text 232 577 graz \, austria 2002;
#X text 168 367 - a list is truncated to the first element.;
#X obj 4 597 pddp/pddplink pddp/help.pd -text help;
#X text 98 351 bang;
#X text 168 351 - output the last selected value.;
#X text 329 2 [rdb] or [radiobut] or [radiobutton];
#X connect 15 0 33 0;
#X connect 16 0 17 0;
#X connect 19 0 18 0;
#X connect 19 1 23 0;
#X connect 19 2 24 0;
#X connect 19 3 25 0;
#X connect 19 4 26 0;
#X connect 19 5 27 0;
#X connect 19 6 28 0;
#X connect 19 7 29 0;
#X connect 19 8 30 0;
#X connect 19 9 31 0;
#X connect 20 0 33 0;
#X connect 21 0 20 0;
#X connect 22 0 33 0;
#X connect 33 0 16 0;
#X connect 33 0 19 0;
#X connect 33 0 32 0;
#X connect 34 0 33 0;
#X connect 35 0 33 0;
#X connect 36 0 38 0;
#X connect 39 0 37 0;