summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2022-01-09 19:06:14 +0100
committerGitHub <noreply@github.com>2022-01-09 19:06:14 +0100
commite5a00a7eb87a77e3f0c44098c1968d5e45b99981 (patch)
tree46a56ecfd406aef52ef6b42a742794dafd26112f
parentaa668df37ee03b86c3499a6687bd33b031fd0de4 (diff)
parent5630a3e779ab658b6b2e1b179ab87ca0ae03be1c (diff)
Merge pull request #4583 from JoergAtGithub/Use_makeCompressedConnection
Renamed makeUnbufferedConnection and used it for VuMeter controls
-rw-r--r--res/controllers/Behringer-CMD-MM1-scripts.js4
-rw-r--r--res/controllers/Denon-MC7000-scripts.js8
-rw-r--r--res/controllers/Numark-Mixtrack-Platinum-scripts.js12
-rw-r--r--res/controllers/Numark-Mixtrack-Pro-FX-scripts.js4
-rw-r--r--res/controllers/Pioneer-DDJ-400-script.js4
-rw-r--r--res/controllers/Traktor-Kontrol-S2-MK2-hid-scripts.js4
-rw-r--r--res/controllers/Traktor-Kontrol-S2-MK3-hid-scripts.js4
-rw-r--r--res/controllers/Traktor-Kontrol-S3-hid-scripts.js4
-rw-r--r--res/controllers/Yaeltex-MiniMixxx-scripts.js2
-rw-r--r--src/controllers/scripting/legacy/controllerscriptinterfacelegacy.cpp2
-rw-r--r--src/controllers/scripting/legacy/controllerscriptinterfacelegacy.h2
11 files changed, 25 insertions, 25 deletions
diff --git a/res/controllers/Behringer-CMD-MM1-scripts.js b/res/controllers/Behringer-CMD-MM1-scripts.js
index 4c791da9a6..666253640c 100644
--- a/res/controllers/Behringer-CMD-MM1-scripts.js
+++ b/res/controllers/Behringer-CMD-MM1-scripts.js
@@ -536,10 +536,10 @@ CMDMM.init = function () {
this.speed=navEncoderScale;
},
});
- CMDMM.VuMeterL = engine.makeConnection("[Master]","VuMeterL",function (value) {
+ CMDMM.VuMeterL = engine.makeUnbufferedConnection("[Master]","VuMeterL",function (value) {
midi.sendShortMsg(MIDI.CC, 0x50, (value * 15) + 48);
});
- CMDMM.VuMeterR = engine.makeConnection("[Master]","VuMeterR",function (value) {
+ CMDMM.VuMeterR = engine.makeUnbufferedConnection("[Master]","VuMeterR",function (value) {
midi.sendShortMsg(MIDI.CC, 0x51, (value * 15) + 48);
});
CMDMM.layer(1);
diff --git a/res/controllers/Denon-MC7000-scripts.js b/res/controllers/Denon-MC7000-scripts.js
index 16d90ea6ab..708668ff9c 100644
--- a/res/controllers/Denon-MC7000-scripts.js
+++ b/res/controllers/Denon-MC7000-scripts.js
@@ -176,10 +176,10 @@ MC7000.init = function() {
midi.sendSysexMsg(ControllerStatusSysex, ControllerStatusSysex.length);
// VU meters
- engine.makeConnection("[Channel1]", "VuMeter", MC7000.VuMeter);
- engine.makeConnection("[Channel2]", "VuMeter", MC7000.VuMeter);
- engine.makeConnection("[Channel3]", "VuMeter", MC7000.VuMeter);
- engine.makeConnection("[Channel4]", "VuMeter", MC7000.VuMeter);
+ engine.makeUnbufferedConnection("[Channel1]", "VuMeter", MC7000.VuMeter);
+ engine.makeUnbufferedConnection("[Channel2]", "VuMeter", MC7000.VuMeter);
+ engine.makeUnbufferedConnection("[Channel3]", "VuMeter", MC7000.VuMeter);
+ engine.makeUnbufferedConnection("[Channel4]", "VuMeter", MC7000.VuMeter);
// Platter Ring LED mode
midi.sendShortMsg(0x90, 0x64, MC7000.modeSingleLED);
diff --git a/res/controllers/Numark-Mixtrack-Platinum-scripts.js b/res/controllers/Numark-Mixtrack-Platinum-scripts.js
index 307e963476..84f9219d81 100644
--- a/res/controllers/Numark-Mixtrack-Platinum-scripts.js
+++ b/res/controllers/Numark-Mixtrack-Platinum-scripts.js
@@ -114,12 +114,12 @@ MixtrackPlatinum.init = function(id, debug) {
engine.makeConnection("[Controls]", "ShowDurationRemaining", MixtrackPlatinum.timeElapsedCallback);
// setup vumeter tracking
- engine.makeConnection("[Channel1]", "VuMeter", MixtrackPlatinum.vuCallback);
- engine.makeConnection("[Channel2]", "VuMeter", MixtrackPlatinum.vuCallback);
- engine.makeConnection("[Channel3]", "VuMeter", MixtrackPlatinum.vuCallback);
- engine.makeConnection("[Channel4]", "VuMeter", MixtrackPlatinum.vuCallback);
- engine.makeConnection("[Master]", "VuMeterL", MixtrackPlatinum.vuCallback);
- engine.makeConnection("[Master]", "VuMeterR", MixtrackPlatinum.vuCallback);
+ engine.makeUnbufferedConnection("[Channel1]", "VuMeter", MixtrackPlatinum.vuCallback);
+ engine.makeUnbufferedConnection("[Channel2]", "VuMeter", MixtrackPlatinum.vuCallback);
+ engine.makeUnbufferedConnection("[Channel3]", "VuMeter", MixtrackPlatinum.vuCallback);
+ engine.makeUnbufferedConnection("[Channel4]", "VuMeter", MixtrackPlatinum.vuCallback);
+ engine.makeUnbufferedConnection("[Master]", "VuMeterL", MixtrackPlatinum.vuCallback);
+ engine.makeUnbufferedConnection("[Master]", "VuMeterR", MixtrackPlatinum.vuCallback);
};
MixtrackPlatinum.shutdown = function() {
diff --git a/res/controllers/Numark-Mixtrack-Pro-FX-scripts.js b/res/controllers/Numark-Mixtrack-Pro-FX-scripts.js
index 29b9b76d7b..d534acda1a 100644
--- a/res/controllers/Numark-Mixtrack-Pro-FX-scripts.js
+++ b/res/controllers/Numark-Mixtrack-Pro-FX-scripts.js
@@ -89,8 +89,8 @@ MixtrackProFX.init = function() {
var statusSysex = [0xF0, 0x00, 0x20, 0x7F, 0x03, 0x01, 0xF7];
midi.sendSysexMsg(statusSysex, statusSysex.length);
- engine.makeConnection("[Channel1]", "VuMeter", MixtrackProFX.vuCallback);
- engine.makeConnection("[Channel2]", "VuMeter", MixtrackProFX.vuCallback);
+ engine.makeUnbufferedConnection("[Channel1]", "VuMeter", MixtrackProFX.vuCallback);
+ engine.makeUnbufferedConnection("[Channel2]", "VuMeter", MixtrackProFX.vuCallback);
// trigger is needed to initialize lights to 0x01
MixtrackProFX.deck.forEachComponent(function(component) {
diff --git a/res/controllers/Pioneer-DDJ-400-script.js b/res/controllers/Pioneer-DDJ-400-script.js
index 0399d1d6a5..666ff7abaf 100644
--- a/res/controllers/Pioneer-DDJ-400-script.js
+++ b/res/controllers/Pioneer-DDJ-400-script.js
@@ -160,8 +160,8 @@ PioneerDDJ400.toggleLight = function(midiIn, active) {
PioneerDDJ400.init = function() {
engine.setValue("[EffectRack1_EffectUnit1]", "show_focus", 1);
- engine.makeConnection("[Channel1]", "VuMeter", PioneerDDJ400.vuMeterUpdate);
- engine.makeConnection("[Channel2]", "VuMeter", PioneerDDJ400.vuMeterUpdate);
+ engine.makeUnbufferedConnection("[Channel1]", "VuMeter", PioneerDDJ400.vuMeterUpdate);
+ engine.makeUnbufferedConnection("[Channel2]", "VuMeter", PioneerDDJ400.vuMeterUpdate);
PioneerDDJ400.toggleLight(PioneerDDJ400.lights.deck1.vuMeter, false);
PioneerDDJ400.toggleLight(PioneerDDJ400.lights.deck2.vuMeter, false);
diff --git a/res/controllers/Traktor-Kontrol-S2-MK2-hid-scripts.js b/res/controllers/Traktor-Kontrol-S2-MK2-hid-scripts.js
index e073bd841c..e1315a9ac4 100644
--- a/res/controllers/Traktor-Kontrol-S2-MK2-hid-scripts.js
+++ b/res/controllers/Traktor-Kontrol-S2-MK2-hid-scripts.js
@@ -401,8 +401,8 @@ TraktorS2MK2.registerOutputPackets = function() {
TraktorS2MK2.connectEffectButtonLEDs("[EffectRack1_EffectUnit1]");
TraktorS2MK2.connectEffectButtonLEDs("[EffectRack1_EffectUnit2]");
- engine.makeConnection("[Channel1]", "VuMeter", TraktorS2MK2.onVuMeterChanged).trigger();
- engine.makeConnection("[Channel2]", "VuMeter", TraktorS2MK2.onVuMeterChanged).trigger();
+ engine.makeUnbufferedConnection("[Channel1]", "VuMeter", TraktorS2MK2.onVuMeterChanged).trigger();
+ engine.makeUnbufferedConnection("[Channel2]", "VuMeter", TraktorS2MK2.onVuMeterChanged).trigger();
engine.makeConnection("[Channel1]", "loop_enabled", TraktorS2MK2.onLoopEnabledChanged);
engine.makeConnection("[Channel2]", "loop_enabled", TraktorS2MK2.onLoopEnabledChanged);
diff --git a/res/controllers/Traktor-Kontrol-S2-MK3-hid-scripts.js b/res/controllers/Traktor-Kontrol-S2-MK3-hid-scripts.js
index 6507bf3548..24ebe841ff 100644
--- a/res/controllers/Traktor-Kontrol-S2-MK3-hid-scripts.js
+++ b/res/controllers/Traktor-Kontrol-S2-MK3-hid-scripts.js
@@ -741,8 +741,8 @@ TraktorS2MK3.registerOutputPackets = function () {
this.linkOutput("[Microphone]", "talkover", this.outputHandler);
// VuMeter
- this.vuLeftConnection = engine.makeConnection("[Channel1]", "VuMeter", this.vuMeterHandler);
- this.vuRightConnection = engine.makeConnection("[Channel2]", "VuMeter", this.vuMeterHandler);
+ this.vuLeftConnection = engine.makeUnbufferedConnection("[Channel1]", "VuMeter", this.vuMeterHandler);
+ this.vuRightConnection = engine.makeUnbufferedConnection("[Channel2]", "VuMeter", this.vuMeterHandler);
this.clipLeftConnection = engine.makeConnection("[Channel1]", "PeakIndicator", this.peakOutputHandler);
this.clipRightConnection = engine.makeConnection("[Channel2]", "PeakIndicator", this.peakOutputHandler);
diff --git a/res/controllers/Traktor-Kontrol-S3-hid-scripts.js b/res/controllers/Traktor-Kontrol-S3-hid-scripts.js
index d311d70d85..effc655f58 100644
--- a/res/controllers/Traktor-Kontrol-S3-hid-scripts.js
+++ b/res/controllers/Traktor-Kontrol-S3-hid-scripts.js
@@ -1906,8 +1906,8 @@ TraktorS3.Controller.prototype.registerOutputPackets = function() {
engine.connectControl("[Master]", "maximize_library", TraktorS3.bind(TraktorS3.Controller.prototype.maximizeLibraryOutput, this));
// Master VuMeters
- this.masterVuMeter["VuMeterL"].connection = engine.makeConnection("[Master]", "VuMeterL", TraktorS3.bind(TraktorS3.Controller.prototype.masterVuMeterHandler, this));
- this.masterVuMeter["VuMeterR"].connection = engine.makeConnection("[Master]", "VuMeterR", TraktorS3.bind(TraktorS3.Controller.prototype.masterVuMeterHandler, this));
+ this.masterVuMeter["VuMeterL"].connection = engine.makeUnbufferedConnection("[Master]", "VuMeterL", TraktorS3.bind(TraktorS3.Controller.prototype.masterVuMeterHandler, this));
+ this.masterVuMeter["VuMeterR"].connection = engine.makeUnbufferedConnection("[Master]", "VuMeterR", TraktorS3.bind(TraktorS3.Controller.prototype.masterVuMeterHandler, this));
this.linkChannelOutput("[Master]", "PeakIndicatorL", TraktorS3.bind(TraktorS3.Controller.prototype.peakOutput, this));
this.linkChannelOutput("[Master]", "PeakIndicatorR", TraktorS3.bind(TraktorS3.Controller.prototype.peakOutput, this));
this.guiTickConnection = engine.makeConnection("[Master]", "guiTick50ms", TraktorS3.bind(TraktorS3.Controller.prototype.guiTickHandler, this));
diff --git a/res/controllers/Yaeltex-MiniMixxx-scripts.js b/res/controllers/Yaeltex-MiniMixxx-scripts.js
index f58182133a..f46e5f7810 100644
--- a/res/controllers/Yaeltex-MiniMixxx-scripts.js
+++ b/res/controllers/Yaeltex-MiniMixxx-scripts.js
@@ -255,7 +255,7 @@ MiniMixxx.EncoderModeGain = class extends MiniMixxx.Mode {
this.showGain = false;
engine.makeConnection(this.channel, "pregain", this.pregainIndicator.bind(this));
engine.makeConnection(this.channel, "pfl", this.pflIndicator.bind(this));
- engine.makeConnection(this.channel, "VuMeter", this.vuIndicator.bind(this));
+ engine.makeUnbufferedConnection(this.channel, "VuMeter", this.vuIndicator.bind(this));
engine.makeConnection(this.channel, "PeakIndicator", this.peakIndicator.bind(this));
}
handleSpin(velo) {
diff --git a/src/controllers/scripting/legacy/controllerscriptinterfacelegacy.cpp b/src/controllers/scripting/legacy/controllerscriptinterfacelegacy.cpp
index 0d65978695..3ed6b54dd0 100644
--- a/src/controllers/scripting/legacy/controllerscriptinterfacelegacy.cpp
+++ b/src/controllers/scripting/legacy/controllerscriptinterfacelegacy.cpp
@@ -216,7 +216,7 @@ QJSValue ControllerScriptInterfaceLegacy::makeConnection(
return ControllerScriptInterfaceLegacy::makeConnectionInternal(group, name, callback, false);
}
-QJSValue ControllerScriptInterfaceLegacy::makeCompressedConnection(
+QJSValue ControllerScriptInterfaceLegacy::makeUnbufferedConnection(
const QString& group, const QString& name, const QJSValue& callback) {
return ControllerScriptInterfaceLegacy::makeConnectionInternal(group, name, callback, true);
}
diff --git a/src/controllers/scripting/legacy/controllerscriptinterfacelegacy.h b/src/controllers/scripting/legacy/controllerscriptinterfacelegacy.h
index fee5edf2e6..c7ed34ce6d 100644
--- a/src/controllers/scripting/legacy/controllerscriptinterfacelegacy.h
+++ b/src/controllers/scripting/legacy/controllerscriptinterfacelegacy.h
@@ -34,7 +34,7 @@ class ControllerScriptInterfaceLegacy : public QObject {
Q_INVOKABLE QJSValue makeConnection(const QString& group,
const QString& name,
const QJSValue& callback);
- Q_INVOKABLE QJSValue makeCompressedConnection(const QString& group,
+ Q_INVOKABLE QJSValue makeUnbufferedConnection(const QString& group,
const QString& name,
const QJSValue& callback);
// DEPRECATED: Use makeConnection instead.