summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md5
-rw-r--r--res/controllers/Denon-MC6000MK2-scripts.js80
2 files changed, 45 insertions, 40 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0d8edb9885..ca52d1317b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,11 @@
## [2.2.4](https://launchpad.net/mixxx/+milestone/2.2.4) (Unreleased)
* Prevent infinite loop when decoding corrupt MP3 files #2417
+* Add workaround for broken libshout versions #2040 #2438
+* Speed up purging of tracks lp:1845837 #2393
+* Prevent infinite loop when decoding corrupt MP3 files #2417
+* Add controller mapping for Native Instruments Traktor Kontrol S2 MK3 #2348
+* Add controller mapping for Soundless joyMIDI #2425
## [2.2.3](https://launchpad.net/mixxx/+milestone/2.2.3) (2019-11-24)
diff --git a/res/controllers/Denon-MC6000MK2-scripts.js b/res/controllers/Denon-MC6000MK2-scripts.js
index 1a6ffc8773..02f7547c94 100644
--- a/res/controllers/Denon-MC6000MK2-scripts.js
+++ b/res/controllers/Denon-MC6000MK2-scripts.js
@@ -125,13 +125,13 @@ DenonMC6000MK2.MIDI_BUTTON_OFF = 0x00;
DenonMC6000MK2.isButtonPressed = function(midiValue) {
switch (midiValue) {
- case DenonMC6000MK2.MIDI_BUTTON_ON:
- return true;
- case DenonMC6000MK2.MIDI_BUTTON_OFF:
- return false;
- default:
- DenonMC6000MK2.logError("Unexpected MIDI button value: " + midiValue);
- return undefined;
+ case DenonMC6000MK2.MIDI_BUTTON_ON:
+ return true;
+ case DenonMC6000MK2.MIDI_BUTTON_OFF:
+ return false;
+ default:
+ DenonMC6000MK2.logError("Unexpected MIDI button value: " + midiValue);
+ return undefined;
}
};
@@ -145,13 +145,13 @@ DenonMC6000MK2.MIDI_KNOB_DEC = 0x7F;
DenonMC6000MK2.getKnobDelta = function(midiValue) {
switch (midiValue) {
- case DenonMC6000MK2.MIDI_KNOB_INC:
- return 1;
- case DenonMC6000MK2.MIDI_KNOB_DEC:
- return -1;
- default:
- DenonMC6000MK2.logError("Unexpected MIDI knob value: " + midiValue);
- return 0;
+ case DenonMC6000MK2.MIDI_KNOB_INC:
+ return 1;
+ case DenonMC6000MK2.MIDI_KNOB_DEC:
+ return -1;
+ default:
+ DenonMC6000MK2.logError("Unexpected MIDI knob value: " + midiValue);
+ return 0;
}
};
@@ -365,40 +365,40 @@ DenonMC6000MK2.Sampler.prototype.isPlaying = function() {
DenonMC6000MK2.Sampler.prototype.onButton = function(isButtonPressed) {
switch (DenonMC6000MK2.DEFAULT_SAMPLER_MODE) {
- case DenonMC6000MK2.SAMPLER_MODE.TRIGGER:
- if (isButtonPressed) {
- if (this.isTrackLoaded()) {
- if (this.side.getShiftState()) {
- engine.setValue(this.group, "start_stop", true);
- } else {
- engine.setValue(this.group, "start_play", true);
- }
+ case DenonMC6000MK2.SAMPLER_MODE.TRIGGER:
+ if (isButtonPressed) {
+ if (this.isTrackLoaded()) {
+ if (this.side.getShiftState()) {
+ engine.setValue(this.group, "start_stop", true);
} else {
- this.loadSelectedTrack();
+ engine.setValue(this.group, "start_play", true);
}
+ } else {
+ this.loadSelectedTrack();
}
- break;
- case DenonMC6000MK2.SAMPLER_MODE.HOLD:
- if (this.isTrackLoaded()) {
- if (isButtonPressed) {
- if (this.side.getShiftState()) {
- engine.setValue(this.group, "eject", true);
- } else {
- engine.setValue(this.group, "start_play", true);
- }
+ }
+ break;
+ case DenonMC6000MK2.SAMPLER_MODE.HOLD:
+ if (this.isTrackLoaded()) {
+ if (isButtonPressed) {
+ if (this.side.getShiftState()) {
+ engine.setValue(this.group, "eject", true);
} else {
- // continue playing if shift is pressed when
- // releasing the pressed button
- if (!this.side.getShiftState()) {
- engine.setValue(this.group, "start_stop", true);
- }
+ engine.setValue(this.group, "start_play", true);
}
} else {
- if (isButtonPressed) {
- this.loadSelectedTrack();
+ // continue playing if shift is pressed when
+ // releasing the pressed button
+ if (!this.side.getShiftState()) {
+ engine.setValue(this.group, "start_stop", true);
}
}
- break;
+ } else {
+ if (isButtonPressed) {
+ this.loadSelectedTrack();
+ }
+ }
+ break;
}
};