Hi!
I think a counter approach with a changing jump could be the easiest way as Frank suggested, and no c/c++ programation would be necessary (Pd is easier!). Look at attached patch Javier! My two cents! ;-)
Saludos.
2008/1/3, Steffen Leve Poulsen slagmark@worldonline.dk:
Hi Javier
You could trigger the counter with the count. see attached
mvh Steffen Leve Poulsen
Javier Garcia skrev:
Hi,
im trying to create a patch with a counter that when i send a bang I substract a quantity (that i specify) to the count.
The sequence would be this for example:
1 - 2- 3 - 4 - 5 - 6 - 7 (bang) - 4 - 5 (bang) - 2 - 3 - ...
I've tried several ways, but i dont get it..
br. GARFF
#N canvas 326 98 494 409 10; #X obj 96 168 list split 1; #X obj 50 206 list prepend; #X obj 96 276 +; #X msg 249 87 1 1 1 1 1 1 1 -4 1 1 -4; #X obj 115 247 mod 128; #X obj 151 19 loadbang; #X obj 96 75 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1 ; #X obj 96 133 list; #X obj 99 305 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144 -1 -1 0 1; #X obj 96 101 metro 40; #X msg 249 116 1 1 1 -2; #X msg 248 144 -1 1 1 1 1 -1 -1; #X obj 151 42 t b b; #X connect 0 0 1 0; #X connect 0 0 2 0; #X connect 0 1 1 1; #X connect 1 0 7 1; #X connect 2 0 4 0; #X connect 2 0 8 0; #X connect 3 0 7 1; #X connect 4 0 2 1; #X connect 5 0 12 0; #X connect 6 0 9 0; #X connect 7 0 0 0; #X connect 9 0 7 0; #X connect 10 0 7 1; #X connect 11 0 7 1; #X connect 12 0 6 0; #X connect 12 1 3 0;
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list