Entra:     


Forum: General Discussion

Topic: Trying to get MIDI functions working with VDJ

Questo argomento è obsoleto e potrebbe contenere informazioni obsolete o errate.

I have a Mackie D.4 Pro which works wicked with VirtualDJ, and I'm able to use the MIDI crossfader to control my video crossfades, and it's all peachy and wonderful.

The also supports "A separate, unique MIDI note-on message for each program fader that is assigned to the crossfader." according to the manual. However, I'm unable to detect any other commands other than just the normal crossfader position.

I'm wondering if there's some way to figure out how I could manually enter the command that virtual DJ needs to recognize in order to use this function, i.e. for fader start/stop...

In VDJ the crossfader shows up as 0-CC4. In the manual it gives the following chart:

Crossfader Position:
Value: 176, Control Change Channel 1
Data1: Value:4 Foot Controller
Data2: Value:0 to 127 Crossfader Position

Note on/Note off for PGM channels assigned to the crossfader:
Value: 144, Note on, Ch1
Value: 0, 1, 2, or 3 (these correspond to PGM channels 1-4).
Data2: Value 0 to 127 - Note on: 127, Note off: 0


Any ideas what I can plug into VDJ in order to use these commands? I'm a little stumped on this one... it's really my first time playing with MIDI controllers in VDJ.

Any ideas would be appreciated!
 

Inviato Sat 18 Jul 09 @ 12:34 am
No ideas on this?

I have a MIDI diagnostics program of such that captures the raw midi output from a midi device... I thought I'd have a go through that and see if I got any ideas about this later tonight. I'll post if I can figure something else out.
 

You need to build a definition file that details the various elements that you outlined. Please see the wiki and look in the Hardware forum for conversations about doing the same for other controllers/MIDI devices.

 

Since I've now learned how to do device definitions, I was able to figure this out... I've written a mapper for the Mackie d.4 Pro MIDI functions, of which there are only 5, so it's short and sweet - here's the code - save this as My Documents\VirtualDJ\Devices\Mackie d.4 Pro.xml:


<?xml version="1.0" encoding="UTF-8"?>
<device name="Mackie d.4 Pro" author="J.D. Lien" type="MIDI" decks="2">
<slider name="crossfader" cc="0x04" min="0" full="127" />
<button name="cfstart_pgm1" note="0x00"/>
<button name="cfstart_pgm2" note="0x01"/>
<button name="cfstart_pgm3" note="0x02"/>
<button name="cfstart_pgm4" note="0x03"/>
</device>


And here's a sample for the mapper itself - I found that it worked well to set the fader start functions to "cue" because then it would play when the note on message is sent, and reset when the crossfader is moved back. Works exactly how I would expect (of course, others may want to use just play so that it only starts when you move the fader, and doesn't return when it is moved back).

Save this as My Documents\VirtualDJ\Mappers\Mackie d.4 Pro mapping.xml

<?xml version="1.0" encoding="UTF-8"?>
<mapper device="Mackie d.4 Pro" author="J.D. Lien" description="MIDI for d.4 Pro Mixer" version="602" date="22/09/2009">
<map value="crossfader" action="video_crossfader" />
<map value="cfstart_pgm1" action="deck 2 cue" />
<map value="cfstart_pgm2" action="deck 1 cue" />
</mapper>


The one thing I wasn't sure about in the device definition is that you would normally want to identify the device there (like with sysex?) but I don't think the device responds to sysex messages. I also attempted to use the driver name without any luck.

Will this be a problem? I'm worried that for some people, it could interfere with other MIDI devices, but so far it seems to be working okay with my setup.
 



(Vecchi argomenti e forum sono automaticamente chiusi)