Automate Behringer X32 mixers from PowerShell using OSC

Here is a simple example using the OSC DLL with Windows PowerShell to control the Behringer X32 range of audio mixers.

I have tried this with the XR12 but will also work with any of the X Air XR16, XR18 and X32 models.

Sample script showing some basic settings:

# Connection Behringer X32
add-type -path ‘C:\Users\imorrish\OneDrive\PowerShell\OSC\SharpOSC.dll’
$sender = new-object SharpOSC.UDPSender “192.168.1.66”, 10023

#Mute channels 1 – 5
1..5 |% {$message = new-object SharpOSC.OscMessage “/ch/0$($_)/mix/on”, 0;$sender.Send$message)}

#Mute group 1
$message = new-object SharpOSC.OscMessage “/config/mute/1”, 0;
$sender.Send($message)

#Label channel name
$message = new-object SharpOSC.OscMessage “/ch/04/config/name”, “Lead Singer”
$sender.Send($message)

#fade up from 0 (0-1024 max)
1..200 | % {$message = new-object SharpOSC.OscMessage “/ch/04/mix/fader”, ($_ *4); sender.Send($message);Start-Sleep -Milliseconds 1}

It would be easy to use the faders on a midi device like my demo for controlling the ATEM audio levels.

See the following link for all OSC commands that are supported.
http://behringerwiki.music-group.com/index.php?title=OSC_Remote_Protocol#Client_initiated_messages_.28client_.E2.86.92_X32_console.29

And Channel specific controls http://behringerwiki.music-group.com/index.php?title=Channel_(/ch)_data

Advertisements

2 thoughts on “Automate Behringer X32 mixers from PowerShell using OSC

  1. Thank you for sharing this.

    I did find a connection issue in the script.

    On the third line:
    $sender = new-object SharpOSC.UDPSender “192.168.1.66”, 10024

    Should read:
    $sender = new-object SharpOSC.UDPSender “192.168.1.66”, 10023

    As per the X32 documentation you linked to, the port should be 10023.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s