Web MIDI controller
No controller? Use this page
This page is a MIDI controller. Its faders, knobs, XY pad and pads send real MIDI messages through a virtual MIDI cable on your computer (the IAC Driver on a Mac, loopMIDI on Windows) into TouchDesigner or anything else that listens to MIDI. Every move shows what was sent and the channel name TouchDesigner will show for it.
- Mac: turn the IAC Driver on (Audio MIDI Setup → Window → Show MIDI Studio → IAC Driver → Device is online). Windows: install loopMIDI and add a port.
- Open this page in Chrome or Edge on that computer and press Connect MIDI output. The first time, the browser asks to use MIDI devices: allow it.
- Pick the output, the same port TouchDesigner's MIDI In listens to.
- Move a fader, hit a pad: TouchDesigner's MIDI In CHOP shows ch1ctrl20 and ch1n36.
Not connected yet. Try the controls: the messages appear beside them, and leave once you connect.
Change the CC and note numbers
Your numbers stay in this browser. A link can carry them too: ?ch=1&cc=20,21,22,23&xy=74,71¬e=36.
What each control sends
TouchDesigner's MIDI In CHOP opens a channel with this name. The names assume 1 Based Index is off (it is off in the lesson files that go with this page). With it on, the number in the name is off by one.
| Control | MIDI message | TD channel | Value |
|---|---|---|---|
| Fader 1 | CC 20 · ch 1 | ch1ctrl20 | 0–127 |
| Fader 2 | CC 21 · ch 1 | ch1ctrl21 | 0–127 |
| Knob 1 | CC 22 · ch 1 | ch1ctrl22 | 0–127 |
| Knob 2 | CC 23 · ch 1 | ch1ctrl23 | 0–127 |
| XY across | CC 74 · ch 1 | ch1ctrl74 | 0–127 |
| XY up | CC 71 · ch 1 | ch1ctrl71 | 0–127 |
| Pad 1 | Note on 36 · ch 1 | ch1n36 | above 0 while held (the velocity), 0 when let go |
| Pad 2 | Note on 37 · ch 1 | ch1n37 | above 0 while held (the velocity), 0 when let go |
| Pad 3 | Note on 38 · ch 1 | ch1n38 | above 0 while held (the velocity), 0 when let go |
| Pad 4 | Note on 39 · ch 1 | ch1n39 | above 0 while held (the velocity), 0 when let go |
| Pad 5 | Note on 40 · ch 1 | ch1n40 | above 0 while held (the velocity), 0 when let go |
| Pad 6 | Note on 41 · ch 1 | ch1n41 | above 0 while held (the velocity), 0 when let go |
| Pad 7 | Note on 42 · ch 1 | ch1n42 | above 0 while held (the velocity), 0 when let go |
| Pad 8 | Note on 43 · ch 1 | ch1n43 | above 0 while held (the velocity), 0 when let go |
Wiring it in TouchDesigner
- Dialogs → MIDI Device Mapper → Create New Mapping. Set its In Device to the port you picked on this page (IAC Driver or loopMIDI) and note its ID.
- Add a MIDI In CHOP and set its Device ID to that ID.
- Move a fader here: the CHOP grows ch1ctrl20, 0 to 127. A Math CHOP from range 0–127 to range 0–1 makes it ready for size, brightness or colour.
- Hit a pad: a channel like ch1n36 appears, above 0 while held and back to 0 when let go. Good for a flash or a switch.
Measured on TouchDesigner 2025.33230 on a Mac, through the IAC Driver. Nothing comes back from TouchDesigner to this page.
Which computer, which browser
- Mac
- The IAC Driver is built in. In Audio MIDI Setup open the MIDI Studio, double-click IAC Driver, tick Device is online, and add ports if you need more than one. Chrome lists the device and port names run together, for example IAC DriverPort2 (the port is Bus 1 unless you renamed it).
- Windows
- Install loopMIDI (free, by Tobias Erichsen) and press + to add a port. This page sends into it; TouchDesigner listens to the same port.
- Browsers
- Chrome and Edge have Web MIDI. Safari (Mac, iPhone, iPad) has none: the controls move but no MIDI leaves. Firefox has it behind a site permission add-on (not tested here). The page must come from https or localhost, and the browser asks once.
- Phones
- A phone has no virtual MIDI cable, so this page cannot send MIDI from one. For a phone as a controller, see Phones and iPads as controllers: the phone sends over a relay to a page on the computer.