Ingreso rápido:  

Forum: VirtualDJ Technical Support

Tema: Light up LED while button is pressed.
I have a Novation Launchpad MK3 and all I want is for a button to light up when it is pressed. How would I do this?

I've tried:
down ? color red : color cyan

But that doesn't work and now I'm confused.
 

Mensajes Sat 14 Aug 21 @ 11:04 pm
locoDogPRO InfinityModeratorMember since 2013
What does the button do?
 

Mensajes Sun 15 Aug 21 @ 6:53 am
All it needs to do is mute the 4 decks while it's being held.

I want it to be cyan when it's not being pressed, and red while it is being pressed.
 

Mensajes Sun 15 Aug 21 @ 8:11 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
You can query the down state for a button, but not for the led.

So you probably have something like.. deck all mute while_pressed in your button.
In this case (using the action mute) , you need to query the state of one of the decks like..
mute ? color 'red' : color 'cyan'

 

Mensajes Sun 15 Aug 21 @ 9:08 pm
The color portion of your code works perfectly.

On an unrelated note: "deck all mute while_pressed" does not work for me as it just toggles mute on and off and ignores the "while_pressed" part. The only way I could get it to work properly was by doing it this way:

"deck 1 mute while_pressed & deck 2 mute while_pressed & deck 3 mute while_pressed & deck 4 mute while_pressed" programming sucks sometimes.

Thank you for your help, you have made my day! ^~^
 

Mensajes Sun 15 Aug 21 @ 10:19 pm