LuminaKeysMIDI song creator and keyboard light guide Back to LuminaKeys

How to convert a MIDI file to sheet music

Converting MIDI to sheet music means turning recorded note events into readable notation. Open the .mid file in a notation or score app, quantize the timing to a note grid, confirm the key and time signature, split the notes across treble and bass staves, then export MusicXML or PDF.

Why MIDI is not already sheet music

A MIDI file is a list of performance events, not a page of music. It records which note number started, how hard, at what tick, and when it stopped. It does not record how that note should be written down.

That gap is where every conversion problem comes from. MIDI has no concept of enharmonic spelling, so note 61 could be written as C sharp or D flat and the file cannot tell you which. It has no staves, no voices, no beaming, and no idea which hand played what. Key signature and time signature exist as optional meta events that plenty of files simply omit. A converter has to guess all of it, and your job is to correct the guesses.

Step 1: Quantize the timing

Quantizing snaps note starts and lengths to a rhythmic grid so the notation engine can name them. Without it, a note played two milliseconds early becomes a tied thirty-second note across a barline, and the score turns unreadable.

Pick the smallest note value the piece actually uses, not the smallest available. Over-quantizing to 1/32 preserves every human wobble as notation clutter; under-quantizing to 1/4 flattens real rhythm. If the music swings, use a triplet grid rather than a straight one.

GridNote valueTypical use
1/4Quarter noteHymns, slow melodies, simple lead sheets
1/8Eighth noteMost pop, folk, and vocal melodies
1/16Sixteenth noteBusier pop and rock, most piano parts
1/32Thirty-second noteFast runs and written-out ornaments
Triplet 1/8Eighth-note tripletSwing, shuffle, and compound-meter feels

Sequenced or AI-generated MIDI is usually already on the grid, so quantizing is quick. MIDI captured from a live performance is where you will spend the time.

Step 2: Set the key, meter, and tempo

Set these three before you look at the noteheads, because every accidental and barline on the page depends on them. If the file carries no key signature meta event, the converter defaults to C major and you get a page covered in accidentals.

Choosing the right key fixes the spelling problem too. Once the score knows it is in E flat major, the converter can spell that black key as E flat instead of D sharp. Check the time signature against where the strong beats fall: a piece written in 6/8 will look wrong and read worse if it is imported as 3/4.

Step 3: Split the parts into staves

Decide which notes belong on which staff. A single-track piano MIDI file arrives as one undifferentiated stream, and notation software usually splits it at a fixed pitch such as middle C.

That default breaks whenever the left hand crosses above the split point or the right hand reaches below it. If your file has separate tracks per instrument or per hand, use them instead of a pitch split, since track assignments are far more reliable than a pitch threshold.

Step 4: Export MusicXML or PDF

Export MusicXML if the score is going into another notation program, and PDF if it is going to a music stand or a printer. MusicXML keeps the notation semantics editable, while PDF freezes the layout exactly as you see it.

Re-exporting to MIDI at this point is also fine, but remember it discards everything you just fixed: the spelling, the staves, the slurs, and the layout all disappear again. See MIDI vs MusicXML vs ABC notation for what each format keeps and what it throws away.

Common problems and quick fixes

Work in that order. Timing first, then key and meter, then staves, then cosmetics. Fixing beams before fixing quantization means doing the beams twice.

Doing this on a phone

Phone-sized conversion works best when the MIDI is already clean, because fine-grained quantization editing is awkward on a small screen. Generated or sequenced material converts in one pass; a raw live take usually deserves a desktop editor.

Related reading: how to play MIDI files on Android.

LuminaKeys

LuminaKeys plays MIDI songs on Android while lighting the matching keys on your MIDI keyboard in real time, and exports your song library as MIDI, MusicXML, or PDF sheet music for use in other DAWs and apps.