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;
check out .../doc/2.control.examples/05.counter.pd
the [counter] object kinda sux, that's why barely anyone uses it.
thanks a lot! i'd looked at those examples, actually, but wasn't aware that that solution would work better than the [counter]. it all works great now, and less kludgy, with less objects too.
On 11/26/06 4:42 AM, "hard off" hard.off@gmail.com wrote:
check out .../doc/2.control.examples/05.counter.pd
the [counter] object kinda sux, that's why barely anyone uses it.
Hallo, robbert van hulzen hat gesagt: // robbert van hulzen wrote:
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?
Maybe I should add a tip how to do counters to that Wiki page as well. Anyway I would recommend to not count with any [counter] external for two reasons: One is that there are several incompatible [counter] objects floating around the net. The other is that counting is really simple to do with standard Pd objects, once you understood how to do it. Attached tutorial may help with that.
Frank Barknecht _ ______footils.org_ __goto10.org__