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.
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.
- A message is a few numbers, not a recording. It says which note was pressed and how hard, not how it sounded.
- The instrument that receives is what decides the sound. The very same playing can come out as a piano, a bass or a pad.
- A MIDI file is far smaller than an audio file. An audio file holds tens of thousands of samples every second; a MIDI file holds the messages alone.
- That is why you can change things after you played. A note, the tempo or the whole instrument change with no re-recording, and that is what made MIDI the working tool of every DAW.
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.
- A device is anything connected that sends MIDI. A keyboard, a control surface, a multi-effect, or software that opens a port of its own.
- The computer sees every device separately, by its own name. They all arrive at the same software, and the software decides which one to listen to.
- Some gear transmits without you touching it. A control surface transmits the state of its faders and a multi-effect transmits its preset, and that stream floods any monitor.
- A port is not a channel. The port is the door the message comes in through, and the channel is a number sitting inside the message itself.
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.
- The channel travels inside the message itself. Not a separate cable and not a separate port, but a number sitting in the first byte (the ‘message in bytes’ screen shows it).
- An instrument listens to one channel, or to all of them. In Omni it answers every channel, and then there is no separation between instruments.
- This is how several instruments are played from one controller. A Multitimbral instrument plays a different sound on every channel.
- This is the common reason for “nothing works”. The controller transmits on one channel and the instrument listens to another, and the messages go by with nobody answering.
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.
- Every note is a pair of messages. Note On opens it, and Note Off closes it. Each of them carries the note number and how hard you pressed, and the numbers themselves are taken apart on the next screen.
- A Note On with Velocity 0 is a Note Off in practice. Many controllers send it instead of Note Off, and it saves one byte on every release.
- The instrument doesn’t know how long the note will last. It opens a voice on Note On, the Gate goes up and the envelope starts; what decides the length is when the second message arrives.
- A chord is several messages, not one. Three keys = three Note On messages, one after another.
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.
- The keyboard measures time, not force. Under every key there are two contacts, and the time between them becomes the number: fast = high Velocity.
- The receiver decides what to do with the number. Usually the level, and sometimes the Cutoff, FM depth or the choice of sample layer.
- Not every keyboard sends real Velocity. Light keyboards send a fixed value (64 or 100, say), and then every note sounds the same.
- Every controller has a Velocity curve of its own. The same press on two controllers produces different numbers, which is why you set the curve on the controller and not in the instrument.
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.
- The first number says what this is. The Status byte carries the message type and the channel number, and the data bytes come after it.
- Every data number is between 0 and 127. That is the limit of Velocity, of controllers and of the note number too, and it is the subject of the 128 steps screen.
- The hex is only a short way of writing the same number. 0x90 is 144, and 0x3C is 60. Every piece of MIDI software shows you both forms.
- A note message is three numbers, and a sound change is two. Every message type has a fixed length, and that is how the receiver knows where one ends and the next begins.
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.
- Two bytes are one value. The LSB is sent first and the MSB after it, and together they are 14 bit: 0 to 16383, with the centre at 8192.
- The Bend range is not in the message. The message says only how far along the way, and the receiver decides whether that is two semitones or an octave.
- The wheel returns to centre, and the value returns to 8192. That is why one more message is sent once you let the wheel go, exactly at the centre.
- If the sound doesn’t come back to the original pitch, the wheel isn’t centring. Check in the monitor: the value sent when you let go should be 8192. A constant offset is fixed by calibrating the wheel on the controller.
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.
- The first number is an address, the second is a value. CC 1 is the Mod wheel, CC 11 is Expression, and CC 74 is Cutoff by convention.
- Most of the numbers are not defined in the MIDI standard. So the same knob can do two different things on two instruments, and that is where MIDI Learn comes from.
- One knob produces an avalanche of messages. Every small movement is a message, so a slow turn sends dozens of messages a second.
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.
- CC 64 is the sustain pedal. A value of 64 or more counts as pressed, and below that as released. This is how it is implemented in every synth on the site.
- The pedal holds whatever is sounding. A note pressed before the pedal stays on, which is why keys and then pedal works.
- A continuous pedal (Half Damper) sends the whole range. On a digital piano that is a partial damper, and on an instrument that doesn’t know about it, it is simply a switch.
- A pedal that works the other way round is a matter of polarity. If the sustain is stuck while your foot is up and releases when you press: many keyboards check the pedal’s state at power-on, so you connect it before switching on, or flip it with the switch on the pedal or with the Polarity setting on the controller.
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.
- 128 steps spread over the whole range. When one controller covers an entire filter, every step is a big jump in frequency, and that you hear. On a parameter with a small range you won’t hear a thing.
- The receiver smooths the steps out. Every modern instrument rounds the jump over a few milliseconds, and the stepping disappears.
- A pair of bytes gives 14 bit. An MSB in numbers 0–31 and its LSB in 32–63: together 16384 steps, as in Pitch Bend.
- In MIDI 2.0 the problem disappears. A controller is 32 bit, so the step is smaller than anything the ear can hear.
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.
- How to check whether your keyboard has Aftertouch. Hold a note and press deeper, to the end of the key’s travel, and watch the monitor: if Pressure messages come in, it has it. If nothing happens, it hasn’t, and that is the case on most cheap keyboards.
- The sensor sits under all the keys. It measures the pressure after the key has reached the bottom, so you need to press into the key and not hit it harder.
- Two different messages. Channel Aftertouch is one value for the whole channel, and Poly Aftertouch is a value per note.
- Poly is rare in hardware. It needs a sensor under every key, so most keyboards send Channel alone. Most of the keyboards that do support it also have a sensitivity or curve setting for the pressure.
- The pressure is not Velocity. Velocity is measured once at the start of the note, and the pressure carries on being sent the whole time the key is down.
- The receiver chooses a destination. Vibrato, the Cutoff or the level, and that is what lets you add movement without leaving the key.
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.
- On a pedalboard this is the whole of the control. A footswitch sends a Program Change, and the multi-effect swaps a whole preset. It is also the way to change a sound from the DAW in the middle of a song.
- 0–127 in the message, 1–128 on the panel. Many instruments start counting from 1, so program 12 on the panel is 11 in the message. That is where most of the “I changed the sound and got its neighbour” cases come from.
- Bank Select widens the 128 programs. You send CC 0 and CC 32 (the bank), and a Program Change after them (the number inside the bank).
- This is a message with one number only. It has no second value, so it is shorter than a note message and than a controller message.
- General MIDI fixes which sound sits on each number. That is how a MIDI file sounds similar on any instrument: number 1 is a piano, 41 a violin. It fixes a category, not a sound.
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.
- Why this matters to you. While the clock runs, the arpeggio, the synced delay and the sequencer in every instrument line up to the DAW’s tempo, with nothing set by hand.
- 24 pulses per quarter, with no number. The pulse doesn’t say which step this is, so whoever listens simply counts.
- Start, Stop and Continue are separate messages. Start begins from the beginning, and Continue picks up where it stopped.
- Song Position Pointer says where to jump to. That is how a sequencer joins in mid-song and not only at the beginning.
- This is where the need to filter was born. At tempo 120 the clock alone sends 48 messages a second, and they flood the monitor. The ones counting them are the sequencer and the arpeggiator.
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.
- It starts with 0xF0 and ends with 0xF7. The first bytes are the manufacturer’s number, and all the rest is private to the instrument.
- Whatever didn’t make it into the standard goes in here. Internal parameters, a preset dump, calibration and a firmware update.
- A syx file is exactly this. ONSA·7 on the site loads a DX7 file like that and gets 32 sounds in one message.
- An instrument from another maker ignores it. It sees a manufacturer number that isn’t its own, and skips to the end of the message.
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.
- CC 123 releases every note on the channel. As though all the keys were released, and the sound ends in its Release.
- CC 120 silences at once. The Release tail disappears too, which makes it the button for silence now.
- CC 121 returns the controllers. A Mod wheel left up or a Bend that got stuck go back to their neutral value.
- How it is avoided. A cable pulled out, a computer that froze or a channel changed while a key is down all create a stuck note, and that is why every DAW and every instrument has a Panic button.
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.
- The mapping is saved by channel and number. That way two controllers transmitting the same number on different channels stay separate.
- One controller to one parameter. When you map a CC that is already taken, its previous mapping is released.
- A knob that is still moving isn’t caught. The system waits for the controller to come to rest, so that the knob just mapped isn’t caught again by the next parameter.
- This is how it works in all 14 synths on the site. The same mechanism, the same buttons, and the mapping is kept in the browser.
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.
- The solution is a channel per note. The first note on channel 2, the second on 3 and so on, so a Bend message touches that note alone.
- Three dimensions for every note. Bend sideways, pressure (Channel Pressure) downwards, and CC 74 along the key.
- This is still MIDI 1.0. There is no new message in it, only an agreement on how to use the 16 channels.
- What you see here is a simulation. Web MIDI has MIDI 1.0 only, and a real MPE controller sends exactly these messages.
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.
- UMP instead of a stream of bytes. A packet of 32, 64, 96 or 128 bits, carrying both MIDI 1.0 and MIDI 2.0.
- The resolution: 16-bit Velocity, 32-bit controllers and pressure. The 128 steps from the 7 bit screen disappear, and a controller per note enters the standard itself.
- MIDI-CI: a conversation and not a monologue. Two devices find out what each of them can do, and set themselves up (Profiles and Property Exchange).
- Where this stands today. In the operating systems (in Windows 11 since February 2026, in macOS and in Linux) and in new instruments. Web MIDI is MIDI 1.0 only, so the monitor here is MIDI 1.0.
- How the message reaches the browser. In most cases over USB, and sometimes over Bluetooth MIDI. Web MIDI works in Chrome, Edge and Firefox, not in Safari, and needs HTTPS.
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.
Something broken, inaccurate or missing?