Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slip button, tap tempo, strip search, FX button extras #1

Merged
merged 11 commits into from
Apr 12, 2018
7 changes: 6 additions & 1 deletion res/controllers/Roland_DJ-202-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,14 @@ DJ202.Deck = function (deckNumbers, offset) {
type: components.Button.prototype.types.toggle,
inKey: 'pfl',
outKey: 'pfl',
// missing: shift -> TAP
});

this.tapBPM = function (channel, control, value, status, group) {
if (value == 127) {
bpm.tapButton(script.deckFromGroup(this.currentDeck));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. I got some unexpected results, too. Let's improve this later on.

}
};

this.volume = new components.Pot({
midi: [0xB0 + offset, 0x1C],
inKey: 'volume',
Expand Down
9 changes: 9 additions & 0 deletions res/controllers/Roland_DJ-202.midi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,15 @@
<script-binding/>
</options>
</control>
<control>
<group>[Channel1]</group>
<key>DJ202.leftDeck.tapBPM</key>
<status>0x90</status>
<midino>0x12</midino>
<options>
<script-binding/>
</options>
</control>
<control>
<group>[Channel1]</group>
<key>DJ202.leftDeck.volume.input</key>
Expand Down