Thanks - don't have time right now to study the difference between the two versions or to figure out why one is (potentially) better than the other, but thanks all the same.
It's amazing how helpful this list is, really :)
On Tue, Jul 22, 2003 at 07:09:20PM +0200, Frank Barknecht wrote:
Hallo,
Marc Lavallée hat gesagt: // Marc Lavallée wrote:
Le 22 Juillet 2003 09:16, matthijs@devdsp.net a écrit :
The attached patch is my attempt at creating a counter that switches between two values after every x bangs (6, in this case).
It works, but I was wondering if someone knew of a less kludgy way to do it.
Included is your updated patch.
And attached a third version, done without the tgl-object.
ciao
Frank Barknecht _ ______footils.org__
#N canvas 267 274 450 300 10; #X obj 100 94 f 0; #X obj 133 95 + 1; #X obj 100 37 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X obj 100 66 metro 200; #X floatatom 52 148 5 0 0 0 - - -; #X obj 100 214 bng 15 250 50 0 empty empty out-a 0 -6 0 8 -262144 -1 -1; #X obj 100 123 mod 12; #X obj 146 214 bng 15 250 50 0 empty empty out-b 0 -6 0 8 -262144 -1 -1; #X obj 222 63 f $1; #X obj 170 95 * 2; #X obj 100 147 select 0; #X obj 146 166 select 6; #X obj 222 20 loadbang; #X floatatom 243 42 5 0 0 1 set-repetition-count - -; #X obj 114 246 print a; #X obj 169 247 print b; #X connect 0 0 1 0; #X connect 0 0 6 0; #X connect 1 0 0 1; #X connect 2 0 3 0; #X connect 3 0 0 0; #X connect 5 0 14 0; #X connect 6 0 4 0; #X connect 6 0 10 0; #X connect 7 0 15 0; #X connect 8 0 9 0; #X connect 8 0 11 1; #X connect 9 0 6 1; #X connect 10 0 5 0; #X connect 10 1 11 0; #X connect 11 0 7 0; #X connect 12 0 8 0; #X connect 13 0 8 0;