SkillAgentSearch skills...

BehringerXTouchExtender

🎚️ MIDI controller client for Behringer X-Touch Extender DAW control surface.

Install / Use

/learn @Aldaviva/BehringerXTouchExtender
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

🎚️ BehringerXTouchExtender

Nuget GitHub Workflow Status Testspace Coveralls

Send and receive events with a Behringer X-Touch Extender DAW MIDI control surface over USB.

<!-- MarkdownTOC autolink="true" bracket="round" autoanchor="false" levels="1,2,3" bullets="1.,-,-" -->
  1. Quick Start
  2. Prerequisites
  3. Installation
  4. Connection
  5. Track identifiers
  6. Reactive data
  7. Usage
  8. References
  9. Acknowledgements
<!-- /MarkdownTOC -->

Behringer X-Touch Extender

Quick Start

dotnet new console
dotnet add package BehringerXTouchExtender
// Program.cs
using BehringerXTouchExtender;

using var device = BehringerXTouchExtenderFactory.CreateWithRelativeMode();
device.Open();

var scribbleStrip = device.GetScribbleStrip(0);
scribbleStrip.TopText.Connect("Hello");
scribbleStrip.BottomText.Connect("World");
scribbleStrip.TopTextColor.Connect(ScribbleStripTextColor.Light);
scribbleStrip.BottomTextColor.Connect(ScribbleStripTextColor.Dark);
scribbleStrip.BackgroundColor.Connect(ScribbleStripBackgroundColor.Magenta);
dotnet run

Hello World

Prerequisites

MIDI control mode

You must manually set the X-Touch Extender to use absolute or relative MIDI control mode. The other two modes, HUI and MC, are not supported by this library.

  1. Turn on the X-Touch Extender while holding the leftmost Select button
  2. Turn the leftmost rotary encoder knob until the LCD shows Ctrl (absolute MIDI control mode) or CtrlRel (relative MIDI control mode)
  3. Press the leftmost Select button
  4. Remember which mode you chose when you connect to the device

Once configured, the X-Touch Extender will persist this control mode setting until you change it again, even after being turned off or unplugged. You don't have to set it every time you turn the device on.

Firmware upgrade

If your computer has an AMD Zen2 (Ryzen 3000 series) or later CPU, then you must install X-Touch Extender firmware 1.21 or later to fix the broken USB connection.

  1. Download the firmware
  2. Extract the .syx file from the .zip file
  3. Turn on the X-Touch Extender while holding the rightmost Record button
  4. Download and run MIDI-OX on an unaffected (e.g. Intel) computer connected to the X-Touch Extender over USB
  5. Select Options › MIDI Devices and highlight the X-Touch-Ext entries
  6. Select Actions › Send › SysEx File and choose the .syx file from step 2
  7. Wait for the upgrade to finish
  8. Reboot the X-Touch Extender using its power switch

Installation

You can install this library into your project from NuGet Gallery:

  • dotnet add package BehringerXTouchExtender
  • Install-Package BehringerXTouchExtender
  • Go to Project › Manage NuGet Packages in Visual Studio and search for BehringerXTouchExtender

Connection

  1. Use BehringerXTouchExtenderFactory to create a device instance you can use. The choice of which factory method to call depends on the device's configured MIDI control mode.
    • If you set your X-Touch Extender to Ctrl mode:
      using BehringerXTouchExtender;
      
      using var device = BehringerXTouchExtenderFactory.CreateWithAbsoluteMode();
      
    • If you set your X-Touch Extender to CtrlRel mode:
      using BehringerXTouchExtender;
      
      using var device = BehringerXTouchExtenderFactory.CreateWithRelativeMode();
      
  2. Once the X-Touch Extender is powered on and connected over USB, open the connection.
    device.Open();
    

Track identifiers

The X-Touch Extender is divided into eight vertical banks of controls, called tracks or channels. In this library, they are numbered from 0 on the left to 7 on the right (0-indexed).

On the physical device, the painted legends are 1-indexed, but 0-indexing is easier and less confusing to use in software.

Any time this library takes or provides a track ID, it's 0-indexed.

In most of the code examples below, the trackId argument used is 0.

Reactive data

This library handles data using KoKo Property objects. These encapsulate values that can change, including automatically in response to other Properties, and they automatically fire change events.

If you have your own Property that you want to drive a control on the X-Touch Extender, you can connect it to this library.

using KoKo;

var scribbleStrip = device.GetScribbleStrip(0);
var greeting = new StoredProperty<string>("Hello");
scribbleStrip.TopText.Connect(greeting);
// The device will show "Hello"

greeting.Value = "Hola";
// The device will automatically update to show "Hola"

KoKo Properties are used by all values on all controls in this library, not just scribble strips. This is useful if the desired value actually depends on other values, because they can all be automatically calculated without any manual change event firing or listening.

Property<CultureInfo> cultureInfo;
var greeting = DerivedProperty.Create<string>(cultureInfo, culture => culture.Name switch {
    "es" => "Hola",
    _ => "Hello"
});
scribbleStrip.TopText.Connect(greeting);
// The device will automatically update the greeting shown whenever the cultureInfo property changes

These Properties are used for reading changing data as well as writing it. You can read the immediate value, as well as registering for events whenever the Property changes in the future.

var button = device.GetRecordButton(0);

if(button.IsPressed.Value){
    Console.WriteLine("Button is pressed");
}

button.IsPressed.PropertyChanged += (sender, args) => {
    if(args.NewValue){
        Console.WriteLine("Button was pressed");
    }
};

If you don't want to create reactive properties, you can connect the device's properties to constant values whenever you want them to change.

scribbleStrip.BottomText.Connect("World");

Usage

Rotary encoders

IRotaryEncoder rotaryEncoder = device.GetRotaryEncoder(0);

Illuminating lights

There are thirteen orange lights on each rotary encoder. Exactly one of them is illuminated at any given time. You can't turn them all off at the same time. Set the LightPosition property to change which light is illuminated.

They are numbered from 0 (most counter-clockwise) to 12 (most clockwise). Va

Related Skills

View on GitHub
GitHub Stars22
CategoryDevelopment
Updated1mo ago
Forks6

Languages

C#

Security Score

95/100

Audited on Mar 2, 2026

No findings