diff --git a/res/controllers/Behringer-CMD-MM1-scripts.js b/res/controllers/Behringer-CMD-MM1-scripts.js index 4c791da9a6d..666253640ca 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 16d90ea6abc..708668ff9c2 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 307e963476f..84f9219d81d 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 29b9b76d7b3..d534acda1a0 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 0399d1d6a51..666ff7abaf2 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 e073bd841c4..e1315a9ac47 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 6507bf3548e..24ebe841ffa 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 d311d70d85f..effc655f58e 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 f58182133a7..f46e5f78108 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 0d659786959..3ed6b54dd09 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 fee5edf2e6b..c7ed34ce6d0 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.