aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/doc/flow_classes/shunt-help.pd
blob: d2828f2384c0912908c3eb817d1c54fe2fc0df51 (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
#N canvas 673 22 632 642 10;
#X floatatom 121 151 5 0 0 0 - - -;
#X floatatom 163 151 5 0 0 0 - - -;
#X floatatom 205 151 5 0 0 0 - - -;
#X floatatom 247 151 5 0 0 0 - - -;
#X floatatom 166 85 5 0 0 0 - - -;
#X obj 210 85 hradio 15 1 0 4 empty empty empty 0 -6 0 8 -260818 -1
-1 0;
#X text 272 84 <-- select output here;
#X text 65 84 vary this -->;
#X obj 346 119 shunt;
#X text 232 527 The integer passed to inlet 1 determines which outlet
is active.;
#X text 232 602 Outputs incoming message value according to the selector
value.;
#X text 7 29 The [shunt] routes any type of data to its active outlet.
The number of outlets is defined by the argument at creation and the
active outlet is defined by its right most inlet.;
#X obj 0 0 doc_h;
#X obj 3 286 doc_i 2;
#X obj 3 572 doc_o n;
#X obj 14 316 doc_ii 0;
#X obj 14 527 doc_ii 1;
#X obj 14 602 doc_oo any;
#X obj 166 114 shunt 4;
#X text 232 219 Defines the number of outlets desired. If [shunt] is
created without an argument \, it will have 2 outlets.;
#X text 232 254 Defines the initial active outlet.;
#X obj 3 189 doc_c 2;
#X obj 14 254 doc_cc 1;
#X obj 14 219 doc_cc 0;
#X obj 0 647 doc_f;
#X obj 97 219 doc_m c0 float/int;
#X obj 97 254 doc_m c1 float/int;
#X obj 97 527 doc_m i1 float int;
#X obj 97 602 doc_m oany <any>;
#X obj 97 338 doc_m i0 index;
#X obj 97 382 doc_m i0 mode;
#X obj 97 316 doc_m i0 hi;
#X obj 97 360 doc_m i0 lo;
#X text 232 382 -2: going down \, pingpong;
#X text 232 404 -1: going down \, cycling;
#X obj 97 492 doc_m i0 <any>;
#X text 232 426 0: not changing;
#X text 232 448 1: going up \, cycling;
#X text 232 470 2: going up \, pingpong;
#X text 232 338 same as arg 1;
#X text 232 360 min value for cycling and pingpong (default: 0);
#X text 232 316 max value for cycling and pingpong (default: N-1);
#X text 232 492 Incoming message can be Grids \, Symbols \, Floats
\, Lists \, etc.;
#X connect 4 0 18 0;
#X connect 5 0 18 1;
#X connect 18 0 0 0;
#X connect 18 1 1 0;
#X connect 18 2 2 0;
#X connect 18 3 3 0;
#X connect 25 1 19 0;
#X connect 26 1 20 0;
#X connect 27 1 9 0;
#X connect 28 1 10 0;
#X connect 29 1 39 0;
#X connect 30 1 33 0;
#X connect 30 1 34 0;
#X connect 30 1 36 0;
#X connect 30 1 37 0;
#X connect 30 1 38 0;
#X connect 31 1 41 0;
#X connect 32 1 40 0;
#X connect 35 1 42 0;