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
18 changes: 18 additions & 0 deletions res/controllers/Roland_DJ-202.midi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,15 @@
<script-binding/>
</options>
</control>
<control>
<group>[Channel1]</group>
<key>slip_enabled</key>
Copy link
Owner

Choose a reason for hiding this comment

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

For our aim to stay as close as possible to the labeling, I would like to map this inside the script so we can have both vinyl/slip. We could add a variable like "invertVinylSlipButton" for the user to configure the default (unshifted) behaviour.

<status>0x90</status>
<midino>0x07</midino>
<options>
<switch/>
</options>
</control>
<!-- mixer -->
<control>
<group>[Channel1]</group>
Expand Down Expand Up @@ -602,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