aboutsummaryrefslogtreecommitdiff
path: root/help/argument-help.pd
blob: dbfd5cde579af2fe06851d75e5352162f9f6969b (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
#N canvas 59 319 922 529 10;
#X obj 496 461 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj -11 19 cnv 15 400 100 empty empty empty 20 12 0 14 -249661 -66577
0;
#X text -3 68 author: mrtoftrash@gmail.com;
#X text -5 89 version: 2009-04-14 (initial release);
#X obj 422 131 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 419 220 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 419 271 print;
#X obj 422 179 print;
#X obj 422 303 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 422 351 print;
#X text 618 484 <- open it;
#X obj 422 154 tof/argument 1;
#X obj 419 244 tof/argument 1 32;
#X obj 422 325 tof/argument;
#X text 5 176 [argument n default];
#X text -4 17 description: Outputs the patch's creation arguments individually.
;
#X text 516 147 This help patch is a file and therefore has no creation
arguments. The [argument] to the left has no default value \, so nothing
will be outputed.;
#X text 514 323 With no arguments \, [argument] outputs the patch's
\$0 as symbol.;
#X text 427 407 Inside the following abstraction \, three [argument]
objects output the creation arguments. Look inside for an explenation
of the printed output.;
#X text 517 460 <- bang to print;
#X text 534 237 As stated before \, this help patch is a file and has
no creation arguments. But the [argument] to the left has a default
value and will output it.;
#X text 6 199 argument 1: patch's creation argument to output.;
#X text 5 216 argument 2: default value to output if the patch's creation
argument is not set or if the wrong type.;
#X text 4 253 inlet 1 bang: outputs the n-th patch creation argument
or the default value if there is no n-th creation argument.;
#X text 5 289 outlet 1 anything: outputs the n-th patch creation argument
or the default value if there is no n-th creation argument.;
#X text 1 331 If the patch's n-th creation argument is not of the same
type as the default value \, the default value will be outputed instead.
;
#X text -4 46 tags: initialization patch;
#X text 1 126 see also:;
#X obj 73 129 tof/arguments;
#X obj 496 485 ./test-argument a b;
#X connect 0 0 29 0;
#X connect 4 0 11 0;
#X connect 5 0 12 0;
#X connect 8 0 13 0;
#X connect 11 0 7 0;
#X connect 12 0 6 0;
#X connect 13 0 9 0;