tags: midi music mus-407 mus-305 electroacoustic

MIDI

Musical Instrument Digital Interface, or MIDI, is a digital [communication protocol] enabling musical systems and instruments to exchange basic information about

MIDI is not an [audio signal]

History

MIDI was created to accommodate a rapidly diversifying market of increasingly popular [analog] and hybrid [synthesizers].

Main problem: users wanted to combine sounds from different models, play multiple synths simultaneously for a richer sound, etc.

Some analog-digital sound control protocols existed at the time, but there was no industry standard for inter-device communication

MIDI was developed with coordination from multiple companies (Roland, Oberheim, Yamaha, Sequential Circuits)

MIDI messages consisted of a very small amount of binary data - an overall very small data footprint. Rather than a continuous stream of audio data, it's a relatively small handful of bytes.

MIDI is still widely used today.

Hardware

MIDI is both a protocol and a hardware specification. The original hardware specification for MIDI was the 5-pin [DIN connector].

Today, few modern devices use 5-pin connections. Instead, they rely on USB for data transmission (and often power supply).

MIDI can also be transmitted over Thunderbolt, Bluetooth, FireWire, Ethernet, etc. Examples of uses for MIDI connections include:

Devices

Musical MIDI devices generally fall into one of three categories:

Controller:

Module:

Keyboard synthesizer:

Channels & Messages

MIDI Channels

MIDI Messages

All MIDI messages fall into one of two categories.

Channel messages

Channel voice: individual musical data, e.g. note on/off, control change, pitch bend, etc.

Channel mode: general musical data, e.g. omni on/off, all notes off, mono/poly mode, etc.

System messages

System real-time: prompts all MIDI devices for a response in real-time, e.g. stop, play

System common: prompts all MIDI devices but does not require an immediate response, e.g. tune, set, timeline position cue

System exclusive: reserved for manufacturer-specific functionality

MIDI Message Format

See: [MIDI message format]

TODO: binary-decimal conversion

Other Common Message Types

control change (CC): general messages sent by controllers

pitch bend: intended to allow smooth bending of pitch for MIDI playback samples

program change: switch selected instrument

aftertouch: further expressivity by applying additional pressure after keypress

General MIDI

An additional set of specifications released in 1991 to supplement and refine the original MIDI specification.

GM-compatibility required:

MIDI and Tuning

MIDI key numbers 0-127 define 11 octaves of the 12-[tet] scale.

Every adjacent interval in TET is the same size: $2^{1/12}$ - the smallest interval in the Western [tuning-systems].