Skip to content

Commit

Permalink
feat: Ember - trying to figure out invokeFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Jun 25, 2019
1 parent 5b5f203 commit 0210ed1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/utils/EmberMixerConnection.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DeviceTree } from 'emberplus';
import { DeviceTree, Ember } from 'emberplus';

//Utils:
import { IMixerProtocol, MixerProtocolPresets } from '../constants/MixerProtocolPresets';
Expand Down Expand Up @@ -52,6 +52,15 @@ export class EmberMixerConnection {
setupMixerConnection() {
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")
.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);
})

this.emberConnection
.on("ready", () => {
console.log("Receiving state of desk");
Expand Down

0 comments on commit 0210ed1

Please sign in to comment.