How to turn a MIDI file into sheet music
A MIDI file knows which keys are pressed and when, but not how the music is written. Turning it into sheet music means filling in the rest. Here is what happens, and how to get a clean result.
Updated 14 November 2026
What a MIDI file holds, and what it does not
A MIDI file is a list of key presses: which note, when it starts, how long it lasts and how hard it was played. It usually also holds a tempo and a time signature.
It does not hold most of what makes a page of sheet music: which hand plays what, where the first bar line goes, whether a note is F sharp or G flat, how notes are grouped and beamed. A program has to work all of that out, so the result is only as good as the file and its guesses.
What makes a good result
- A file that was made from sheet music, not played in live. Played-in notes are never exactly on the beat and need tidying up first.
- The right time signature and tempo in the file.
- The two hands on separate tracks. Then each track can become its own staff.
- One instrument. A file with drums, bass and strings needs those parts removed or written on their own staves.
Step by step
- Open the MIDI file in a program that can write sheet music.
- Choose the shortest note the piece uses (often a sixteenth). The program moves every note to the nearest such step; too fine a step gives a page full of tiny rests.
- Check the time signature and the first bar. If the piece starts on an upbeat, set a pickup bar, or every bar line ends up in the wrong place.
- Check which notes go to the upper and lower staff. Move the split point if the hands are mixed up.
- Look through the page for strange spellings, such as A sharp where B flat would be easier to read.
- Export the result as a PDF to print, or as MusicXML to edit it further in a notation program.
Common problems and their fixes
- Every bar looks one beat off: the piece starts with a pickup and the file does not say so. Set a pickup bar of the right length.
- Lots of ties and tiny rests: the step is too fine, or the file was played in live. Choose a coarser step or tidy the timing first.
- Notes in the wrong staff: move the split point, or put each hand on its own track.
- The wrong key signature: set the key by hand; the file may not say it.
When sheet music already exists
For famous pieces, sheet music that a person engraved is better than any conversion. Pieces in the public domain can be printed freely, such as the 57 pieces on our song pages, each with a free PDF.
In Cantoza
Cantoza's sheet music export turns any song in your library into a PDF, PNG or SVG, or into MusicXML to edit elsewhere, with a choice of staves, voices and paper size. The export is part of Cantoza Pro; reading along with sheet music in Practice is free.
