Troubleshooting

Best way to do running lights

Started by electrofux on .

Sign in or create an account to join the conversation.

4 posts

Topic starter
I want to implement a running light with either an Led object, or a pad object (1 row of 16).

Now, i get a Note On signal that delivers me the step to be light in a variable.

But just cant figure out how to lit unlit a single led i though i can do it like this:

setattribute(Leds[step],'value',1);

or

setattribute(Pads[step],'color',{1111111,2222222);

But it doesn't work. How can i lit/unlit single Leds/Pads in a row?
I was wondering about the same thing.
It looks like pads' light/color attribute cannot be set individually within an array of pads, like:
    setattibute(pads[5], 'light', -2);
Hope a mod/support rep chimes in to explain!
The way i solved it was resending the whole array with the changed single value. But i assume this is not very efficient though i am not really sure about this. Maybe this is just how it is done.

There is also the "set(a,value,position)" function but i haven't had any luck with this too.