Hello.
I am having issues getting my patch to do what I want it to.
I'll do my best to describe what I'm trying to do and I've attached my patch.
I have a Korg padKonrol that I want use to visually represent time for an audio loop.
There are sixteen pads that have leds--to start off I was trying to make each of the sixteen pads light up in sequence (light will advance every 1 second in my patch).
The pads have control numbers from 50 to 65. A control value of 127 lights the pad, and a control value of 0 turns the pad off.
In my patch I have the bang first set the number object to 49--the metro then bangs that object, 1 is added (to get 50). I then have the 50 stored back into the number object for counting. The current number (50 at start) and the previous number (49 at start) are packaged and sent to a ctlout where the current number led is turned on (value 127) and the previous one is turned off (value 0).
This just continues to count up.
There is most likely a more elegant way to do this, but my main concern is that my padKontrol will sometimes keep two pads lit as it goes through the counting (ex, 50 turns on correctly -> 50 turns off correctly, 51 turns on correctly -> 51 stays on (incorrect), 52 turns on correctly -> 52 turns off correctly (as well as 51), 53 turns on correctly) -- it will occasionally do this and throw in two that stay lit, when I only want one lit at a time.
I was thinking it may have to do with how I'm sending the messages to the ctlout (order they are being sent, or they are getting confused because they are being sent too close together, etc)
Hopefully this makes sense. I tried to explain with as much detail as possible.
Thanks.