
![]() |
Atomix Productions employee responsible for hardware MIDI/HID controller support. For technical support, please either contact support http://www.virtualdj.com/contact/index.html or post in the appropriate forum, e.g: http://www.virtualdj.com/forums/31/Hardware_Technical_Support.html If you are a manufacturer and you would like us to add support for your hardware to VirtualDJ and/or would like to include VirtualDJ LE with it, please contact us via support: http://www.virtualdj.com/contact/index.html |
Fri 27 May 11 @ 12:18 pm
LED's only support two states - On (0x7F) and Off (0x00) (Although the off can alternatively be a different value to produce a dim LED if the controller supports this.)
To implement different colours via the LED's value (Velocity) requires a more complex mapping. You should be able to do this by creating a definition for each different colour with the appropriate value and specify zero="" so that no value is sent to turn off the LED, e.g:
Definition:
<led note="0x01" value="0x12" zero="" name="LED_X_RED" />
<led note="0x01" value="0x30" zero="" name="LED_X_ORANGE" /> (Guessed value)
<led note="0x01" value="0x65" zero="" name="LED_X_GREEN" />
<led note="0x01" value="0x30" zero="" name="LED_X_ORANGE" /> (Guessed value)
<led note="0x01" value="0x65" zero="" name="LED_X_GREEN" />
Mapping:
<map value="LED_X_RED" action="play ? off : cue" />
<map value="LED_X_ORANGE" action="play ? off : cue ? off : on" />
<map value="LED_X_GREEN" action="play" />
<map value="LED_X_ORANGE" action="play ? off : cue ? off : on" />
<map value="LED_X_GREEN" action="play" />
This should make the LED green when the song is playing, red when stopped at the cue point and orange when stopped away from the cue point (Or if the cue point is not set.)
The mapping needs to be designed so that only one of the states for the LED is true at any one time (I.e: So it's not trying to both set the LED red and green at the same time.)
