#N canvas 596 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 79 82 vary this -->; #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 667 doc_f; #X obj 97 602 doc_m oany ; #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 ; #X text 232 426 0: not changing; #X text 232 448 1: going up \, cycling; #X text 232 470 2: going up \, pingpong; #X obj 232 338 doc_same 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 obj 3 647 doc_also; #X msg 222 114 this should say that shunt has no method for this; #X obj 57 148 metro 500; #X obj 57 167 f; #X obj 81 167 + 1; #X obj 57 131 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X msg 303 146 mode 2; #X msg 34 97 help; #X obj 97 219 doc_m c0 float; #X obj 97 254 doc_m c1 float; #X obj 97 527 doc_m i1 float; #X obj 103 647 gf/oneshot; #X obj 175 647 spigot; #X obj 223 647 demux; #X connect 4 0 17 0; #X connect 5 0 17 1; #X connect 17 0 0 0; #X connect 17 1 1 0; #X connect 17 2 2 0; #X connect 17 3 3 0; #X connect 24 1 9 0; #X connect 25 1 35 0; #X connect 26 1 29 0; #X connect 26 1 30 0; #X connect 26 1 32 0; #X connect 26 1 33 0; #X connect 26 1 34 0; #X connect 27 1 37 0; #X connect 28 1 36 0; #X connect 31 1 38 0; #X connect 39 1 50 0; #X connect 39 1 51 0; #X connect 39 1 52 0; #X connect 40 0 17 1; #X connect 41 0 42 0; #X connect 42 0 4 0; #X connect 42 0 43 0; #X connect 43 0 42 1; #X connect 44 0 41 0; #X connect 45 0 17 0; #X connect 46 0 17 0; #X connect 47 1 18 0; #X connect 48 1 19 0; #X connect 49 1 8 0;