summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorPierre Le Gall <pierre@legall.im>2021-01-04 22:50:24 +0100
committerPierre Le Gall <pierre@legall.im>2021-01-07 10:36:41 +0100
commit8b7d0b1d278f2a1b0da0e40c002291869a3674bb (patch)
tree9d7c96b71e585b1183a5cadf714dabcd16a1964e /res
parentd7c3f31b220f67ca087e4478846763783881883b (diff)
Add pitch management to the Hercules P32 mapping
The pitch management inputs (`sync_key`, `pitch_up`, `pitch_down` and `reset_key`) have been added to the 4 right pad buttons of the loop mode.
Diffstat (limited to 'res')
-rw-r--r--res/controllers/Hercules P32 DJ.midi.xml72
-rw-r--r--res/controllers/Hercules-P32-scripts.js25
2 files changed, 97 insertions, 0 deletions
diff --git a/res/controllers/Hercules P32 DJ.midi.xml b/res/controllers/Hercules P32 DJ.midi.xml
index bfda4b015a..0f528f3fe5 100644
--- a/res/controllers/Hercules P32 DJ.midi.xml
+++ b/res/controllers/Hercules P32 DJ.midi.xml
@@ -708,6 +708,42 @@
<script-binding/>
</options>
</control>
+ <control>
+ <group>[Channel1]</group>
+ <key>P32.leftDeck.syncKey.input</key>
+ <status>0x91</status>
+ <midino>0x53</midino>
+ <options>
+ <script-binding/>
+ </options>
+ </control>
+ <control>
+ <group>[Channel1]</group>
+ <key>P32.leftDeck.pitchUp.input</key>
+ <status>0x91</status>
+ <midino>0x4F</midino>
+ <options>
+ <script-binding/>
+ </options>
+ </control>
+ <control>
+ <group>[Channel1]</group>
+ <key>P32.leftDeck.pitchDown.input</key>
+ <status>0x91</status>
+ <midino>0x4B</midino>
+ <options>
+ <script-binding/>
+ </options>
+ </control>
+ <control>
+ <group>[Channel1]</group>
+ <key>P32.leftDeck.resetKey.input</key>
+ <status>0x91</status>
+ <midino>0x47</midino>
+ <options>
+ <script-binding/>
+ </options>
+ </control>
<control>
<group>[Channel1]</group>
<key>P32.leftDeck.enableEffectUnitButtons[0].input</key>
@@ -2284,6 +2320,42 @@
<script-binding/>
</options>
</control>
+ <control>
+ <group>[Channel1]</group>
+ <key>P32.rightDeck.syncKey.input</key>
+ <status>0x92</status>
+ <midino>0x53</midino>
+ <options>
+ <script-binding/>
+ </options>
+ </control>
+ <control>
+ <group>[Channel1]</group>
+ <key>P32.rightDeck.pitchUp.input</key>
+ <status>0x92</status>
+ <midino>0x4F</midino>
+ <options>
+ <script-binding/>
+ </options>
+ </control>
+ <control>
+ <group>[Channel1]</group>
+ <key>P32.rightDeck.pitchDown.input</key>
+ <status>0x92</status>
+ <midino>0x4B</midino>
+ <options>
+ <script-binding/>
+ </options>
+ </control>
+ <control>
+ <group>[Channel1]</group>
+ <key>P32.rightDeck.resetKey.input</key>
+ <status>0x92</status>
+ <midino>0x47</midino>
+ <options>
+ <script-binding/>
+ </options>
+ </control>
<control>
<group>[Channel1]</group>
<key>P32.rightDeck.enableEffectUnitButtons[0].input</key>
diff --git a/res/controllers/Hercules-P32-scripts.js b/res/controllers/Hercules-P32-scripts.js
index 158b08ae08..954f3f5f50 100644
--- a/res/controllers/Hercules-P32-scripts.js
+++ b/res/controllers/Hercules-P32-scripts.js
@@ -464,6 +464,31 @@ P32.Deck = function(deckNumbers, channel) {
off: P32.padColors.blue,
});
+ this.syncKey = new components.Button({
+ midi: [0x90 + channel, 0x53],
+ key: "sync_key",
+ on: P32.padColors.red,
+ off: P32.padColors.purple,
+ });
+ this.pitchUp = new components.Button({
+ midi: [0x90 + channel, 0x4F],
+ key: "pitch_up",
+ on: P32.padColors.blue,
+ off: P32.padColors.purple,
+ });
+ this.pitchDown = new components.Button({
+ midi: [0x90 + channel, 0x4B],
+ key: "pitch_down",
+ on: P32.padColors.blue,
+ off: P32.padColors.purple,
+ });
+ this.resetKey = new components.Button({
+ midi: [0x90 + channel, 0x47],
+ key: "reset_key",
+ on: P32.padColors.red,
+ off: P32.padColors.purple,
+ });
+
// SLICER layer
this.enableEffectUnitButtons = [0x40, 0x41, 0x3C, 0x3D].map(
function(midiByte, index) {