What Is a MIDI File?
It stores the performance, not the sound. That one fact explains almost everything else about MIDI.
Notes, Not Audio
A MIDI file (.mid) contains no sound at all. It is a list of instructions: this note started at this moment, this hard, and ended here. Something else has to turn that into audio. Compare it to a WAV. A WAV is the recording — every sample of the actual air pressure, which is why three minutes costs about 30 MB. A MIDI file of the same three minutes is often under 30 KB, because it stores the sheet music rather than the performance of it. That is the whole trade. A MIDI file is tiny and completely editable — change one note, change the tempo, swap the instrument, none of it degrades anything. And it has no fixed sound, which is the catch below.
Why the Same File Sounds Different Everywhere
Because the file only names an instrument — "channel 1 is a piano" — and the device you play it on decides what a piano sounds like. Your laptop's built-in synth, a hardware module from 1995 and a modern sample library will all give you a different piano from identical bytes. This is why MIDI files of pop songs on the web sound like a ringtone: nothing is wrong with the file, you are hearing whatever general-purpose synth your system fell back to. It is also why MIDI is still everywhere in production. The notes are separate from the sound, so a producer can write a part once and try it on twenty instruments.
What Is Actually Inside
Four kinds of message do most of the work: • Note On / Note Off — which note, and how hard (velocity, 0-127) • Control Change — knobs and pedals: modulation, sustain, volume • Program Change — switch the instrument on a channel • Tempo and time signature — how fast, and how it is counted Sixteen channels run in parallel, so one file holds a whole arrangement. Channel 10 is drums by convention, which is why a MIDI drum part opened in the wrong place turns into a piano playing nonsense. Velocity is the value worth knowing about. It is why a MIDI performance can breathe and why a badly quantised one sounds like a machine: every note at 100 is a drummer who hits everything identically.
Test Your MIDI Controller Right Here
Web MIDI is not supported in this browser.
Web MIDI works in Chrome, Edge, Opera, Brave and recent Firefox on desktop, plus Chrome on Android. Safari does not implement Web MIDI on macOS or iOS — try one of the supported browsers.
Controller working? Make a beat with it.
Padwolf is a free 16-pad beat maker that runs in the same browser tab. You'll Allow MIDI once more on the beat maker — same click, then play.
Open the beat makerEverything above is about the file. The other half of MIDI is the cable — a controller sending those same messages live. Plug in any USB MIDI keyboard or pad controller and hit Connect below. Every key press shows its note number, velocity and channel as it arrives. It is the fastest way to answer the three questions that actually come up: is the device seen at all, is it sending on the channel I expect, and is velocity getting through. Works in Chrome, Edge, Opera, Brave and Firefox 108+. Safari does not support Web MIDI on macOS or iOS.
What MIDI Cannot Do
It cannot carry audio. You cannot put a vocal, a guitar recording or a sample in a MIDI file — only instructions for notes. It has no idea what instrument you actually own. Program Change 0 means "acoustic grand piano" to a General MIDI device and means nothing in particular to a synth that ignores the convention. And it does not store your sound design. Load a MIDI file into a project and you get the notes back exactly; the reverb, the compression and the choice of sample come from wherever they came from before. That is a feature when you want to reuse a part and a surprise when you expected a finished track.
Frequently Asked Questions
A file with the extension .mid that stores musical notes and performance data — which note, when, how hard, on which channel — rather than recorded audio. Software or hardware turns those instructions into sound.
Because they store instructions rather than sound. Three minutes of MIDI is often under 30 KB where the same three minutes of WAV is around 30 MB.
The file names an instrument but does not contain one, so your device substitutes its own. A general-purpose system synth is usually what makes MIDI files sound like ringtones — the file is fine, the sound source is not.
No. MIDI carries note instructions only. Anything recorded — vocals, guitar, a sample — has to be audio, in a format like WAV or MP3.
Plug it in and use the tester on this page. Press a key and you should see the note number, velocity and channel appear live. If nothing appears, try another USB cable or port, and make sure you are not in Safari, which has no Web MIDI support.
How hard a note was struck, on a scale of 0 to 127. It is what lets a MIDI performance sound played rather than programmed — every note at the same velocity is the classic sign of a pattern nobody varied.