Skip to content

Commit

Permalink
fix: pass auxIndex to aux level reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Nov 27, 2019
1 parent d502820 commit a41b987
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/OscMixerConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,14 @@ export class OscMixerConnection {
if (commandPart === '{channel}') {
ch = parseFloat(messageArray[index])
} else if (commandPart === '{argument}') {
auxIndex = parseFloat(messageArray[index])
auxIndex = parseFloat(messageArray[index]) - 1
}
})

window.storeRedux.dispatch({
type: SET_AUX_LEVEL,
channel: ch - 1,
auxIndex: auxIndex,
level: message.args[0]
});

Expand Down

0 comments on commit a41b987

Please sign in to comment.