Repository navigation
Reference Script Functions Goxlr
Also on the Cuebot Docs site.
Functions for C# (Cb.Call) and Python (a cb method each, or cb.call). See Script functions for how to use them.
Sends a raw command to the GoXLR Utility. For advanced users who know the GoXLR Utility's command names.
| Value | In Python | What to put in |
|---|---|---|
command |
command |
The command, like {"SetFXEnabled": true}. You can also give it as JSON text. |
serial |
serial |
Optional. The serial number of the GoXLR to send it to. Leave it out for your main GoXLR. |
Gives back: true when done.
C#
var answer = await Cb.Call("goxlr.command", new { command = new { SetFXEnabled = true } });Python
answer = cb.goxlr_command(command={"SetFXEnabled": True})Starts connecting to the GoXLR Utility. It does not wait: Cuebot keeps trying in the background until it works.
Gives back: true once connecting has started (not when it is connected).
C#
var answer = await Cb.Call("goxlr.connect");Python
answer = cb.goxlr_connect()Disconnects Cuebot from the GoXLR Utility.
Gives back: true when done.
C#
var answer = await Cb.Call("goxlr.disconnect");Python
answer = cb.goxlr_disconnect()Gives you everything the GoXLR Utility reports, exactly as it sends it. For advanced scripts.
Gives back: The utility's whole status as JSON text. Empty text when nothing was received yet.
C#
var answer = await Cb.Call("goxlr.getRawStatus");Python
answer = cb.goxlr_get_raw_status()Tells you about the GoXLR Utility connection and your GoXLR: profiles, faders, volumes, mutes and effects.
Gives back: isConnected, status (a status line), url, daemonVersion, devices (each GoXLR with its profile, faders, volumes in percent, cough button, effects and sampler bank), profiles, micProfiles and presets.
C#
var answer = await Cb.Call("goxlr.getStatus");Python
answer = cb.goxlr_get_status()Checks whether Cuebot is connected to the GoXLR Utility right now.
Gives back: true while connected, otherwise false.
C#
var answer = await Cb.Call("goxlr.isConnected");Python
answer = cb.goxlr_is_connected()Loads one of your GoXLR mic profiles. Fails with an error when the GoXLR Utility is not connected.
| Value | In Python | What to put in |
|---|---|---|
name |
name |
The mic profile name as the GoXLR Utility shows it, like "Dynamic Mic". |
remember |
remember |
Optional. true makes the GoXLR Utility load this mic profile again next time it starts. Default true. |
Gives back: true when done.
C#
var answer = await Cb.Call("goxlr.loadMicProfile", new { name = "Dynamic Mic" });Python
answer = cb.goxlr_load_mic_profile(name="Dynamic Mic")Loads one of your GoXLR profiles. Fails with an error when the GoXLR Utility is not connected.
| Value | In Python | What to put in |
|---|---|---|
name |
name |
The profile name as the GoXLR Utility shows it, like "Streaming". |
remember |
remember |
Optional. true makes the GoXLR Utility load this profile again next time it starts. Default true. |
Gives back: true when done.
C#
var answer = await Cb.Call("goxlr.loadProfile", new { name = "Streaming" });Python
answer = cb.goxlr_load_profile(name="Streaming")Plays a sample from a sampler button, as if you pressed it. The GoXLR Mini has no sampler, so it fails with an error there.
| Value | In Python | What to put in |
|---|---|---|
bank |
bank |
Optional. The bank: "A", "B" or "C". Leave it empty for the bank that is active now. |
button |
button |
The button: "TopLeft", "TopRight", "BottomLeft" or "BottomRight". |
index |
index |
Optional. Which sample on that button, counting from 1. Leave it out to play the button's next sample. |
Gives back: bank and button that were played.
C#
var answer = await Cb.Call("goxlr.playSample", new { button = "TopLeft" });Python
answer = cb.goxlr_play_sample(button="TopLeft")Sends any raw request to the GoXLR Utility and gives back its answer. For advanced users.
| Value | In Python | What to put in |
|---|---|---|
request |
request |
The request, like "GetStatus" or {"Command": [...]}. You can also give it as JSON text. |
Gives back: The GoXLR Utility's answer data, like "Ok" or the status object.
C#
var answer = await Cb.Call("goxlr.request", new { request = "GetStatus" });Python
answer = cb.goxlr_request(request="GetStatus")Mutes or unmutes your mic with the cough button (on a GoXLR Mini: the mic mute button). Fails with an error when the GoXLR Utility is not connected.
| Value | In Python | What to put in |
|---|---|---|
state |
state |
Optional. "Mute", "Mute to all", "Unmute" or "Toggle" (switch). Default "Toggle". |
Gives back: The new mute state: "Unmuted", "MutedToX" or "MutedToAll".
C#
var answer = await Cb.Call("goxlr.setCoughMute", new { state = "Mute" });Python
answer = cb.goxlr_set_cough_mute(state="Mute")Turns a voice effect on or off. The GoXLR Mini has no effects, so it fails with an error there.
| Value | In Python | What to put in |
|---|---|---|
effect |
effect |
The effect: "FX", "Megaphone", "Robot" or "Hard Tune". |
state |
state |
Optional. "On", "Off" or "Toggle" (switch). Default "Toggle". |
Gives back: The new state: true for on, false for off.
C#
var answer = await Cb.Call("goxlr.setEffect", new { effect = "Robot", state = "On" });Python
answer = cb.goxlr_set_effect(effect="Robot", state="On")Picks one of the six effect presets. The GoXLR Mini has no effects, so it fails with an error there.
| Value | In Python | What to put in |
|---|---|---|
preset |
preset |
The preset number 1-6, like "3", or its name. |
Gives back: The preset that is now active, like "Preset3".
C#
var answer = await Cb.Call("goxlr.setEffectPreset", new { preset = "3" });Python
answer = cb.goxlr_set_effect_preset(preset="3")Puts a different channel on one of the GoXLR faders. Fails with an error when the GoXLR Utility is not connected.
| Value | In Python | What to put in |
|---|---|---|
fader |
fader |
The fader letter: A, B, C or D. |
channel |
channel |
The channel to put on it, like "Game" or "Music". |
Gives back: true when done.
C#
var answer = await Cb.Call("goxlr.setFaderChannel", new { fader = "B", channel = "Game" });Python
answer = cb.goxlr_set_fader_channel(fader="B", channel="Game")Mutes or unmutes one GoXLR fader. Fails with an error when the GoXLR Utility is not connected or the channel is not on a fader.
| Value | In Python | What to put in |
|---|---|---|
target |
target |
The fader letter A, B, C or D, or the channel on it, like "Music". |
state |
state |
Optional. "Mute", "Mute to all", "Unmute" or "Toggle" (switch). Default "Toggle". |
Gives back: The new mute state: "Unmuted", "MutedToX" or "MutedToAll".
C#
var answer = await Cb.Call("goxlr.setFaderMute", new { target = "Music", state = "Mute" });Python
answer = cb.goxlr_set_fader_mute(target="Music", state="Mute")Changes the colour of all the lights on your GoXLR. Fails with an error when the colour is not a hex colour.
| Value | In Python | What to put in |
|---|---|---|
colour |
colour |
The colour as a hex code, like "#FF8800". |
Gives back: true when done.
C#
var answer = await Cb.Call("goxlr.setGlobalColour", new { colour = "#9146FF" });Python
answer = cb.goxlr_set_global_colour(colour="#9146FF")Sends a GoXLR input to an output, or stops it, like the Routing table in the GoXLR Utility.
| Value | In Python | What to put in |
|---|---|---|
input |
input |
The input: Microphone, Chat, Music, Game, Console, LineIn, System or Samples. |
output |
output |
The output: Headphones, BroadcastMix, ChatMic, Sampler, LineOut or StreamMix2. |
state |
state |
Optional. "On", "Off" or "Toggle" (switch). Default "Toggle". |
Gives back: The new state: true when the input goes to the output, false when not.
C#
var answer = await Cb.Call("goxlr.setRouting", new { input = "Music", output = "BroadcastMix", state = "Off" });Python
answer = cb.goxlr_set_routing(input="Music", output="BroadcastMix", state="Off")Switches the sampler to bank A, B or C. The GoXLR Mini has no sampler, so it fails with an error there.
| Value | In Python | What to put in |
|---|---|---|
bank |
bank |
The bank: "A", "B" or "C". |
Gives back: true when done.
C#
var answer = await Cb.Call("goxlr.setSamplerBank", new { bank = "B" });Python
answer = cb.goxlr_set_sampler_bank(bank="B")Changes the volume of one GoXLR channel. Fails with an error when the GoXLR Utility is not connected.
| Value | In Python | What to put in |
|---|---|---|
channel |
channel |
The channel: Mic, LineIn, Console, System, Game, Chat, Sample, Music, Headphones, MicMonitor or LineOut. |
volume |
volume |
The volume in percent, 0-100, like 80. |
relative |
relative |
Optional. true adds the number to the current volume instead (use a minus number to turn it down). Default false. |
Gives back: The new volume in percent.
C#
var answer = await Cb.Call("goxlr.setVolume", new { channel = "Music", volume = 40 });Python
answer = cb.goxlr_set_volume(channel="Music", volume=40)Stops the sample that a sampler button is playing.
| Value | In Python | What to put in |
|---|---|---|
bank |
bank |
Optional. The bank: "A", "B" or "C". Leave it empty for the bank that is active now. |
button |
button |
The button: "TopLeft", "TopRight", "BottomLeft" or "BottomRight". |
Gives back: bank and button that were stopped.
C#
var answer = await Cb.Call("goxlr.stopSample", new { button = "TopLeft" });Python
answer = cb.goxlr_stop_sample(button="TopLeft")Cuebot by Tech Daddy Digital · MIT license · Privacy
Cuebot Docs (the same pages, nicer to read)
- Home
- Start here
-
Guides
- Chat commands
- Overlays and alerts
- Writing your own overlay widgets
- Text-to-speech
- Music and now playing
- Points, store and giveaways
- Subathons and goals
- Stream apps and devices
- VTuber apps
- Stream Deck
- The phone app
- Donations and integrations
- Discord bot
- The setup assistant and AI tools
- The assistant on your own computer
- Moving from Streamer.bot
- Cuebot's servers
- Writing code (C# and Python)
- Python in detail
- Using your own code editor
- Controlling Cuebot from other programs
- Backups and your data
- Linux
- Command-line options
- Troubleshooting
- What's experimental
- Reference
