Production tech
Controlling Behringer WING mixers from Bitfocus Companion
An overhaul of the Bitfocus Companion module for Behringer WING digital mixers, so a Stream Deck can read and control the console over OSC.
- 100console channels, buses, DCAs and groups tracked
- 8schema sections parsed
- 22commits in the overhaul
The problem
I spend a lot of time around live sound and lighting. Bitfocus Companion turns a Stream Deck into a control surface for show gear, and the existing module for the Behringer WING covered only a fixed set of controls. Anything beyond them meant opening the console.
What I built
- A new parser for the mixer’s data, covering inputs and outputs, channels, aux, buses, mains, matrices, DCAs and mute groups, keeping track of where each value lives on the console
- Companion variables created on the fly from what the mixer reports, instead of a hand-written list
- Actions and feedbacks built on the same model, with sensible defaults for every dropdown
- Connecting to the console, asking it what it has, and polling it so Companion stays in sync
Talking to the console
- Handshakesend /? on UDP 2223
- Console replieson /*
- Queue getsnames, mutes, faders, 10 every 500 ms
- Subscribe/*S, renewed every 7 s
- Livevariables and feedbacks update
fn connect(host):
socket = udp.bind(10024 + random()) # several instances can run at once
send(host, 2223, "/?")
await reply_on("/*", timeout = 10s) or retry_later()
for section in [ch 1..40, aux 1..8, bus 1..16, main 1..4, mtx 1..8, dca 1..16, mgrp 1..8]:
for field in [name, mute, fdr]:
queue.push("/" + section + "/" + field) # a path with no args is a get
every 500ms: send(queue.take(10)) # faster floods drop replies
when queue.empty:
every 7s: send("/*S") # the subscription lapses, so renew it
Why it matters
The console knows what it has. Asking it, instead of hard-coding a list, means new controls show up without anyone updating the module.