Marc Boon a écrit :
isn't is much simpler to use a modulo counter (forgive me for the ascii art):
Try the patch witch is joined. If you don't need very short time between bangs, it probably help you.
.sr
#N canvas 0 0 454 304 12; #X obj 42 76 metro; #X floatatom 184 65 5 0 0 0 - - -; #X msg 42 4 bang; #X msg 91 4 stop; #X obj 42 127 i; #X obj 78 127 + 1; #X obj 184 6 loadbang; #X msg 184 37 1000; #X text 233 37 <--default setting; #X text 234 64 <--set the time in ms here; #X msg 185 169 0; #X floatatom 42 247 5 0 0 0 - - -; #X obj 42 183 t f f f; #X text 223 170 <--reset counter when 2 is selected; #X obj 185 133 sel 3; #X text 235 133 <--send bang on 3; #X floatatom 185 110 5 0 0 0 - - -; #X text 238 107 <--set the number to bang; #X connect 0 0 4 0; #X connect 1 0 0 1; #X connect 2 0 0 0; #X connect 3 0 0 0; #X connect 4 0 12 0; #X connect 5 0 4 1; #X connect 6 0 7 0; #X connect 7 0 1 0; #X connect 10 0 4 1; #X connect 12 0 11 0; #X connect 12 1 14 0; #X connect 12 2 5 0; #X connect 14 0 10 0; #X connect 16 0 14 1;