Skip to content

Commit

Permalink
fix: added midiReceiveType variable
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Jun 3, 2019
1 parent ccf95b3 commit abc1c2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/MidiRemoteConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class MidiRemoteConnection {
store: any;
mixerConnection: any;
remoteProtocol: IRemoteProtocol;
midiReceiveTypes = MidiReceiveTypes;
mixerProtocol: any;
midiInput: any;
midiOutput:any;
Expand Down Expand Up @@ -54,7 +55,7 @@ export class MidiRemoteConnection {
}

setupRemoteFaderConnection() {
this.midiInput.addListener(MidiReceiveTypes[this.remoteProtocol.fromRemote.CHANNEL_FADER_LEVEL.type], undefined,
this.midiInput.addListener(this.midiReceiveTypes[this.remoteProtocol.fromRemote.CHANNEL_FADER_LEVEL.type], undefined,
(message: any) => {
console.log("Received 'controlchange' message (" + message.data + ").");
window.storeRedux.dispatch({
Expand Down

0 comments on commit abc1c2a

Please sign in to comment.