Skip to content

Instantly share code, notes, and snippets.

@kfigiela
Last active August 24, 2019 01:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save kfigiela/d18eea71028bd3331135946ff9d8fd9d to your computer and use it in GitHub Desktop.
Save kfigiela/d18eea71028bd3331135946ff9d8fd9d to your computer and use it in GitHub Desktop.
Traktor Kontrol S5 midi buttons hack
diff --git a/CSI/S5/S5Deck.qml b/CSI/S5/S5Deck.qml
index de264f7..29acf03 100755
--- a/CSI/S5/S5Deck.qml
+++ b/CSI/S5/S5Deck.qml
@@ -1244,6 +1244,8 @@ Module
{
enabled: browserIsContentList.value
+ Wire { from: "%surface%.display.buttons.2"; to: TriggerPropertyAdapter { path:"app.traktor.midi.buttons.3" } }
+ Wire { from: "%surface%.display.buttons.3"; to: TriggerPropertyAdapter { path:"app.traktor.midi.buttons.4" } }
Wire { from: "%surface%.display.buttons.6"; to: TriggerPropertyAdapter { path:"app.traktor.browser.preparation.append" } }
Wire { from: "%surface%.display.buttons.7"; to: TriggerPropertyAdapter { path:"app.traktor.browser.preparation.jump_to_list" } }
diff --git a/CSI/S5/Mixer.qml b/CSI/S5/Mixer.qml
index 65c880e..bd62cd0 100755
--- a/CSI/S5/Mixer.qml
+++ b/CSI/S5/Mixer.qml
@@ -48,10 +48,20 @@ Module
// Xfader
Wire { from: "%surface%.mixer.xfader.adjust"; to: DirectPropertyAdapter { path: "app.traktor.mixer.xfader.adjust"; } }
- // Snap / Quant
- Wire { from: "%surface%.mixer.snap"; to: TogglePropertyAdapter { path: "app.traktor.snap"; } }
- Wire { from: "%surface%.mixer.quant"; to: TogglePropertyAdapter { path: "app.traktor.quant"; } }
-
+ WiresGroup
+ {
+ enabled: mixer.shift
+ Wire { from: "%surface%.mixer.snap"; to: TogglePropertyAdapter { path: "app.traktor.midi.buttons.1" } }
+ Wire { from: "%surface%.mixer.quant"; to: TogglePropertyAdapter { path: "app.traktor.midi.buttons.2" } }
+ }
+ WiresGroup
+ {
+ enabled: !mixer.shift
+ // Snap / Quant
+ Wire { from: "%surface%.mixer.snap"; to: TogglePropertyAdapter { path: "app.traktor.snap"; } }
+ Wire { from: "%surface%.mixer.quant"; to: TogglePropertyAdapter { path: "app.traktor.quant"; } }
+ }
+
// Master Clip
Wire { from: "%surface%.mixer.clip.left"; to: DirectPropertyAdapter { path: "app.traktor.mixer.master.level.clip.left" } }
Wire { from: "%surface%.mixer.clip.right"; to: DirectPropertyAdapter { path: "app.traktor.mixer.master.level.clip.right" } }
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment