Musical Instrument Digital Interface (MIDI) is a widely used standard for digital communication between electronic musical devices, enabling control over notes, instruments, and performance details.
What is MIDI?
MIDI stands for Musical Instrument Digital Interface. It is a digital communication standard that allows electronic musical instruments, computers, and other related equipment to interact and exchange musical data. Unlike formats such as MP3 or WAV, MIDI does not store sound itself. Instead, it stores instructions that tell a device how to produce sound. This makes MIDI incredibly versatile, efficient, and essential for modern music production, composition, and live performance.
The concept of MIDI is similar to a musical score: just as a sheet of music tells a performer what to play, a MIDI file tells an instrument what notes to play, how long to play them, how loud to play them, and more.
MIDI was first introduced in the early 1980s and has remained a core component of digital music creation due to its flexibility, small file size, and compatibility across a wide range of hardware and software.
How MIDI works
MIDI messages and event data
MIDI communicates using event messages. Each message describes a musical event or a control instruction. These events are made up of digital signals that are transmitted from one device to another, typically via a MIDI cable or USB connection. These messages include:
Note On: Signals the start of a note being played.
Practice Questions
FAQ
MIDI files can include lyrics or vocal instructions, but not actual recorded singing or spoken words. Since MIDI only handles performance instructions rather than sound data, it represents lyrics as text meta-events within the file. These events are synchronised with specific note events, allowing lyrics to be displayed in real time during playback, often used in karaoke systems or music notation software. Each syllable or word is assigned to a particular point in the sequence to match the vocal rhythm, but no sound is produced by MIDI itself. To achieve audible singing, a vocal synthesiser or vocal sample library is used alongside the MIDI data. For example, programs like Yamaha’s VOCALOID interpret the MIDI data and lyrics together, generating artificial human vocals. This system requires careful timing, pitch, and lyric alignment in the MIDI editor. Without such synthesisers, MIDI cannot produce or store any vocal sounds, only the instructions to control them.
MIDI handles expressive elements like pitch bends and modulation through specialised Control Change (CC) and Pitch Bend messages. Pitch bend messages allow the performer to raise or lower the pitch smoothly between semitones, often used with a pitch wheel on MIDI keyboards. These messages use 14-bit resolution, offering 16,384 possible values, which provides a high degree of precision and smooth transitions. Modulation, typically assigned to vibrato or tremolo, is controlled using Control Change number 1, which varies in intensity from 0 to 127. These expressive controls can be applied during performance or programmed into a sequencer. However, the accuracy of these effects depends on the capabilities of the sound module or virtual instrument interpreting them. Higher-end synthesisers produce more nuanced and natural-sounding expressions, while lower-quality ones may sound robotic or artificial. Despite MIDI’s limitations, careful editing and use of high-quality instruments allow musicians to create highly expressive performances.
Yes, multiple MIDI devices can be synchronised using a feature known as MIDI clock or MIDI Time Code (MTC). MIDI clock sends timing messages at a standard rate (24 pulses per quarter note) to keep all connected devices playing in time. This is essential when combining drum machines, sequencers, synthesisers, or DAWs in a live or studio setting. One device acts as the master clock, controlling the tempo, while the others act as slaves, following the master’s timing. MIDI Start, Stop, and Continue messages are used to coordinate playback. MIDI Time Code is a more precise system used for syncing audio with video or when more accurate timing is needed. It encodes time in hours, minutes, seconds, and frames. To manage complex setups, devices are connected via MIDI Thru ports or MIDI interfaces that support daisy chaining or multi-port routing. Effective synchronisation ensures consistent timing, essential for multi-device performances or productions.
Yes, MIDI is increasingly used beyond traditional music applications to control non-musical devices in a wide range of creative and technical fields. In theatre and live performance, MIDI triggers lighting changes, pyrotechnics, and stage automation in sync with music or cues. In visual arts, artists use MIDI controllers to manipulate visual effects, projection mapping, or interactive installations. For example, pressing a key might simultaneously play a note and trigger a video clip or animation. MIDI is also used in gaming hardware to control events or haptic feedback, and in assistive technology, where modified MIDI controllers enable individuals with disabilities to interact with computers or instruments. In automation and robotics, MIDI data can control mechanical actuators or motors, allowing devices to perform actions in time with music. These cross-disciplinary uses demonstrate MIDI’s flexibility as a general-purpose control protocol, as its simple message format is ideal for real-time, synchronised control across diverse systems.
General MIDI (GM) is a standardised specification that defines a consistent set of 128 instrument sounds and drum kits mapped to specific program numbers. This ensures that a MIDI file created on one device will produce a similar-sounding result on another GM-compatible device. For instance, Program Change 1 always triggers a grand piano sound, and Program Change 25 always triggers a nylon-string guitar. This eliminates the ambiguity of instrument assignments across different synthesisers or software environments. GM also includes standardised percussion mappings on MIDI Channel 10, so a particular drum sound (e.g., snare or kick) corresponds to a fixed note number. Without GM, MIDI files might sound drastically different depending on the sound bank used, leading to inconsistent playback. While professional composers often override GM settings with custom instrument libraries, GM remains crucial for ensuring basic cross-platform compatibility, particularly for educational software, mobile apps, web playback, and early video games.
