Control X Air and M Air mixer with the SchwiftyBox

Main Code:
This code is written in Python and is designed to control the main fader position on Behringer X Air series digital mixers (XR12, XR16, and XR18) as well as the Midas M Air (MR12 and MR18) digital mixers. It is intended to be used with a MIDI controller like the SchwiftyBox.
The code sends an OSC (Open Sound Control) message to the mixer in order to determine the current position of the main fader. Afterward, it either adds or subtracts a specified amount to this fader position and then sends the updated position back to the mixer. The specified amount for adjustment is defined in the "settings.ini" file.

Settings.ini File:

Create a "settings.ini" file and place it in the same folder as the main code.

This file contains settings for the IP address and port number of the mixer. Replace the placeholder IP with the current IP address of your mixer. For X Air and M Air series mixers, the port number is always set to 10024. The sending port can be any available port on your network. The setting "DB_STEP" indicates the change in decibels (dB) for the fader position.

While all this information could be incorporated into the main code, having it in a separate "settings.ini" file allows for easier management. If you later decide to add more functionality or controls, you would only need to update the settings in one place.

AppleScript for QLab:

This AppleScript is triggered by a MIDI event from the SchwiftyBox or another MIDI controller.

This for increasing the fader position.

And this for decreasing the fader position...

Back to blog