Sign In:     


Forum: General Discussion

Topic: 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.
 

Posted 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?
 

Im also lookig help about this. There is any explanation who to program the leds. I have a xone k2 and when i remap the co troller the leds are stayd in the original map. I want to know how ro remap the leds to. Copy paste not working i tried, or not all the time. I want to know where can i found proper informaiton, about, change color, on off, only press, and blink. Thanks.
 

Here's an example I have mapped to LED_BUTTON_IJKL on my K2:

loaded ? play ? color 'green' : blink 2bt ? color 'green' : off


The button is off if no track is loaded, on when loaded, & flashing when playing.
I hope this helps.