What is MIDI?
MIDI (Musical Instrument Digital Interface) is a communication protocol established in 1983 that allows electronic musical instruments, computers, and other devices to communicate. Unlike audio, MIDI doesn't transmit sound — it sends performance data like which note was pressed, how hard (velocity), and for how long. This makes MIDI files extremely small and fully editable.
MIDI Messages Explained
MIDI communication uses several message types: Note On/Off — indicates a key press/release with pitch (0-127) and velocity (0-127). Control Change (CC) — handles knobs, faders, pedals, and other controllers. Program Change — switches instrument sounds/patches. Pitch Bend — smooth pitch modulation. Each message is sent on one of 16 channels, allowing multiple instruments on a single connection.
Types of MIDI Controllers
MIDI keyboards are the most common, ranging from 25-key portable controllers to 88-key weighted instruments. Pad controllers (like the Akai MPC) use pressure-sensitive pads for beat-making. Wind controllers mimic brass/woodwind instruments. MIDI guitars translate string vibrations to MIDI data. Modern controllers connect via USB (which is class-compliant — no drivers needed) or traditional 5-pin DIN cables.
Web MIDI API
The Web MIDI API provides browsers with the ability to interact with MIDI devices directly. It requires a secure context (HTTPS or localhost) and user permission. Currently supported in Chrome, Edge, and Opera — Firefox and Safari have limited support. The API provides real-time access to MIDI input messages, making it possible to build web-based music applications, virtual instruments, and MIDI monitors.