Quantcast
Channel: إصلاح خطأ آر إس إس
Viewing all articles
Browse latest Browse all 57

تحكم MIDI وحدة التحكم هرقل DJ لنظام التشغيل Mac

$
0
0

لقد تم العمل على إضافة دعم وحدة التحكم DJ هرقل (إصدار ماكنتوش) لطلبي ماك DJ, DJ-1800. وقد أثبت هذا اصعب مما تصورت, as I have not been able to find any documentation of the MIDI commands sent by this controller.

حتى, I’ve had to deduce the controls myself. This has been made substantially easier by a tool called MIDI Monitor, created by Kurt Revis. This Mac OS X application lets you listen in on MIDI commands sent and received by devices and applications on your Mac.

By tracking the commands sent and received by Traktor Hercules, I’ve deduced the commands you need to send and receive to use the Hercules with another application. Here they are, for your delight.

First things first, you need to send your commands to the HDJC port called “Port 2″. “Port 1″ is the midi thru port on the HDJC, so it’s “Port 2″ that we’re interested in.

Secondly, all of these commands are sent and received on MIDI channel 2. Don’t ask me why – that’s just the way it is.

Take a look at this map of the Hercules DJ Console, which I found on the Internet. It shows the MIDI CC controller ID for each of the Hercules’ controls.

  • The button controls (1 thru 28) send a MIDI CC value of 127 when they are pressed, و 0 when they are released.
  • The six EQ twisters (34 thru 39) send a MIDI CC value from 0 (fully anticlockwise) إلى 127 (fully clockwise) when turned.
  • The two volume controls (43 و 44) send a MIDI CC value of 1 when they are turned one notch clockwise, and a value of 127 when turned one notch anticlockwise.
  • The two pitch sliders (41 و 42) send a MIDI CC value from 0 (أسفل) إلى 127 (top), with a middle value of 64 when ‘clicked’ into the middle.
  • The two large spinner wheels (45 و 46) send a MIDI CC value of 1 when they are moved one step clockwise, and a value of 127 when turned anticlockwise. If you spin them fast enough, then these values increase (for clockwise) or decrease (for anticlockwise) towards 64. I’ve never got them to increase or decrease by more than 3 أو 4 (giving 4 for clockwise and 124 for anticlockwise respectively), even when spinning them really fast.
  • The crossfader (40) sends MIDI CC values from 0 (fully left) إلى 127 (fully right).
  • The joystick (47 و 48) is a bit strange, but seems to send values in the X and Y axis. Seems like X runs from 28 إلى 114, with a midpoint of 64. Y runs from 33 إلى 108, with a midpoint also of 64. I know, that doesn’t quite make sense.

To turn the controllers’ lights on and off, send a CC command to the control whose light you want to set. Send a value of 127 to turn the light on, و 0 to turn the light off.

The following controls have lights underneath them:

  • Play / pause buttons (2 و 8 )
  • Cue buttons (3 و 9)
  • Autobeat buttons (4 و 10)

The following controls have associated LEDs (use the button’s CC value to set the LED’s state):

  • Headphones select (21 و 25)
  • Master Tempo (22 و 26)
  • 1, 2 و 3 buttons (13 thru 15, و 16 thru 18) – these correspond to the Loop, Cue and FX lights

The final command available is a command to poll the HDJC for its current state. You cand do this by sending a CC with ID of 127 and value of 127. This will cause the HDJC to reply with a CC command for each of its ‘permanent state’ controls, telling you what their current value is. حتى, مثلا, you’ll get the current value for the Treble, Medium and Bass twisters. In total, you will be sent the current position for controls 34 thru 42, and controls 47 and 48.

With this info you should be able to add support for the HDJC (إصدار ماكنتوش) to your MIDI-enabled application pretty easily!

A quick note: I found that the pitch slider, with a MIDI range of 0 – 127, didn’t give me enough values for my pitch range of +/- 10%. Because I allow steps of 0.1%, that’s 200 steps in total, and the pitch slider only gives 127. حتى, I use the pitch slider as a volume control, and use the volume knob as the pitch controller – clockwise = +0.1%, anti-clockwise = -0.1%. But that’s just my preference.

A Hercules-enabled version of DJ-1800 isn’t yet available. But now I’ve sussed this lot out, it should be soon :-)


Viewing all articles
Browse latest Browse all 57