MIDI Lab · the MIDI lab

What your keyboard sends, and what the instrument does with it · by Shay Shezifi
‹ All labs

Play on the keyboard: every press is sent as a message, and the instrument on screen plays it.

AFTERTOUCH0
SUSTAIN · CC 64
CC 740
PROGRAM CHANGE
DAW CLOCK
PANIC
SYSEX
MIDI LEARN
PITCH
MOD
Volume
Inside this lab: screens and terms

What your keyboard sends and what the instrument does with it: Note and Velocity messages, channels, controllers and CC, Aftertouch, changing the sound, clock, SysEx, MIDI Learn, MPE and MIDI 2.0, with a live MIDI Monitor of your own controller

Basics · What MIDI is

What is MIDI · Instructions, not sound

What travels in MIDI is instructions. The sound itself is born in the instrument on the other side.

Play on the keyboard: every press is sent as a message, and the instrument on screen plays it.

Read more: MIDI: How Musical Instruments Learned to Talk to Each Other

Devices · Where the messages come from

Every message comes in from a device, and there can be several devices at once.

Play on the keyboard on screen — it is a device too. Got a controller? Click Connect.

Read more: MIDI: How Musical Instruments Learned to Talk to Each Other

Channel · Who answers the message

Every message carries a channel number, and the instrument plays its own channel only.

Play, then change Screen sends: the instrument listens to ch 1, and it will ignore everything else.

Read more: Voice Lab · The voice lab

Note · One message

Note On / Off · Press and release

Pressing a key sends one message, and releasing the key sends a second one.

Press a key and hold it, then let go: two rows in the monitor.

Read more: MIDI: How Musical Instruments Learned to Talk to Each Other

Velocity · How hard

Velocity says how hard the key was pressed, as a value between 1 and 127.

Play softly and hard, and watch the number change in the monitor.

Bytes · The message in bytes

An ordinary MIDI message is two or three numbers.

Click a row in the monitor: it opens into the numbers inside it.

Read more: MIDI: How Musical Instruments Learned to Talk to Each Other

Controllers · Continuous movement

Pitch Bend · The wheel

The wheel beside the keys bends the pitch up and down, and that is Pitch Bend.

Move the PITCH wheel and let go, or the wheel on your controller: it returns to centre by itself.

Read more: MIDI: How Musical Instruments Learned to Talk to Each Other

Control Change · Knobs and sliders

Every knob, wheel or slider sends a controller message: which one moved, and to what value.

Move the MOD wheel, and then the CC knob: two controllers, two numbers.

Switch · Switch against continuous

A pedal sends two states only: pressed, or released.

Press the pedal on screen, or a pedal connected to your controller: 127 and then 0.

Read more: CV Lab · The control voltage lab

7-bit · 128 steps

Every controller in MIDI has 128 steps only, and sometimes you hear them.

Turn the CC knob slowly: you can hear the steps.

Read more: Bits, Bytes and Sampling

Aftertouch · Pressure

Aftertouch · Press into the key

Aftertouch is pressing deeper into a key that is already down.

Got a keyboard with Aftertouch? Hold a note and press deeper. Haven’t? Drag the slider — it stands in for the press.

Program & Clock · Not notes

Program Change · Changing the sound

One message swaps the instrument’s whole sound, and that is Program Change.

Click the program numbers: the sound changes, the notes don’t.

Clock · Clock and transport

So that everything plays at the same tempo, the DAW sends out pulses: MIDI Clock.

Press Start: the sequencer starts playing along with the pulses, and the monitor fills up.

SysEx · A manufacturer’s message

Every manufacturer is allowed to invent a message of its own, for things the standard has no room for.

Send a whole sound in one message: this is a SysEx message, and it is long.

Read more: Yamaha DX7: a sine that moves a sineONSA·7 · the site’s DX7

Panic · Stuck note

A note left stuck is a release message that never arrived, and a Panic message releases them all.

Create a stuck note, then click the release message.

Learn · To map

MIDI Learn · Mapping a knob

Want a knob on your controller to turn a parameter in the instrument? You teach it, and that is MIDI Learn.

Turn Learn on, click a knob on the screen, and then move a knob on your controller.

Read more: CV Lab · The control voltage lab

Modern · What came next

MPE · Each note its own

MPE gives every note in the chord a pitch bend and a pressure of its own.

Play a chord and move the wheel, once in MIDI 1.0 and once in MPE.

MIDI 2.0 · The next generation

In MIDI 2.0 the messages are packed afresh: far more steps, and a conversation in both directions.

Switch between the two protocols, and make exactly the same movement.

Terms in this lab

