Se Connecter:     


Forum: General Discussion

Sujet: n00b LED mapping script questions
I'm mapping my xone K2 and am done with all the basic functionality.
Now I want to map some LEDs.

Does anyone have any examples of scripts for making an LED light up while the button is pressed? Do I map this on the button or on the LED?

I'd also like an LED to light up while sync is on, but haven't figured that out either.

If I want to get real fancy I would like my play/pause button on each deck to 'blink 500ms' when the song has 30 seconds left, but that's not important.

If anyone has any tips I would be grateful.
 

Posté Sat 11 Jul 20 @ 9:05 am
 

Xone K2 is already defined in VirtualDJ, so dont need a definition file
 

DJ Anarkodandy wrote :

Does anyone have any examples of scripts for making an LED light up while the button is pressed? Do I map this on the button or on the LED?


Usually this is automatic if the action in the script returns true at given action (or condition).

Else you can use explicitly on or off as part of the script

contition or action ? blink 500ms & do something : off & do something

action ? on & action : off & action


 

Thanks! I figured it out.
 

DJ Anarkodandy wrote :
Thanks! I figured it out.


How did you do it?