From 6a935c6e58344bbe0c473bcb451d1bf7bcf32a65 Mon Sep 17 00:00:00 2001 From: olzzon Date: Fri, 28 Jun 2019 13:06:50 +0200 Subject: [PATCH] fix: Fade I/O - use channelType min and zero for setting target gain --- src/utils/MixerConnection.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/MixerConnection.ts b/src/utils/MixerConnection.ts index 6f3612aa..f00aa211 100644 --- a/src/utils/MixerConnection.ts +++ b/src/utils/MixerConnection.ts @@ -83,7 +83,7 @@ export class MixerGenericConnection { fadeUp(channelIndex: number, fadeTime: number) { let outputLevel = parseFloat(this.store.channels[0].channel[channelIndex].outputLevel); - let targetVal = this.mixerProtocol.fader.zero; + let targetVal = this.mixerProtocol.channelTypes[0].toMixer.CHANNEL_OUT_GAIN[0].zero; if (this.mixerProtocol.mode === "master") { targetVal = parseFloat(this.store.channels[0].channel[channelIndex].faderLevel); } @@ -163,7 +163,7 @@ export class MixerGenericConnection { fadeDown(channelIndex: number, fadeTime: number) { let outputLevel = this.store.channels[0].channel[channelIndex].outputLevel; - const min = this.mixerProtocol.fader.min; + const min = this.mixerProtocol.channelTypes[0].toMixer.CHANNEL_OUT_GAIN[0].min; const step = (outputLevel-min)/(fadeTime/FADE_INOUT_SPEED); const dispatchResolution: number = FADE_DISPATCH_RESOLUTION*step; let dispatchTrigger: number = 0;