Skip to content

Commit

Permalink
fix: double code in AutomationConnection (had double check for X_MIX,…
Browse files Browse the repository at this point in the history
… Fade_to_black and visible)
  • Loading branch information
olzzon committed Dec 20, 2019
1 parent a9e3232 commit ff8af54
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions server/utils/AutomationConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,33 +175,6 @@ export class AutomationConnection {
type: CLEAR_PST
});
global.mixerGenericConnection.updateOutLevels();
} else if (this.checkOscCommand(message.address, this.automationProtocol.fromAutomation
.SNAP_RECALL)) {
let snapNumber = message.address.split("/")[2];
global.storeRedux.dispatch({
type: SNAP_RECALL,
snapIndex: snapNumber -1
});
} else if (this.checkOscCommand(message.address, this.automationProtocol.fromAutomation
.X_MIX)) {
global.storeRedux.dispatch({
type: X_MIX
});
global.mixerGenericConnection.updateOutLevels();
} else if ( this.checkOscCommand(message.address, this.automationProtocol.fromAutomation
.CHANNEL_VISIBLE)){
let ch = message.address.split("/")[2];
global.storeRedux.dispatch({
type: SHOW_CHANNEL,
channel: ch - 1,
showChannel: message.args[0]===1 ? true : false
});
} else if (this.checkOscCommand(message.address, this.automationProtocol.fromAutomation
.FADE_TO_BLACK)) {
global.storeRedux.dispatch({
type: FADE_TO_BLACK
});
global.mixerGenericConnection.updateOutLevels();
// Get state from Producers Audio Mixer:
} else if (this.checkOscCommand(message.address, this.automationProtocol.fromAutomation
.STATE_FULL)) {
Expand Down

0 comments on commit ff8af54

Please sign in to comment.