CLI to control Behringer X-Air | Midas MR mixers through OSC
Project description
xair CLI
Command-line interface for controlling Behringer XAir and Midas MR digital mixers over OSC.
Features
- Mixer Control - Adjust faders, mutes, pans, EQ, dynamics, and sends
- Multi-Channel Operations - Control ranges (
1-4), lists (1,3,5), or all channels at once - Scene Management - Load, save, and list mixer scenes
- Network Discovery - Find mixers on your local network
- Batch Commands - Execute scripts of mixer commands
- Flexible Output - Human-readable, JSON, or plain key=value formats
- Shell Completion - Bash, Zsh, and Fish completion scripts
Supported Mixers
- Behringer XR18, XR16, XR12
- Midas MR18
- Behringer X32
Installation
./setup.sh
Or manually:
pip install -e "./xair_api[cli]"
Quick Start
# Discover mixers on the network
xair discover
# Show mixer info
xair --ip 192.168.1.50 info
# Control channels
xair --ip 192.168.1.50 ch 1 fader -6
xair --ip 192.168.1.50 ch 1-4 mute on
# Load a scene
xair --ip 192.168.1.50 scene load 1
See QUICKSTART.md for more examples.
Configuration
Create a config file to avoid passing --ip every time:
xair config init
Edit ~/.config/xair/config.toml:
[connection]
ip = "192.168.1.50"
model = "XR18"
Or set environment variables:
export XAIR_IP="192.168.1.50"
export XAIR_MODEL="XR18"
Commands
| Command | Description |
|---|---|
info |
Show mixer model, IP, and firmware |
discover |
Find mixers on the network |
status |
Show channel overview |
ch |
Control input channels |
bus |
Control output buses |
lr |
Control main L/R output |
dca |
Control DCA groups |
fx |
Control FX slots |
rtn |
Control FX returns |
scene |
Manage scenes (load/save/list) |
raw |
Send raw OSC commands |
meters |
Show channel levels |
batch |
Execute commands from file |
config |
Manage configuration |
completion |
Generate shell completions |
Channel Properties
| Property | Description | Range |
|---|---|---|
fader |
Level in dB | -90 to +10 |
mute |
Mute state | on/off/toggle |
name |
Channel name | string |
gain |
Preamp gain (channels only) | 0-60 dB |
phantom |
48V phantom power | on/off |
pan |
Pan position | -100 to +100 |
eq |
EQ enable | on/off |
gate |
Gate enable | on/off |
comp |
Compressor enable | on/off |
send.N |
Send level to bus N | -90 to +10 dB |
Relative Adjustments
Use + or -- for relative fader changes:
xair ch 1 fader +3 # Increase by 3 dB
xair ch 1 fader --6 # Decrease by 6 dB (double dash)
Output Formats
xair ch 1 fader # Human readable
xair --json ch 1 fader # JSON output
xair --plain ch 1 fader # key=value pairs
Shell Completion
# Bash
xair completion bash >> ~/.bashrc
# Zsh
xair completion zsh >> ~/.zshrc
# Fish
xair completion fish > ~/.config/fish/completions/xair.fish
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dc_xair_cli-2.4.1.tar.gz.
File metadata
- Download URL: dc_xair_cli-2.4.1.tar.gz
- Upload date:
- Size: 29.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1506783fc737217a42c188cd8f441de9e11078018f905835dc81f4bc2cd527e1
|
|
| MD5 |
0ff162c632576915c1a871a9ba907caa
|
|
| BLAKE2b-256 |
5647ace0a0dfad5430cf31f11250c959a3bae22b217cd22727ad8cff03a88b3a
|
File details
Details for the file dc_xair_cli-2.4.1-py3-none-any.whl.
File metadata
- Download URL: dc_xair_cli-2.4.1-py3-none-any.whl
- Upload date:
- Size: 41.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22a6bddc98bf426a84686bffb1377bd512ac05d75887b2e0f775c115cdcf2e20
|
|
| MD5 |
00a67b5a4d88cd9d8bd7e0ff625b037b
|
|
| BLAKE2b-256 |
b24313a5d4ea92af65968446ac1ae2301adf8bc54f3a02e6e465e8d82fa4a4c2
|