Skip to content

Commit

Permalink
feat: bind shift+parameter1/2 buttons; add focused hotcue color ctrl
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftb0y committed Jan 2, 2025
1 parent ad9338a commit 4df4f3c
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 0 deletions.
72 changes: 72 additions & 0 deletions res/controllers/Reloop Ready.midi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1787,6 +1787,42 @@
<script-binding/>
</options>
</control>
<control>
<group></group>
<key>ReloopReadyInstance.components.rightDeck.padUnit.currentLayer.parameterRight.input</key>
<status>0x95</status>
<midino>0x2B</midino>
<options>
<script-binding/>
</options>
</control>
<control>
<group></group>
<key>ReloopReadyInstance.components.rightDeck.padUnit.currentLayer.parameterRight.input</key>
<status>0x85</status>
<midino>0x2B</midino>
<options>
<script-binding/>
</options>
</control>
<control>
<group></group>
<key>ReloopReadyInstance.components.rightDeck.padUnit.currentLayer.parameterLeft.input</key>
<status>0x95</status>
<midino>0x2A</midino>
<options>
<script-binding/>
</options>
</control>
<control>
<group></group>
<key>ReloopReadyInstance.components.rightDeck.padUnit.currentLayer.parameterLeft.input</key>
<status>0x85</status>
<midino>0x2A</midino>
<options>
<script-binding/>
</options>
</control>

<control>
<group></group>
Expand Down Expand Up @@ -1988,6 +2024,42 @@
<script-binding/>
</options>
</control>
<control>
<group></group>
<key>ReloopReadyInstance.components.leftDeck.padUnit.currentLayer.parameterRight.input</key>
<status>0x94</status>
<midino>0x2B</midino>
<options>
<script-binding/>
</options>
</control>
<control>
<group></group>
<key>ReloopReadyInstance.components.leftDeck.padUnit.currentLayer.parameterRight.input</key>
<status>0x84</status>
<midino>0x2B</midino>
<options>
<script-binding/>
</options>
</control>
<control>
<group></group>
<key>ReloopReadyInstance.components.leftDeck.padUnit.currentLayer.parameterLeft.input</key>
<status>0x94</status>
<midino>0x2A</midino>
<options>
<script-binding/>
</options>
</control>
<control>
<group></group>
<key>ReloopReadyInstance.components.leftDeck.padUnit.currentLayer.parameterLeft.input</key>
<status>0x84</status>
<midino>0x2A</midino>
<options>
<script-binding/>
</options>
</control>
<control>
<group></group>
<key>ReloopReadyInstance.components.leftDeck.padUnit.modeButton.input</key>
Expand Down
36 changes: 36 additions & 0 deletions res/controllers/Reloop-Ready-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,42 @@ ReloopReady.HotcuePadMode = class extends ReloopReady.PadMode {
colorMapper: ReloopReady.padColorMapper,
outConnect: false,
}));
this.parameterLeft = new components.Button({
midi: [0x94 + deckIdx, 0x28], //shifted control: 0x2A
shiftOffset: 0x2,
shift: function() {
this.inKey = "hotcue_focus_color_prev";
this.outKey = this.inKey;
this.trigger = function() {
this.send(this.off);
};
},
unshift: function() {
this.inKey = undefined; // no function ATM
this.outKey = this.inKey;
this.trigger = function() {
this.send(ReloopReady.singleColorLED.off);
};
}
});
this.parameterRight = new components.Button({
midi: [0x94 + deckIdx, 0x29], //shifted control: 0x2B
shiftOffset: 0x2,
shift: function() {
this.inKey = "hotcue_focus_color_next";
this.outKey = this.inKey;
this.trigger = function() {
this.send(this.off);
};
},
unshift: function() {
this.inKey = undefined; // no function ATM
this.outKey = this.inKey;
this.trigger = function() {
this.send(ReloopReady.singleColorLED.off);
};
}
});
}
};

Expand Down

0 comments on commit 4df4f3c

Please sign in to comment.