Skip to content

Commit

Permalink
feat: Hui remote - Remote solo button toggles Sisyfos PFL on/off
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Jun 3, 2019
1 parent 3ad29b5 commit 2587ff8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/utils/HuiMidiRemoteConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ export class HuiMidiRemoteConnection {
});
this.mixerConnection.updateOutLevel(this.activeHuiChannel);
this.updateRemotePgmPstPfl(this.activeHuiChannel);
} else if (message.data[2] && message.data[2] === 67) {

console.log("Select channel :", this.activeHuiChannel);
window.storeRedux.dispatch({
type:'TOGGLE_PFL',
channel: this.activeHuiChannel
});
this.mixerConnection.updateOutLevel(this.activeHuiChannel);
this.updateRemotePgmPstPfl(this.activeHuiChannel);
}
}
if (message.data[1] < 9) {
Expand All @@ -87,15 +96,6 @@ export class HuiMidiRemoteConnection {
});
this.mixerConnection.updateOutLevel(message.data[1]);
this.updateRemoteFaderState(message.data[1], this.convertFromRemoteLevel(message.data[2]))
} else if (46 < message.data[1] && message.data[1] < 55) {
// Selectbutton pressed :
console.log("Received Select message (" + message.data + ").");
window.storeRedux.dispatch({
type:'TOGGLE_PGM',
channel: message.data[1]-41
});
this.mixerConnection.updateOutLevel(message.data[1]-41);
this.updateRemoteFaderState(message.data[1]-41, this.convertFromRemoteLevel(message.data[2]))
}
}
);
Expand Down

0 comments on commit 2587ff8

Please sign in to comment.