Skip to content

Commit

Permalink
Fix: Index offset when calling snap from automation
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Apr 24, 2019
1 parent 320149f commit 28906d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/constants/AutomationPresets.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const AutomationPresets = {
X_MIX: '/take',
SNAP_MIX: '/snap/{value1}'
},
toAutomation: {
toAutomation: { // ToDo:
CHANNEL_PGM_ON_OFF: '/ch/{value1}/mix/pgm',
CHANNEL_PST_ON_OFF: '/ch/{value1}/mix/pst',
},
Expand Down
4 changes: 2 additions & 2 deletions src/utils/AutomationConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ export class AutomationConnection {
this.mixerConnection.updateOutLevel(ch-1);
} else if (this.checkOscCommand(message.address, this.automationProtocol.fromAutomation
.SNAP_MIX)) {
let snapIndex = message.address.split("/")[2];
let snapNumber = message.address.split("/")[2];
window.storeRedux.dispatch({
type:'SNAP_MIX',
snapIndex: snapIndex
snapIndex: snapNumber -1
});
} else if (this.checkOscCommand(message.address, this.automationProtocol.fromAutomation
.X_MIX)) {
Expand Down

0 comments on commit 28906d2

Please sign in to comment.