Skip to content

Commit

Permalink
Update Hercules-DJControl-MIX-scripts.js
Browse files Browse the repository at this point in the history
Made all suggested changes to script.
  • Loading branch information
DJPhatso authored Jan 3, 2024
1 parent d35b6a4 commit bab28d7
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions res/controllers/Hercules-DJControl-MIX-scripts.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
class DJCMixClass {
constructor() {
///////////////////////////////////////////////////////////////
// USER OPTIONS //
///////////////////////////////////////////////////////////////
Expand All @@ -13,19 +11,19 @@ class DJCMixClass {
// How fast bending is.
this.bendScale = 1.0;

// DJControl_MIX_scripts.js
// Hercules-DJControl-MIX-scripts.js
//
// ****************************************************************************
// * Mixxx mapping script file for the Hercules DJControl MIX.
// * Author: DJ Phatso and Kerrick Staley
// * Version 1 (Jan 2023)
// * Based on Hercules DJControl Starlight mapping released with Mixxx v2.3.0
// * -Remapped LOOP and SAMPLER section according to DJControl MIX layout
// * -Added Master Volume and Headphone Volume
// * -Removed superfluous LED configuration (not present on DJControl MIX)
// * Forum: https://mixxx.discourse.group/t/hercules-contrl-mix-mapping/26581/
// * Wiki: https://mixxx.org/wiki/doku.php/

class DJCMixClass {
constructor() {

this.kScratchActionNone = 0;
this.kScratchActionScratch = 1;
Expand Down Expand Up @@ -56,7 +54,7 @@ class DJCMixClass {
// Ask the controller to send all current knob/slider values over MIDI, which will update
// the corresponding GUI controls in MIXXX.
midi.sendShortMsg(0xB0, 0x7F, 0x7F);
};
}

// The Vinyl button, used to enable or disable scratching on the jog wheels (The Vinyl button enables both deck).
vinylButton(_channel, _control, value, _status, _group) {
Expand Down Expand Up @@ -216,7 +214,7 @@ class DJCMixClass {
midi.sendShortMsg(0x92, 0x0C, cueChan2LedValue);
}
}

// All LED Turned off
shutdown() {
midi.sendShortMsg(0xB0, 0x7F, 0x00);
}
Expand Down

0 comments on commit bab28d7

Please sign in to comment.