Skip to content

Commit

Permalink
feat: Ember - trying to figure out setValue (right now it only resets…
Browse files Browse the repository at this point in the history
… the value)
  • Loading branch information
olzzon committed Jun 26, 2019
1 parent 0210ed1 commit 1e27c53
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/utils/EmberMixerConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,23 @@ export class EmberMixerConnection {
}

setupMixerConnection() {
let node: any;
console.log("Ember Connected");
console.log(this.deviceRoot.elements[0].children[0].children[0].children[0].contents.value);
this.emberConnection.getNodeByPath("Sapphire/Sources/Source1/Gain")
this.emberConnection.getNodeByPath("Sapphire/Sources/Source1/Fader")
.then((response: any) => {
console.log(response.contents.value);
})
this.emberConnection.invokeFunction(new Ember.QualifiedFunction("Sapphire/Sources/Source1/Gain"), ["Gain", new Ember.ParameterContents("value", 'real'), new Ember.ParameterContents(100, 'real')])
.then((response: any) => {
console.log(response.contents.value);
console.log(response);
//return
this.emberConnection.setValue(
response,
new Ember.ParameterContents(100, 'real')
)
})



this.emberConnection
.on("ready", () => {
.on("connected", () => {
console.log("Receiving state of desk");
this.mixerProtocol.initializeCommands.map((item) => {
if (item.oscMessage.includes("{channel}")) {
Expand Down

0 comments on commit 1e27c53

Please sign in to comment.