Skip to content

Commit

Permalink
Fix: offset between channel and array
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Apr 30, 2019
1 parent d92397f commit 8e0fe91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/AutomationConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class AutomationConnection {
this.sendOutMessage(
this.automationProtocol.toAutomation.STATE_CHANNEL_PGM,
ch,
this.store.channels[0].channel[ch].pgmOn,
this.store.channels[0].channel[ch-1].pgmOn,
"i"
);
} else if (this.checkOscCommand(message.address, this.automationProtocol.fromAutomation
Expand All @@ -93,7 +93,7 @@ export class AutomationConnection {
this.sendOutMessage(
this.automationProtocol.toAutomation.STATE_CHANNEL_PST,
ch,
this.store.channels[0].channel[ch].pstOn,
this.store.channels[0].channel[ch-1].pstOn,
"i"
);
} else if (this.checkOscCommand(message.address, this.automationProtocol.fromAutomation
Expand All @@ -102,7 +102,7 @@ export class AutomationConnection {
this.sendOutMessage(
this.automationProtocol.toAutomation.STATE_CHANNEL_FADER_LEVEL,
ch,
this.store.channels[0].channel[ch].faderLevel,
this.store.channels[0].channel[ch-1].faderLevel,
"f"
);
}
Expand Down

0 comments on commit 8e0fe91

Please sign in to comment.