class Qsc::QSysRemote

Defined in:

qsc/q_sys_remote.cr

Constant Summary

BoolVals = ["true", "false"]
DB_RANGE = -100..20
Delimiter = "\u0000"
Errors = {-32700 => "Parse error. Invalid JSON was received by the server.", -32600 => "Invalid request. The JSON sent is not a valid Request object.", -32601 => "Method not found.", -32602 => "Invalid params.", -32603 => "Server error.", 2 => "Invalid Page Request ID", 3 => "Bad Page Request - could not create the requested Page Request", 4 => "Missing file", 5 => "Change Groups exhausted", 6 => "Unknown change croup", 7 => "Unknown component name", 8 => "Unknown control", 9 => "Illegal mixer channel index", 10 => "Logon required"}
Faders = {matrix_in: {type: :"Mixer.SetInputGain", pri: :Inputs}, matrix_out: {type: :"Mixer.SetOutputGain", pri: :Outputs}, matrix_crosspoint: {type: :"Mixer.SetCrossPointGain", pri: :Inputs, sec: :Outputs}}
JsonRpcVer = "2.0"
Mutes = {matrix_in: {type: :"Mixer.SetInputMute", pri: :Inputs}, matrix_out: {type: :"Mixer.SetOutputMute", pri: :Outputs}}

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def auto_poll_change_group(group_id : String, every : Num, **options) #

Where every is the number of seconds between polls


[View source]
def change_group_add_component(group_id : String, component_name : String, controls : Array(String), **options) #

[View source]
def change_group_add_controls(group_id : String, controls : Array(String), **options) #

[View source]
def change_group_remove_controls(group_id : String, controls : Array(String), **options) #

[View source]
def clear_change_group(group_id : String, **options) #

Removes all controls from change group


[View source]
def component_get(c_name : String, controls : Array(String), **options) #

[View source]
def component_set(c_name : String, values : Values, **options) #

[View source]
def component_trigger(component : String, trigger : String, **options) #

[View source]
def connected #

[View source]
def control_get(names : Array(String), **options) #

[View source]
def control_set(name : String, value : Num | Bool, ramp : Num | Nil = nil, **options) #

[View source]
def destroy_change_group(group_id : String, **options) #

Removes the change group


[View source]
def disconnected #

[View source]
def fader(fader_ids : Ids, value : Num | Bool, component : String | Nil = nil, type : String = "fader", use_value : Bool = false, **options) #

value can either be a number to set actual numeric values like decibels or Bool to deal with mute state


[View source]
def faders(ids : Ids, value : Num | Bool, component : String | Nil = nil, type : String = "fader", **options) #

[View source]
def get_components(**options) #

[View source]
def get_status #

[View source]
def logon #

[View source]
def matrix_fader(name : String, level : Num, index : Array(Int32), type : String = "matrix_out", **options) #

[View source]
def matrix_mute(name : String, value : Num, index : Array(Int32), type : String = "matrix_out", **options) #

[View source]
def mixer(name : String, inouts : Hash(Int32, Int32 | Array(Int32)), mute : Bool = false, **options) #

Example usage: mixer 'Parade', {1 => [2,3,4], 3 => 6}, true


[View source]
def mute(fader_id : Ids, state : Bool = true, component : String | Nil = nil, type : String = "fader", **options) #

[View source]
def mutes(ids : Ids, state : Bool = true, component : String | Nil = nil, type : String = "fader", **options) #

[View source]
def next_id #

[View source]
def no_op #

This command does nothing but is useful for making sure the socket is left open


[View source]
def on_load #

[View source]
def on_update #

[View source]
def poll_change_group(group_id : String, **options) #

Returns values for all the controls


[View source]
def query_fader(fader_id : Ids, component : String | Nil = nil, type : String = "fader") #

[View source]
def query_faders(ids : Ids, component : String | Nil = nil, type : String = "fader", **options) #

[View source]
def query_mute(fader_id : Ids, component : String | Nil = nil, type : String = "fader") #

[View source]
def query_mutes(ids : Ids, component : String | Nil = nil, type : String = "fader", **options) #

[View source]
def received(data, task) #

[View source]
def unmute(fader_id : Ids, component : String | Nil = nil, type : String = "fader", **options) #

[View source]