Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…troller into develop
  • Loading branch information
olzzon committed Sep 4, 2019
2 parents 84e36c0 + ea877dd commit c4e48ec
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/utils/MidiMixerConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,21 @@ export class MidiMixerConnection {
let faderChannel = 1 + this.store.channels[0].channel[ch - 1].assignedFader
window.storeRedux.dispatch({
type:'SET_FADER_LEVEL',
channel: faderChannel -1,
channel: faderChannel - 1,
level: message.data[2]
});
if (!this.store.faders[0].fader[faderChannel - 1].pgmOn) {
window.storeRedux.dispatch({
type:'TOGGLE_PGM',
channel: this.store.channels[0].channel[faderChannel - 1].assignedFader
channel: this.store.channels[0].channel[ch - 1].assignedFader
});
}
if (this.store.faders[0].fader[faderChannel - 1].pgmOn && this.mixerProtocol.mode === 'master')
{
this.store.channels[0].channel.map((channel: any, index: number) => {
if (channel.assignedFader === faderChannel - 1)
this.updateOutLevel(index);
if (channel.assignedFader === faderChannel - 1) {
this.updateOutLevel(index);
}
})
}
}
Expand Down

0 comments on commit c4e48ec

Please sign in to comment.