Skip to content

Commit

Permalink
Fix: Midi HUI remote controller, update new structure fader instead o…
Browse files Browse the repository at this point in the history
…f channel
  • Loading branch information
olzzon authored and olzzon committed Sep 5, 2019
1 parent c4e48ec commit c4c9c3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils/HuiMidiRemoteConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ export class HuiMidiRemoteConnection {
window.mixerGenericConnection.updateOutLevel(message.data[1]);
this.updateRemoteFaderState(message.data[1], this.convertFromRemoteLevel(message.data[2]))
} else if (message.data[1] = 15) {

console.log("Received message (" + message.data + ").");
if (message.data[2]<9) {
//Set active channel for next midi message:
this.activeHuiChannel = message.data[2];
Expand Down Expand Up @@ -155,7 +157,7 @@ export class HuiMidiRemoteConnection {
);
this.midiOutput.sendControlChange(
44,
1 + (64*this.store.channels[0].channel[channelIndex].pgmOn),
1 + (64*this.store.faders[0].fader[channelIndex].pgmOn),
1
);

Expand All @@ -167,7 +169,7 @@ export class HuiMidiRemoteConnection {
);
this.midiOutput.sendControlChange(
44,
3 + (64*this.store.channels[0].channel[channelIndex].pflOn),
3 + (64*this.store.faders[0].fader[channelIndex].pflOn),
1
);
}
Expand Down

0 comments on commit c4c9c3b

Please sign in to comment.