Skip to content

Latest commit

 

History

History
194 lines (169 loc) · 3.38 KB

quHowToUse.md

File metadata and controls

194 lines (169 loc) · 3.38 KB

How to use for QU consoles

General Command Layout

//Received Information Format
var msg.payload = {
    "function": "The function recieved",
    ...
}

//Send Information Format
var msg.payload = {
    "function": "functionName",
    "channelType": "inputChannel",
    "channel": "channelNumber",
    ...
}

... = Specific function parameters, see below functions for more

Mute Control (Get/Set)

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)

Example message from the console

var msg = {
    "payload": {
        "function": "muteControl",
        "inputChannel": {
            1: true,
            2: false
        }
        ...
    }
}

Example request to the console

//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"
    }
}

Fader Level (Get/Set)

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%)

Example message from the console

var msg = {
    "payload": {
        "function": "faderLevel",
        "inputChannel": {
            1: 100,
            2:  0
        }
        ...
    }
}

Example request to the console

//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"
    }
}

Channel Name (Get/Set)

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

Example message from the console

var msg = {
    "payload": {
        "function": "channelName",
        "inputChannel": {
            1: "Hello World!",
            2: "Hello World!"
        }
    }
}

Example request to the console

//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"
    }
}

Scene Recall (Get/Set)

Recalls a scene

  • function "sceneRecall"

  • currentScene The current scene

  • scene The scene id to recall

Example message from the console

var msg = {
    "payload": {
        "function": "sceneRecall",
        "currentScene": 1
    }
}

Example request to the console

//Request to recall a scene
var msg = {
    "payload": {
        "function": "sceneRecall",
        "scene": 2
    }
}
//Request to get the current scene
var msg = {
    "payload": {
        "function": "sceneRecall"
    }
}