#N canvas 250 157 627 476 10; #X obj 130 219 route 0 1 2 3 4; #X obj 130 42 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X text 153 40 start; #X obj 130 74 metro 500; #X obj 130 119 f 0; #X obj 177 119 + 1; #X floatatom 175 156 5 0 0 0 - - -; #X msg 202 74 0; #X obj 130 313 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 147 289 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 164 269 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 182 290 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 199 313 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X floatatom 176 188 5 0 0 0 - - -; #X obj 130 155 % 7; #X obj 217 255 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X text 279 38; #X text 288 56 This patch illustrates the route function. Route is a like a branching function which takes the inlet and sends it through one of several different outlets according to what that inlet is.; #X text 290 140 In this example \, the possible inlet values that are recognized by route are 0 \, 1 \, 2 \, 3 \, 4 Notice that this is 5 values \, however there are in fact 6 outlets. The sixth outlet is used if the inlet does not match anything from the list 0 \, 1 \, 2 \, 3 \, 4; #X text 292 234 If you push the start button you will see the bang boxes below light up on the half second. The first 5 will respond to the numbers 0 \, 1 \, 2 \, 3 \, 4 and then the sixth one will respond to the other numbers 5 and 6 Since we are using % 7 \, the values will cycle through 0 to 6; #X connect 0 0 8 0; #X connect 0 1 9 0; #X connect 0 2 10 0; #X connect 0 3 11 0; #X connect 0 4 12 0; #X connect 0 5 15 0; #X connect 1 0 3 0; #X connect 3 0 4 0; #X connect 4 0 5 0; #X connect 4 0 6 0; #X connect 4 0 14 0; #X connect 5 0 4 1; #X connect 7 0 4 1; #X connect 14 0 0 0; #X connect 14 0 13 0;