Skip to content

Commit

Permalink
fix: mc2 input gain
Browse files Browse the repository at this point in the history
  • Loading branch information
mint-dewit committed Nov 17, 2020
1 parent 0602048 commit 7a07fdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/constants/mixerProtocols/LawoMC2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const LawoMC2: IMixerProtocol = {
CHANNEL_INPUT_GAIN: [
{
mixerMessage:
'Channels.Inputs.${channel}.Signal Processing.Input Mixer.Input Gain',
'Channels.Inputs.${channel}.Signal Processing.Digital Amplifier.DigiAmp Level',
value: 0,
type: 'int',
min: -128,
Expand Down
5 changes: 3 additions & 2 deletions server/utils/mixerConnections/EmberMixerConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,6 @@ export class EmberMixerConnection {

// assume it is in db now
level = this._faderLevelToFloat(Number(level), 0)

store.dispatch(storeInputGain(channel.assignedFader, level))
global.mainThreadHandler.updatePartialStore(
channel.assignedFader
Expand Down Expand Up @@ -766,7 +765,9 @@ export class EmberMixerConnection {
let protocol = this.mixerProtocol.channelTypes[channelType].toMixer
.CHANNEL_INPUT_GAIN[0]

let level = gain * (protocol.max - protocol.min) + protocol.min
let level = this._floatToFaderLevel(gain, 0)

// let level = gain * (protocol.max - protocol.min) + protocol.min

this.sendOutMessage(
protocol.mixerMessage,
Expand Down

0 comments on commit 7a07fdc

Please sign in to comment.