First read : http://www.virtualdj.com/wiki/ControllerDefinition.html
Here is an example for the RMX in MIDI
or more easily (to avoid defining twice the same function in the mapper file [2nd xml file])
or if you want to map two different functions in the 2nd case (for example play_pause on deck 1 and play on deck 2):
I used the "drivername" solution which is not the best one but the easiest to use ;-)
To get "drivername" or "sysexid", use :
MIDI devices tool
http://www.virtualdj.com/download/miditrace.exe
"drivername" is displayed in the right part
For the Hercules DJ Control MP3, the name will be:
Here is an example for the RMX in MIDI
RMX_definition.xml wrote :
<?xml version="1.0" encoding="UTF-8"?>
<device name="RMX_CEL" author="djcel" type="MIDI" decks="2" drivername="Hercules DJ Console Rmx MIDI">
<button cc="11" name="LEFT_PLAY"/>
<button cc="35" name="RIGHT_PLAY"/>
...
</device>
<device name="RMX_CEL" author="djcel" type="MIDI" decks="2" drivername="Hercules DJ Console Rmx MIDI">
<button cc="11" name="LEFT_PLAY"/>
<button cc="35" name="RIGHT_PLAY"/>
...
</device>
RMX_mapper.xml wrote :
<?xml version="1.0" encoding="UTF-8"?>
<mapper device="RMX_CEL" author="djcel" description="RMX djcel" version="600">
<map value="LEFT_PLAY" action="deck 1 play_pause" />
<map value="RIGHT_PLAY" action="deck 2 play_pause" />
...
</mapper>
<mapper device="RMX_CEL" author="djcel" description="RMX djcel" version="600">
<map value="LEFT_PLAY" action="deck 1 play_pause" />
<map value="RIGHT_PLAY" action="deck 2 play_pause" />
...
</mapper>
or more easily (to avoid defining twice the same function in the mapper file [2nd xml file])
RMX_definition.xml wrote :
<?xml version="1.0" encoding="UTF-8"?>
<device name="RMX_CEL" author="djcel" type="MIDI" decks="2" drivername="Hercules DJ Console Rmx MIDI">
<button cc="11" name="PLAY" deck="1"/>
<button cc="35" name="PLAY" deck="2"/>
...
</device>
<device name="RMX_CEL" author="djcel" type="MIDI" decks="2" drivername="Hercules DJ Console Rmx MIDI">
<button cc="11" name="PLAY" deck="1"/>
<button cc="35" name="PLAY" deck="2"/>
...
</device>
RMX_mapper.xml wrote :
<?xml version="1.0" encoding="UTF-8"?>
<mapper device="RMX_CEL" author="djcel" description="RMX djcel" version="600">
<map value="PLAY" action="play_pause" />
...
</mapper>
<mapper device="RMX_CEL" author="djcel" description="RMX djcel" version="600">
<map value="PLAY" action="play_pause" />
...
</mapper>
or if you want to map two different functions in the 2nd case (for example play_pause on deck 1 and play on deck 2):
RMX_mapper.xml wrote :
<?xml version="1.0" encoding="UTF-8"?>
<mapper device="RMX_CEL" author="djcel" description="RMX djcel" version="600">
<map value="PLAY" action="action_deck 1 ? play_pause : play" />
...
</mapper>
<mapper device="RMX_CEL" author="djcel" description="RMX djcel" version="600">
<map value="PLAY" action="action_deck 1 ? play_pause : play" />
...
</mapper>
I used the "drivername" solution which is not the best one but the easiest to use ;-)
To get "drivername" or "sysexid", use :
MIDI devices tool
http://www.virtualdj.com/download/miditrace.exe
"drivername" is displayed in the right part
For the Hercules DJ Control MP3, the name will be:
drivername="Hercules DJ Control MP3 MIDI"
发表时间 Mon 01 Jun 09 @ 6:23 pm