aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/doc/flow_classes/args-help.pd
blob: 1c2db31fb6e725543aac0df196aa7791d8009994 (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 canvas 662 31 514 627 10;
#X obj 2 0 cnv 15 500 18 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 2 359 cnv 15 500 17 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 2 173 cnv 15 500 18 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 2 196 cnv 15 60 18 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 2 486 cnv 15 500 18 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 2 430 cnv 15 80 18 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 3 197 Inlet 0;
#X text 399 1 GridFlow 0.9.5;
#X obj 16 0 args;
#X text 354 70 demo default args;
#X text 354 90 demo rest of args;
#X text 354 130 demo missing args;
#X obj 12 89 args-demo pommes poires ananas biscuits-soda;
#X text 222 204 Inlets (1);
#X text 18 221 BANG;
#X text 216 361 Outlets (at least 1);
#X text 4 431 Outlet last;
#X text 16 458 MESSAGE;
#X text 75 458 Any comma-arguments from the parent objectbox;
#X text 18 386 there is one outlet per argument plus one outlet for
the comma-messages.;
#X obj 12 129 args-demo;
#X obj 12 69 args-demo blah;
#X obj 12 109 args-demo dorval \, temperature -18 \, pression 99.5
;
#X text 354 110 demo comma args;
#X text 65 221 sends one message per outlet right-to-left except the
last outlet. if there is a wildcard (*) as the last argument \, any
extra arguments go there as a list message. Then for any missing arguments
that have default values \, the default values are sent \, right to
left. Then for each present argument that is not extra \, that argument
will be sent on its own outlet. Finally \, each comma-message is parsed
from the arguments and sent to the last outlet \, which should be connected
with a [t a] just like the first [inlet].;
#X text 211 485 Arguments (any number);
#X text 40 531 SYMBOL;
#X text 20 512 any number of:;
#X text 156 530 represent mandatory arguments;
#X text 40 552 (SYMBOL a ATOM);
#X text 156 550 represent optional arguments;
#X text 41 572 *;
#X text 158 572 represent the rest of arguments;
#X text 20 590 where the star can only occur once and at the end \,
and all optionals must follow all mandatories.;