🏠 Back to Home العربية
MIDI keyboard, USB stick and MIDI file on screen

MIDI Files Explained: General MIDI, USB Sticks, Organs and Editing

MIDI is one of the easiest and most useful formats in music. A whole song can fit in a few kilobytes, it plays on almost any keyboard or organ, and you can change anything in it: notes, tempo, key and instruments.

What is a MIDI file?

MIDI stands for Musical Instrument Digital Interface. A MIDI file (.mid or .midi) does not contain recorded sound. It contains instructions, like sheet music for a machine: which note to play, when it starts, how long it lasts, and how hard it was pressed. The device that plays the file decides what it sounds like.

That is why a MIDI file is tiny, and why the same file can sound like a piano on one keyboard and a full band on another. It was introduced in the early 1980s so that instruments from different makers could talk to each other, and it is still used everywhere today, from home keyboards to professional studios.

MIDI vs MP3 and WAV

People often mix these up. The difference is simple: audio files store the sound itself, MIDI stores the performance.

FeatureMIDI (.mid)MP3 / WAV
What it storesNotes, timing, instruments, controllersThe recorded sound wave
Typical size5 to 100 KB for a song3 to 50 MB for a song
SoundDepends on the device or software that plays itAlways the same
EditingChange any note, key, tempo or instrumentVery limited, quality drops
Best forBacking tracks, learning, arranging, live keyboardsListening and sharing finished recordings

What is inside a MIDI file?

MIDI Format 0, 1 and 2

Every MIDI file is saved in one of three formats. You will mostly meet the first two.

FormatHow it is builtWhen to use it
Format 0All channels merged into a single trackMost compatible. Many keyboards, organs and old players prefer it.
Format 1Several tracks played together, usually one per instrumentBest for editing and for DAWs, since each part stays separate.
Format 2Several independent songs or patterns in one fileRare. Most software does not support it.

A good habit is to edit in Format 1, then save a Format 0 copy for your keyboard or organ.

What is General MIDI (GM)?

General MIDI is a standard that says every compatible device must offer the same 128 instruments in the same order. Program 1 is Acoustic Grand Piano on every GM device, and channel 10 is always the drum kit with a standard layout. Because of this, a file made on one device sounds close to what the author intended on another.

ItemGeneral MIDI rule
Instruments128 sounds in a fixed order
DrumsChannel 10, standard drum map
Channels16, with at least 24 voices of polyphony

The 16 GM instrument families

The 128 sounds are grouped in 16 families of 8. Knowing the groups helps you find the right program number quickly. Numbers here are the usual 1 to 128 list; some software counts from 0 to 127, so subtract one there.

ProgramsFamilyProgramsFamily
1–8Piano65–72Reed (sax, oboe, clarinet)
9–16Chromatic percussion73–80Pipe (flute, recorder)
17–24Organ81–88Synth lead
25–32Guitar89–96Synth pad
33–40Bass97–104Synth effects
41–48Strings105–112Ethnic (sitar, shamisen, kalimba)
49–56Ensemble (choir, strings section)113–120Percussive
57–64Brass121–128Sound effects

The GM drum map

On channel 10, each note number is a different drum, not a pitch. These are the ones you will use most, with middle C as note 60:

NoteDrumNoteDrum
36Bass drum (kick)46Open hi-hat
38Snare49Crash cymbal
42Closed hi-hat51Ride cymbal

If your drums sound like random pitched notes, they are almost certainly on the wrong channel.

How to make a MIDI file play GM sounds

If a file sounds wrong, such as a guitar part played by a piano or drums played as notes, check these points in order:

  1. Reset the device to GM mode at the start. A GM System On message does this, and many editors can insert it.
  2. Set a program change at the beginning of every track so each channel picks the right instrument.
  3. Put drums on channel 10. If drums are on another channel, they will play as a melodic instrument.
  4. Check the volume and pan of each channel, so nothing is silent or too loud.
  5. Check the tempo at the start of the file.

With the Musician Tools MIDI tool you can open a file, listen, mute or solo each track, change a track instrument and adjust tempo and volume, then confirm the result before you save it for your keyboard.

Want to test a file right now?

🎹 Open the free MIDI Tool

Using MIDI on a USB stick with your keyboard or organ

Many keyboards, arrangers and organs can play MIDI files directly from a USB stick. This makes MIDI easy to use on stage or at home.

A quick routine that works for most people: edit your file, save it as Format 0 with a short English name, copy it to the root of a FAT32 stick, eject the stick safely, then plug it into the instrument and browse to the file.

Troubleshooting table

ProblemLikely causeFix
The instrument does not see the fileStick not FAT32, wrong folder, or long nameReformat as FAT32, move the file to the main folder, shorten the name
The file is seen but will not loadFormat 1 or 2 not supportedSave as Format 0
Drums play as pitched notesDrums are not on channel 10Move the drum track to channel 10
Wrong instrumentsMissing or wrong program changesAdd a program change at the start of each track
Some parts are silentChannel volume is 0, or the track is mutedCheck CC7 volume and the mute state
Song starts too fast or too slowTempo event is wrong or missingSet the tempo at the first beat
Notes keep ringingSustain pedal (CC64) was never releasedAdd a sustain off message at the end

Fixing and editing MIDI

Because MIDI is just data, almost everything can be changed without losing quality:

Free editors such as MuseScore, MidiEditor and Cakewalk can do these jobs, and a DAW like Reaper offers full control.

Common uses for MIDI

Quick glossary

Frequently asked questions

Is MIDI the same as MP3?

No. MP3 is recorded sound. MIDI is a list of instructions, so it is much smaller and fully editable.

Why does the same MIDI sound different on two devices?

Each device has its own sound bank. The notes are the same, but the instrument sounds are different.

Why does my keyboard or organ not show my MIDI file?

Usually the stick is not FAT32, the name is too long or has unusual symbols, the file is in the wrong folder, or the instrument needs Format 0. Fix those four points first.

Can MIDI play Arabic quarter tones?

Standard MIDI notes are semitones. Files often use pitch bend to imitate quarter tones, and some instruments have special microtonal scales. Check what your instrument supports.

What is the difference between .mid and .kar files?

A .kar file is a MIDI file that also carries lyrics for karaoke. Most players open it like a normal MIDI file, and many just need the extension renamed to .mid.

Is a MIDI file free to use?

Not always. A MIDI arrangement of a copyrighted song is still protected, even though it has no recorded sound. Use files you made yourself, or files whose licence allows your use.

If you would like to try MIDI, here is the tool.

🎹 Open the MIDI Tool

About this guide

This guide explains MIDI files for beginners and working musicians. It covers what MIDI is, General MIDI instruments, how to load MIDI files on a USB stick for keyboards and organs, and how to fix and edit them. You can also read this guide in Arabic, and try the free Musician Tools MIDI player and track editor in your browser.