All work

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.

Goodlettsville Pentecostal Church · Production, open source · 2023 – 2024

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

Talking to the console

  1. Handshakesend /? on UDP 2223
  2. Console replieson /*
  3. Queue getsnames, mutes, faders, 10 every 500 ms
  4. Subscribe/*S, renewed every 7 s
  5. Livevariables and feedbacks update

A sketch of the idea, not the production code.

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.

Stack

Links