Skip to content

Commit

Permalink
fix: Automation protocol should not crossfade on channels with ignore…
Browse files Browse the repository at this point in the history
…Automation active
  • Loading branch information
olzzon committed Aug 29, 2021
1 parent adac9d8 commit 3fbe07e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions server/reducers/fadersReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,16 @@ export const faders = (
return nextState
case X_MIX: //none
nextState[0].fader.forEach((item, index) => {
let nextPgmOn = state[0].fader[index].pstOn
let nextVoOn = state[0].fader[index].pstVoOn
nextState[0].fader[index].pstOn = state[0].fader[index].pgmOn
nextState[0].fader[index].pstVoOn = state[0].fader[index].voOn
nextState[0].fader[index].pgmOn = nextPgmOn
nextState[0].fader[index].voOn = nextVoOn
if (!state[0].fader[index].ignoreAutomation) {
let nextPgmOn = state[0].fader[index].pstOn
let nextVoOn = state[0].fader[index].pstVoOn
nextState[0].fader[index].pstOn =
state[0].fader[index].pgmOn
nextState[0].fader[index].pstVoOn =
state[0].fader[index].voOn
nextState[0].fader[index].pgmOn = nextPgmOn
nextState[0].fader[index].voOn = nextVoOn
}
})
return nextState
case NEXT_MIX: //none
Expand Down

0 comments on commit 3fbe07e

Please sign in to comment.