Hi Joe,I'm writing this to the list, because my direct mail was rejected by your mail server. I'm attaching the current DM2 driver for Linux
to you, maybe as a reference, as an inspiration or as a guide of how not to do it... that's up to you. The driver was developed by Andre Roth and myself. It integrates very well with mixxx, and maybe you would like to take a closer look at it...
I have tried to code the DM2 specific parts separately from the Linux specific parts (USB communication and MIDI emulation). The driver does much more than just sendi keypresses and keyreleases for the buttons and control changes for the wheels, fader and joystick. As a main feature, it uses the LED buttons and the wheels to multiplex into many controls. The "south" key on the respective wheel can be used to center the multiplexed controls, which is otherwise very difficult to do accurately. As a secondary feature, I thought it would be cool to scroll through the playlist with the wheels, so I implemented this: Hold the middle button, turn one of the wheels (sends pulses of MIDI keypresses, one key for up, one for down). Release the middle key (sends another MIDI key, but only if a wheel has been turned). DM2.midi.xml uses this to load a track into the respective player. In my default Mixxx configuration, each wheel can be shifted into low, mid, and high control (hold a LED button) and kill (press and release a LED button). Similarly, holding a LED button will make the wheel regulate the pitch, prefader gain and fader. Pressing and immediately releasing two buttons does fine-tuning of the pitch. The non-LED buttons do nothing special. Just MIDI buttons, and the fader and joystick are simple MIDI controls centered around 63. The lower four buttons do: left headphone, left sync, right sync, right headphone. "A" and "B" buttons do the cue. Center wheel buttons do play/pause. The LEDs have a rotating light feature when a MIDI keypress is sent from Mixxx, so the rotating platters have a rotating light too... The fader and joystick code may be interesting for you. The fader and joystick are auto-centering and auto-calibrating, provided that they are all centered at MIDI reset or power-up. They also have a small (configurable) dead zone so that they center properly. If this interests you, I can translate the default configuration in dm2.h together with DM2.midi.xml into a human readable map of which function I put where. Hope this helps, contact me if you miss any information! - Ján
Hi,I'm currently developing the MixMan DM2 driver for OS X http://www.joemattiello.com/dm2/ . I'm trying to get the 1.0 release out soon and would like to incorporate Mixxx into the built-in configurations. I want to mimic the DM2 setup for other OS's but I'm not quite sure which setup the included .xml file in the 1.6 beta is for. There seems to be a few different versions of a Linux driver as well as DM2MIDI for Windows.I can of course send the same messages as listed in the .xml file, but I don't know which physical buttons those actions are mapped to on the hardware itself. I would appreciate if someone who uses the DM2 with Mixxx on a different platform could give me a quick overview of how the mappings correlate to the hardware. Thanks.-Joe Mattiello
dm2-pre20080219.tgz
Description: application/compressed-tar
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Mixxx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mixxx-devel