MIDI · Musical Instrument Digital Interface
A digital language that instruments, computers and software use to talk to each other. It sends messages, that is, numbers, not voltages.
Device
Anything connected to the computer that sends or receives MIDI: a keyboard, a control surface, a multi-effect or a piece of software. The computer gives every device a name of its own, and they all arrive at the same software.
Port
The door MIDI messages go in or out of the computer through. Every device has a port of its own, and software chooses which port to listen to.
MIDI Channel
One of the 16 channels a message is sent on. An instrument listening to a different channel doesn’t answer the message at all.
Multitimbral
An instrument that plays a different sound on every MIDI channel, so several instruments are controlled from one source.
Note On / Note Off
The MIDI messages sent when a key is pressed and when it is released. In a synth they become the Gate.
Note Number
The note’s number in a MIDI message, between 0 and 127. 60 is middle C; some makers call it C4 and some C3, but the number sent is the same.
Velocity
How hard a key was pressed, a number from 1 to 127. It usually sets the level of the note.
Voice
A complete path in a synth that plays one note: VCO, VCF, VCA and envelope, with its own CV and gate.
Gate
A voltage with two states, low and high. It stays high as long as a key is held down, so it tells the synth when to play.
Envelope · ADSR
A voltage, triggered by the gate, that rises and falls in a set shape: Attack, Decay, Sustain and Release. It shapes how a sound starts, holds and ends.
Data Byte
A byte that carries a value in a message, between 0 and 127. After the Status byte come one or two data bytes.
Status Byte
The first byte of a message. Its upper half says which type of message it is, and its lower half gives the channel number.
Hexadecimal
Writing numbers in base 16, with the digits 0–9 and A–F. One byte is written in two digits, 0x90 for example.
Pitch Bend
A wheel on the keyboard that moves the pitch a little up or down, and springs back to the middle when you let go. In MIDI it has a message of its own, with two data bytes.
MSB / LSB
Two halves of one value: the MSB carries the coarse part and the LSB the fine one. Together they reach 14 bit, which is 16384 steps.
CC · Control Change
A MIDI message sent when a controller moves, like a knob, slider or wheel. It contains the controller number and a value from 0 to 127.
Mod Wheel
A wheel on the keyboard that stays where you left it. It usually sets the depth of an effect, like vibrato. In MIDI it is CC 1.
Expression · Expression · CC 11
A continuous controller that takes the playing level down and up inside the note, usually from a volume pedal. Its number is CC 11.
Cutoff · Cutoff Frequency
The frequency where a filter starts to cut. At this point the sound is already about 3 dB weaker, and above it the attenuation grows according to the slope. A high cutoff gives a bright sound, and a low cutoff a dull one.
MIDI Learn
A mode in which the instrument waits for a CC message in order to tie it to the parameter you chose. Once it has learned, the physical knob moves that parameter.
Sustain Pedal · CC 64
A pedal that holds the sounding notes on after you let the keys go. In MIDI it is CC 64, and a value of 64 or more counts as pressed.
Half Damper
A continuous sustain pedal that sends the whole range and not just pressed or released, like a piano pedal pressed halfway.
7-bit
The resolution of a data byte in MIDI 1.0: 128 values, from 0 to 127. This is where the steps you hear in a slow controller move come from.
Zipper Noise
The jumps you hear when a controller with 128 steps moves a parameter slowly. The receiver smooths them out, or gets a pair of bytes at a higher resolution.
MIDI 2.0
The new version of the standard: high resolution (16-bit Velocity, 32-bit controllers), controllers per note, and communication in both directions.
Aftertouch · Aftertouch · Pressure
A message the keyboard sends as long as the key is held down, following how hard you press into it. In the instrument it is usually routed to vibrato or to the Cutoff, so you can add movement without leaving the key.
Channel Aftertouch
One pressure value for the whole channel: pressing into one note moves every note that is sounding.
Poly Aftertouch · Polyphonic Aftertouch
A pressure value for each note on its own. Rare in hardware, because it needs a sensor under every key.
Vibrato
A small, periodic wobble in the pitch of a sound. It is created when an LFO moves the pitch.
Program Change
A message that changes the sound the instrument plays, by program number. It doesn’t play a note and doesn’t change one parameter: it loads a whole preset.
Bank Select
A pair of CC messages (0 and 32) sent before a Program Change, choosing which bank of 128 programs to look the number up in.
General MIDI
A standard setting which sound you get on every program number, so a MIDI file sounds similar on any instrument. It fixes the category, not the sound itself.
MIDI Clock
A pulse sent 24 times in every quarter note, locking sequencers, arpeggios and effects to one tempo.
PPQN · Pulses Per Quarter Note
How many clock pulses there are in a quarter note. In MIDI the standard is 24.
Start / Stop / Continue · Transport
Three system messages that start and stop whatever runs on the clock. Continue picks up where it stopped.
Song Position Pointer
A message saying which place in the song to jump to, in sixteenths from its beginning.
Sequencer
A unit that plays a row of steps at a steady rate. On every step it sends the note written into it.
Arpeggiator
A unit that takes a held chord apart into notes that play one after another, at the rate the clock sets.
SysEx · System Exclusive
A manufacturer’s private message, any length you like: internal parameters, a preset dump or a firmware update. An instrument from another maker doesn’t understand it.
All Notes Off · All Notes Off · Panic
A CC 123 message that releases every note on the channel. This is what a Panic button sends when a note is left stuck.
All Sound Off
A CC 120 message that silences all the sound at once, the Release tail included.
Reset All Controllers
A CC 121 message that returns the channel’s controllers to their neutral value, a Mod wheel left up for example.
MPE · MIDI Polyphonic Expression
A method inside MIDI 1.0 that gives every note a channel of its own, and with it Bend, pressure and movement for each note separately.
Slide · Slide · CC 74
A movement of the finger along the key, forwards and back. In MPE it is sent as CC 74 on that note’s channel.
Web MIDI · Web MIDI API
An interface that lets a web page receive and send MIDI. Works in Chrome, Edge and Firefox, not in Safari, and needs a secure connection (HTTPS).
UMP · Universal MIDI Packet
The way MIDI 2.0 packs messages: packets of 32, 64, 96 or 128 bits, carrying both MIDI 1.0 and MIDI 2.0.
MIDI-CI · Capability Inquiry
A conversation in both directions in which two devices find out what each of them can do, and set themselves up accordingly (Profiles and Property Exchange).
USB MIDI
MIDI over a USB cable, which powers the controller too. This is how most controllers are connected today, instead of the original DIN socket.
Bluetooth MIDI
Wireless MIDI. You pair the controller in the operating system once, and after that it shows up as an ordinary device.

All terms on the site