Skip to content

Commit

Permalink
Turn on PGM when turning up fader in "master" mode
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed May 5, 2019
1 parent 73b6362 commit 097c3d1
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/utils/OscMixerConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,25 @@ export class OscMixerConnection {
if (this.store.channels[0].channel[ch - 1].pgmOn)
{
this.updateOutLevel(ch-1);
} else {
this.props.dispatch({
type:'TOGGLE_PGM',
channel: ch - 1
});
}
}
} else if ( this.checkOscCommand(message.address, this.mixerProtocol.fromMixer
.CHANNEL_OUT_GAIN)){
let ch = message.address.split("/")[2];
if (this.store.channels[0].channel[ch - 1].pgmOn
&& this.mixerProtocol.mode === 'master'
&& !this.store.channels[0].channel[ch - 1].fadeActive) {
window.storeRedux.dispatch({
type:'SET_FADER_LEVEL',
channel: ch - 1,
level: message.args[0]
let ch = message.address.split("/")[2];
if (this.mixerProtocol.mode === 'master'
&& !this.store.channels[0].channel[ch - 1].fadeActive)
{
window.storeRedux.dispatch({
type:'SET_FADER_LEVEL',
channel: ch - 1,
level: message.args[0]
});
if (!this.store.channels[0].channel[ch - 1].pgmOn) {
this.props.dispatch({
type:'TOGGLE_PGM',
channel: ch - 1
});
}
}
} else if (this.checkOscCommand(message.address, this.mixerProtocol.fromMixer
.CHANNEL_VU)){
Expand Down

0 comments on commit 097c3d1

Please sign in to comment.