MIDI and OSC
MIDI and OSC messages for driving instruments, consoles, lights and show software.
12-minute lesson · Software, mixing, post. In the app it ends with a three-level quiz and comes with the matching calculators.
MIDI (1983) was born so rival brands’ synths could talk. It carries zero sound — only orders, like “play note 60 this hard” or “set that fader to 100”. Today it also drives consoles, software and lights. OSC (Open Sound Control, 2002) retakes the idea on a computer network, more flexibly.
MIDI 1.0 messages
| Message | Status (hex) | Data | Use |
|---|---|---|---|
| Note on | 9n | note, velocity | Play a note, fire a sample or clip |
| Note off | 8n | note, release velocity | Stop the note (or note-on at velocity 0) |
| Control change (CC) | Bn | controller no., value | Faders, knobs, pedals (CC 7 = volume, CC 64 = sustain) |
| Program change | Cn | programme no. | Change preset, recall a desk scene |
| Pitch bend | En | 2 bytes (14-bit) | Pitch wheel: 0–16,383, centre 8192 |
| System exclusive (SysEx) | F0 … F7 | free | Maker-specific data, MTC, MSC |
Channels, values and cables
The status “n” is the channel: 16 per link, 1–16 (0–F in hex). Data spans 0–127 (7 bits), the top bit telling status from data. The link runs 31.25 kbit/s. The legacy connector is 5-pin DIN, one direction per cable: MIDI Out to MIDI In, MIDI Thru echoing the input. Small boxes use mini-jack (TRS), with two wirings (types A and B) never to mix up. USB is commonest today, often driverless (class compliant). MIDI also rides networks.
1 MIDI byte = 10 bits (start + 8 + stop) 31,250 / 10 = 3125 bytes/s note-on (3 bytes) ≈ 0.96 ms
MIDI 2.0 in short
Unveiled January 2020, MIDI 2.0 makes talk two-way: boxes introduce themselves and negotiate chops (MIDI-CI). Resolution goes far finer (16-bit velocity, 32-bit controllers instead of 7). It stays compatible: a MIDI 2.0 box speaks MIDI 1.0 to legacy kit. Adoption is gradual.
MIDI clock, MTC and MSC
- MIDI clock: 24 pulses per quarter, plus Start, Stop and Continue. It tracks tempo: drum machines, arpeggiators, synced delays
- MIDI Timecode (MTC): tracks absolute time in hours, minutes, seconds, frames (see Timecode)
- MIDI Show Control (MSC, 1991): SysEx messages cueing a show (GO, STOP, RESUME, cue number) across lights, sound, video and machinery. Each box has a number (device ID); 127 calls all
OSC: Open Sound Control
An OSC message carries a readable address, like a file path, plus typed arguments: /ch/01/mix/fader 0.75 sets channel 1’s fader to three-quarters. It rides an IP network, usually UDP (sometimes TCP). Pluses: plain names, precise values (32-bit floats), no 16-channel ceiling. Catch: every maker invents its addresses — grab their docs. You also need the box’s IP and port, on the same network.
Field examples
- Behringer X32 and Midas M32: OSC commands over UDP on port 10023 (10024 for the X Air range)
- QLab: listens for OSC (port 53000 by default); /go fires the next cue, /cue/12/start fires cue 12
- Apps like TouchOSC or Open Stage Control: draw your own control surface on a tablet
- MIDI controllers (pads, faders, pedalboards): fire clips in Ableton Live, cues in QLab, drive a DAW
Remoting a desk over Wi-Fi
Makers’ apps (for X32, Yamaha, Allen & Heath…) tune monitors from stage or check FOH from the room’s back. They often speak a proprietary protocol, not necessarily OSC. Good practice: a dedicated router hard-wired to the desk — never the venue Wi-Fi; the quieter 5 GHz band; a WPA2 password; static IPs. With a crowd and its phones, Wi-Fi can collapse: the desk must stay drivable by hand.
Firing sequences
In theatre, QLab (Mac) chains sounds, videos and network/MIDI orders to lights on every GO press. At gigs, Ableton Live fires clips and scenes from pads, sends MIDI clock to machines, and can sync several computers via Ableton Link. One principle: a master giving orders, slaves obeying.
Sources
- Official MIDI Specifications — MIDI Association
- OpenSoundControl Specification 1.0 — Matt Wright (CNMAT, UC Berkeley)
- Using OSC with QLab — QLab 5 Documentation — Figure 53
- MIDI — Wikipédia (en)
- MIDI Show Control — Wikipédia (en)