Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: Custom mapping for NI Kontrol Z2
Hi everybody,

User of VirtualDJ Pro for years, I first wanted to congratulate the whole team for the great work accomplished over the last few years to bring our favorite Djing software to a spectacular level, while maintaining ease of use, a very efficient management of the music database , the most extensive device support, and many more... :-)

That said, I would like to have some advices about customizing a NI Kontrol Z2 mixer.
The goal is to add a CUE and a PLAY button for deck left and right. I would like to use the Hotcue 1 and 2 for these like shown in this picture:



Changing constant color for these are pretty easy like:

cue_color 1 : constant '999,0,0' (= red for CUE)
cue_color 2 : constant '0,999,0' (= green for PLAY)

But what about the ability to blink the PLAY button led if deck is stopped or paused ?

For example, I see this code for device Omnitronic CMX-2000:

LED_PLAY_PAUSE: loaded ? cue_stop ? var 'cup' ? on blink : off : play ? on : blink

As default definition file is not editable, is it still possible to define the green color blinking for this original Hotcue 2 button "converted" to a PLAY button?

Thanks to the community,
Iridium
 

Posted 18 hours ago
AdionPRO InfinityCTOMember since 2006
simply use the constants for the color you want instead of 'on' or 'off'
(and for blinking, something like blink ? constant '255,0,0' : constant '0,0,0')
 

Posted 18 hours ago
Thanks for your feeback.

So it means that using ON or OFF will take the color defined in the hard code definition file, and that the only way to workaround is to use this "constant" setting ? Is it right? Thanks!
 

Posted 17 hours ago
AdionPRO InfinityCTOMember since 2006
It depends on how the keys are defined, so not really a workaround.
on/off are used when the key is just a led that can only be on or off, like most likely the play LED in the Omnitronic CMX-2000.
When a key is defined as expecting a color, it should be given the color, rather than on/off, and it is indeed possible that the definition has a default color specified for when only on/off is given.

I am also guessing that the default mapping of the Z2 is relatively old, since for newer mappers there is a specific 'color' script that can be used instead (and which might work for the Z2 as well)
So then your script could use color red for example to make it easier to read instead of constant '255,0,0'
 

Posted 16 hours ago
I'll try and come back to you, thanks again!
 

Posted 15 hours ago