[PD] counter trouble

robbert van hulzen robbert at performers.net
Sun Nov 26 02:55:25 CET 2006


dear all, i'm working on a little metronome abstraction (thanks for the link
with the description of the inversion process, frank barknecht! hadn't sat
down to dissect the rrad.metro yet), and i'm running into some trouble with
[counter]: a 'low' creation argument doesn't seem to be accepted more than
once. eg i want it to count from 1 to 5 (to be able to differentiate between
downbeat and other beats): that works once, after that it starts counting up
from 0 again. i worked around it in the way as shown in the patch below, but
i'm wondering whether that's the right / only / most elegant way?

thanks!

#N canvas 0 22 281 257 10;
#X obj 43 144 counter;
#X msg 99 108 1;
#X obj 23 82 metro 500;
#X obj 160 170 sel;
#X obj 23 57 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X floatatom 43 173 5 0 0 0 - - -;
#X obj 108 82 t b f f;
#X floatatom 108 59 5 0 0 0 - - -;
#X obj 130 108 int;
#X connect 0 0 3 0;
#X connect 0 0 5 0;
#X connect 1 0 0 2;
#X connect 2 0 0 0;
#X connect 3 0 1 0;
#X connect 4 0 2 0;
#X connect 6 0 1 0;
#X connect 6 1 8 0;
#X connect 6 2 3 1;
#X connect 7 0 6 0;
#X connect 8 0 0 4;






More information about the Pd-list mailing list