MIDI controllers
Control PixDrive Studio with a MIDI controller: learn knobs, faders and buttons, assign actions, map parameters per preset, soft takeover, banks and feedback.
Updated
Knobs, faders and buttons on a MIDI controller control PixDrive Studio live: effect parameters, presets, playback and the master brightness. Any class-compliant USB MIDI controller works, no driver needed.
MIDI is part of external control and needs the full version, like REST and OSC. Learning controls is locked in the demo.
How it fits together
PixDrive keeps three things apart:
| Part | What it says | Where it is saved |
|---|---|---|
| Controls | knob1 is CC 16 on channel 1 of this controller |
On this computer, because it belongs to the hardware |
| Actions | knob8 sets the master brightness, button8 stops |
In the project |
| Preset mappings | While this preset runs, knob2 moves the density of its first effect |
In the preset, so in the project |
Everything except the controls refers to a control by its name (knob1, fader1, button1), never by a MIDI number. If you swap the controller or open the project on another computer, you learn the controls once and all actions and presets keep working.
Set up the controller
- Plug in the controller over USB. PixDrive looks for controllers every two seconds, so you don’t need to restart the app.
- Open Settings → External Control → MIDI controllers and switch on Enable MIDI. Your controller appears under Connected.
- Click Add control. PixDrive waits for you to move a knob or fader, or press a button.
- Move the control. It appears in the list with a name.
- Repeat for every control you want to use.
PixDrive guesses the type from the MIDI message: notes become buttons (button1), pitch bend becomes a fader (fader1), control changes (CC) become knobs (knob1). If the guess is wrong, change Type in the list; the control gets a new name, and the actions and preset mappings that used it follow along.
If you wait for 30 seconds without moving anything, learning stops by itself.
Encoding
Knobs and faders that send CC messages have an Encoding. Leave it on Absolute unless your controller does something else:
| Encoding | For |
|---|---|
| Absolute | Knobs and faders with a left and right stop, values 0–127 |
| Absolute, 14-bit | High-resolution faders that send a second CC (number + 32) for the fine steps |
| Relative (1 / 127) | Endless encoders |
| Relative (1 / 65) | Endless encoders |
| Relative (65 / 63) | Endless encoders |
Which relative variant an endless encoder uses is in the controller’s manual. If a knob jumps or only moves in one direction, try the next variant.
Actions
The Action column gives a control a fixed job in this project:
| Type | Possible actions |
|---|---|
| Knob, fader | Master brightness |
| Button | Play, Pause, Stop, Next bank, Previous bank, or applying any preset |
A button with a preset as its action applies that preset when you press it. Buttons fire once per press; holding them down does nothing more.
What does which control do? below the list shows, for every control, what it moves in each preset and what it does otherwise.
Effects respond right away
The built-in effects name a default control for their parameters, so a controller works without any mapping: speed is on knob1, the next numeric values on the following knobs, switches and option lists on buttons.
Start an effect and turn knob1: the speed follows. The control moves the effect selected in the interface, or else the one started last.
When several things want the same control, this order decides:
- A preset mapping of the preset applied last.
- An action you gave the control in the settings.
- The effect’s default control.
During sequence playback, the knobs move the segments under the playhead instead. The change works like a change in the interface: it lasts until another sequence is loaded and isn’t saved into the sequence.
Map parameters per preset
For a show, you usually want to decide exactly what each knob does. You do that per preset:
- Right-click a preset in the preset list (or click the sliders icon next to it). The MIDI controls dialog opens.
- It lists every effect of the preset with its parameters. The preset doesn’t have to be running.
- Click Learn next to a parameter and move a control. Or pick the control from the list.
- Open Options to set how the control behaves.
| Option | What it does |
|---|---|
| From / To | The control only covers part of the range, for example speed 0.5 to 2 instead of 0 to 5 |
| Curve | Linear, Fine at the low end or Fine at the high end |
| Invert | Turning right makes the value smaller |
| Button | For on/off and option parameters: Follows the control, Press switches or Press selects next |
| Soft takeover | The value only follows once the control reaches it (see below) |
| Bank | Which bank the mapping belongs to, shown once you use more than one bank (see below) |
Changes apply to a running preset right away, so you can try a mapping without applying the preset again.
Good to know:
- Colours appear as three rows: hue, saturation and brightness. A knob on the hue turns through the colour wheel.
- One control can move several parameters, even across several effects of a preset: one twist for “faster, brighter, tighter”.
- Palettes, curves and points have no single value and can’t be mapped.
- Apply this preset with picks a button that applies the preset.
- Copy controls from takes over the mappings of another preset, useful for presets built the same way.
- A preset you never mapped starts with the effects’ default controls as a suggestion. Once you save, the mapping is yours, even if it’s empty.
A show (a preset that starts a sequence) has no effects of its own to map. During playback, the controls follow their defaults for the segment under the playhead.
Soft takeover
Knobs and faders with a stop always sit somewhere. After a preset change, that position rarely matches the new value. Without protection, the parameter would jump to the knob’s position as soon as you touch it.
With Soft takeover, which is on by default, the parameter only follows once the control reaches its current value or passes it. In practice: sweep the knob through its range and it catches the value. The same applies when something else changed the parameter in the meantime, for example the mouse, REST or MCP.
Turn soft takeover off for motor faders, which move to the right position by themselves when feedback is on. Endless encoders don’t need it: they always move the parameter from its current value.
Banks
Eight knobs fill up fast. A preset with three effects easily has fifteen parameters. Banks solve this:
- In Settings → External Control → MIDI controllers, set Banks to the number of banks you need.
- Give a button the action Next bank (and another one Previous bank if you like).
- In the preset’s MIDI controls, give each mapping a Bank under Options.
- Press the bank button during the show. The same knobs now move the next group of parameters.
The settings show the Active bank. After switching, soft takeover starts over, because the knobs now mean something else. A control that has no mapping in the active bank falls back to its action and its effect default. Actions and effect defaults have no banks.
Feedback to the controller
Send to the controller makes the controller show where the parameters are: motor faders move, LED rings and button lights follow. It’s off by default, because some controllers and virtual MIDI ports send back what they receive.
With feedback on, PixDrive sends the current values when you apply a preset, switch banks, move a parameter somewhere else (mouse, REST, MCP), connect the controller or switch feedback on. The button of the preset you applied with a control lights up, and the other preset buttons go out.
PixDrive sends feedback to the controller’s output port with the same name as its input port.
Default controls in your own effects
In your own Lua effects, you choose the default control per parameter. The parameter form in the script editor has a MIDI control field for it. In the code, it’s control in the @params line:
-- @params: [{"id":"tempo","name":"Tempo","description":"Speed of the effect","param_type":{"type":"Float","config":{"default":1.0,"min":0.0,"max":5.0,"step":0.1,"unit":null}},"automatable":true,"control":"knob1"}]
Use a control name, not a MIDI number, so the script works on every controller. Follow the convention of the built-in effects: speed on knob1, further numbers on knob2, knob3 and so on, on/off and options on buttons. A preset keeps its own copy of a script, so later changes to the header don’t reach presets you already saved.
More on scripts in Script Engine: custom effects with Lua.
Without a MIDI controller: OSC
The same controls can be moved over OSC, for example from TouchOSC or another show-control tool. Send a float from 0 to 1 to /pixdrive/control/<name>:
/pixdrive/control/knob1 0.75
This reaches preset mappings, actions and effect defaults like a real control. It needs OSC switched on, see External Control API (REST & OSC).
For automation with AI tools, the MCP server has tools to read and set preset mappings and to move a control by name.
Troubleshooting
- The controller isn’t listed: check that MIDI is on and that the controller works without a driver. Close other software that might hold the port exclusively.
- A pad doesn’t react: many pad controllers have several modes. Pads that send notes are recognised as buttons. Program change messages aren’t evaluated.
- A knob jumps or only moves one way: it’s an endless encoder; pick a relative Encoding.
- A knob does nothing after a preset change: soft takeover is waiting. Sweep the knob through the current value.
- A motor fader fights your hand or flickers: turn off soft takeover for its mappings. If values bounce back and forth, your controller echoes messages; turn off Send to the controller.
- Two identical controllers act as one: PixDrive tells controllers apart by their port name, so two units of the same model share their controls.
For a practical example with the Akai LPD8, see the blog post Control LEDs with a MIDI controller.