//Received Information Format
var msg.payload = {
"function": "The function received",
...
}
//Send Information Format
var msg.payload = {
"function": "functionName",
"channelType": "inputChannel",
"channel": "channelNumber",
...
}
//Connection Updates
{
"topic": "connectionState",
"payload": "connected/disconnected/reconnecting"
}
... = Specific function parameters, see below functions for more
Sets/Gets the mute state of a channel
-
function
"muteControl" -
inputChannel
which is an array containing each input -
channelType
The channel type to set -
channel
The channel id -
state
The state of the mute (true/false) -
rawChannel
The raw channel to set (See QU documentation for channel listing)
var msg = {
"payload": {
"function": "muteControl",
"inputChannel": {
1: true,
2: false
}
...
}
}
//Request to set the mute to on for channel 1
var msg = {
"payload": {
"function": "muteControl",
"channelType": "inputChannel",
"channel": "1",
"state": true
}
}
//Request to get channel levels
var msg = {
"payload": {
"function": "muteControl"
}
}
Sets/Gets the channel fader level
-
function
"faderLevel" -
inputChannel
which is an array containing each input -
channelType
The channel type to set -
channel
The channel id -
level
The level of the fader (0-100%)
var msg = {
"payload": {
"function": "faderLevel",
"inputChannel": {
1: 100,
2: 0
}
...
}
}
//Request to set the channel level
var msg = {
"payload": {
"function": "faderLevel",
"channelType": "inputChannel",
"channel": "1",
"level": 100
}
}
//Request to get channel levels
var msg = {
"payload": {
"function": "faderLevel"
}
}
Sets/Gets the channel name
-
function
"channelName" -
inputChannel
Array of the channels -
channelType
The channel type to set -
channel
The channel id -
name
The string to set the channel name to
var msg = {
"payload": {
"function": "channelName",
"inputChannel": {
1: "Hello World!",
2: "Hello World!"
}
}
}
//Request to set the channel name
var msg = {
"payload": {
"function": "channelName",
"channelType": "inputChannel",
"channel": "1",
"name": "Nice"
}
}
//Request to get channel names
var msg = {
"payload": {
"function": "channelName"
}
}
Recalls a scene
-
function
"sceneRecall" -
currentScene
The current scene -
scene
The scene id to recall
var msg = {
"payload": {
"function": "sceneRecall",
"currentScene": 1
}
}
//Request to recall a scene
var msg = {
"payload": {
"function": "sceneRecall",
"scene": 2
}
}
//Request to get the current scene
var msg = {
"payload": {
"function": "sceneRecall"
}
}