Skip to content

Commit

Permalink
feat: Remote MidiController - mixerConnection to be used for updating…
Browse files Browse the repository at this point in the history
… mixer status
  • Loading branch information
olzzon committed Jun 2, 2019
1 parent e08a601 commit 8f404a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class App extends Component<any, any> {
componentWillMount() {
this.mixerConnection = new MixerConnection(this.props.store);
this.automationConnection = new AutomationConnection(this.mixerConnection);
this.midiRemoteConnection = new MidiRemoteConnection();
this.midiRemoteConnection = new MidiRemoteConnection(this.mixerConnection);
this.snapShopStoreTimer();
loadSnapshotState(this.props.store.channels[0], this.props.store.settings[0].numberOfChannels);
}
Expand Down
3 changes: 2 additions & 1 deletion src/utils/MidiRemoteConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export class MidiRemoteConnection {
midiInput: any;
midiOutput:any;

constructor() {
constructor(mixerConnection: any) {
this.mixerConnection = mixerConnection;
this.sendOutMessage = this.sendOutMessage.bind(this);
this.convertFromRemoteLevel = this.convertFromRemoteLevel.bind(this);
this.convertToRemoteLevel = this.convertToRemoteLevel.bind(this);
Expand Down

0 comments on commit 8f404a5

Please sign in to comment.