# Why MIDI to Sheet Music Looks Messy (and the Fixes)

Wrong accidentals, ties everywhere, odd hand splits: what a MIDI file leaves out, which import settings help, and why MusicXML is the cleaner route.

Canonical: https://pianotosheetmusic.com/blog/midi-to-sheet-music-messy
Published: 2026-11-23 · Author: Antoine Duno (https://pianotosheetmusic.com/about)

You open a MIDI file in notation software and get a score that plays right but reads terribly: accidentals against the key, ties across every barline, a right hand that wanders into the left staff. Nothing is broken. The file never contained what the score needs.

> **Quick answer**
>
> **MIDI records a performance, not a notated score.** Pitch is **one number**, so sharp or flat has to be guessed. Timing is a stream of **time-stamped events**, so rhythm has to be **quantised** onto a grid. Hands, voices, rests and beaming are **inferred**. The fix that works most often is **not to start from MIDI at all**: open **MusicXML**, which stores the spelling, key and meter, and keep the MIDI for playback. If MIDI is all you have, set the import's **quantisation grid, voice count and hand split** deliberately, then respell and clean up by hand. To see what a MIDI file looks like as notation before you edit anything, the [MIDI to sheet music converter](/midi-to-sheet-music) shows it in your browser. Sources read 18 September 2026.

This page is about why the mess happens and what each import setting is really doing. For the wider comparison of file types, see [MIDI vs MusicXML vs PDF](/blog/midi-vs-musicxml-vs-pdf).

## Symptom, cause, fix

| What you see | What the file lacked | What helps |
|---|---|---|
| E-flats written as D-sharps, accidentals against the key | Sharp or flat: MIDI stores a pitch as one number | Set the key signature first, then respell the strays; or start from MusicXML |
| Rests and ties in odd places, tiny note values | A rhythm grid: a human never lands exactly on the beat | Coarser quantisation; a "human performance" import mode; fix by hand |
| Right hand notes on the left staff | Which hand played what | A split-staff or hand-split setting; then move notes |
| Long notes chopped up, chords with different note lengths look wrong | Voices: overlapping notes have no line structure | Allow more voices, or accept one and simplify |
| Wrong barlines, or a bar of the wrong length | Time signature and downbeat for a file recorded without a click | Give the time signature; record to a click in future |
| No dynamics, pedal marks or phrasing | Notation-level markings | Add by hand |

## Spelling: one number for two names

The W3C's MusicXML tutorial states the difference directly: "In MIDI, a pitch is represented by a single number. MusicXML divides pitch into three parts": a step (A to G), an optional alter (minus one for flat, one for sharp) and an octave. The black key above middle C is note 61 in MIDI. Whether it is C-sharp or D-flat depends on the key, and only the writer of the score knows.

So the software has to choose. It usually picks from the key signature it has assumed, and if that is wrong, or the piece modulates, you get accidentals that play correctly and look strange to a reader. The same tutorial says MusicXML holds key signatures as a circle-of-fifths value plus a mode and time signatures as separate beats and beat-type, where MIDI 1.0's version is more limited. Those are decisions a MIDI-first workflow has to remake.

## Rhythm: the grid decides everything

The MIDI Association's file overview describes Standard MIDI File events as "time-stamped for playback in the proper sequence". Nothing in that says a note is an eighth or a dotted quarter. The software has to round each note start and length to a grid and pick a note value.

MuseScore's version 3 handbook, which documents the classic import panel, describes quantisation as rounding "by some regular grid", with a maximum resolution you can choose from quarter notes down to 128th notes. Its explanation of the grid is worth reading: "the actual quantization grid size is adaptive and reduces when the note length is small", and there is an upper limit for long notes. Two other settings matter for a human recording:

- **Search tuplets**, which "attempts to detect tuplets and applies the corresponding quantization grid to the tuplet chords". Useful for real triplets, and a source of junk on straight rhythms.
- **Is human performance**, which "reduces the accuracy of MIDI-to-score conversion in favor of readability" and is meant for files with no regular grid to lean on.

Too fine a grid keeps every small timing wobble and fills the page with 32nd rests and ties. Too coarse a grid removes real notes or moves them. There is no setting that guesses right for every passage, which is why the same file can look clean in a slow ballad and terrible in a rubato bridge. Our page on MIDI quantization for notation goes through choosing the grid.

## Hands and voices

Piano MIDI usually arrives as one stream of notes with no left hand and right hand. The MuseScore 3 handbook's "Split Staff" setting is for piano: it assigns notes by pitch to the two staves, with either a constant pitch separation you choose or a floating one that follows hand width, which the handbook itself calls "sort of a guess from the program point of view". Crossing hands, a wide left-hand chord and a melody dipping below middle C all fool a pitch split.

Voices are the harder problem. In notation a voice, per MuseScore's handbook, is "a single line of music on a staff", and a second voice is how you write a held note under moving notes. A MIDI file has overlapping notes and nothing that says which line each belongs to. The import panel had a "Max. Voices" setting: "Sets maximum count of allowed musical voices". Too few and simultaneous notes of different lengths are forced into one voice; too many and the page fills with rests for voices that barely exist. The failure mode for pedalled piano is covered in [Basic Pitch output and readable scores](/blog/basic-pitch-vs-sheet-music).

## Which version of the import do you have?

Most tutorials on this were written for MuseScore 3. What we could confirm, from MuseScore's own pages:

- The MuseScore 3 handbook documents the import panel with the settings above.
- The MuseScore 4 handbook page for MIDI import says the panel is "not currently implemented".
- The current MuseScore Studio handbook says MuseScore can open MIDI files and that "you can customize various import settings" in Preferences, then Import. Its own "Working with MIDI" page is an unwritten placeholder.
- A user's feature request on MuseScore's GitHub tracker says the quantisation choice that existed in version 3 is gone from the current version. That is one user's report, not MuseScore's statement.

We have not tested every current build, so open your file and see which controls you actually get. If you find no quantisation choice, the fix is upstream: quantise in whatever recorded the MIDI, or import MusicXML instead.

## What actually fixes it

1. **Use MusicXML when it exists.** It carries spelling, clefs, key and time, so you edit notation instead of rebuilding it. MuseScore's handbook says MusicXML "faithfully reproduces the notes and instrumentation", with "some clean-up work" still usually needed for layout.
2. **Record to a click.** A MIDI file with a steady tempo quantises cleanly. One played rubato has no regular grid at all.
3. **Set the key and time signature before you judge the accidentals.** Half the "wrong" spellings vanish.
4. **Fix the hands last.** Import with a hand split, then move the handful of notes it got wrong.
5. **Accept some simplification.** A readable score is often less exact than the performance. The "human performance" wording above says as much.

## Starting from audio instead

Much of the mess comes from turning a performance into notation with settings you have to choose. A tool built for piano audio makes those choices once, in one place, and hands you the result as notation. Piano to Sheet Music takes solo piano audio and returns a grand-staff PDF, MusicXML and MIDI. Under the hood it estimates the tempo, picks a key, quantises to a sixteenth-note grid with triplets, and splits the hands with a moving threshold. It detects 4/4, 3/4 and 6/8 only.

The limits are the same class as the ones above, not gone. It writes one voice per staff, so a held bass under a moving left-hand figure is shortened to the next attack rather than written as a second voice. Spelling follows the key rather than the harmony, so expect the odd enharmonic oddity, and the MIDI it writes matches the score bar for bar and loses the rubato of your playing. That is the reason to fix in the MusicXML rather than the MIDI.

You can read what it does and does not do on the [transcription page](/transcribe), and the [full recording-to-score guide](/blog/how-to-convert-piano-recording-to-sheet-music) covers what to record. Two related topics have their own pages: sustain pedal in MIDI, and rhythm notation for players who don't read.

## Frequently asked questions

### Why does my MIDI file look so messy as sheet music?

A MIDI file records which notes sounded and when, not how they should be written. The W3C notes that MIDI stores a pitch as a single number, so sharps and flats have to be guessed, and rhythms must be rounded onto a grid. Hand splits, voices and rests are guesses too, so the score reads badly.

### Why are my accidentals wrong after importing MIDI?

Because MIDI does not say whether a black key is a sharp or a flat. The W3C MusicXML tutorial says a MIDI pitch is one number, while MusicXML splits it into step, alteration and octave. Notation software has to choose a spelling from context, and it sometimes chooses against the key. Respelling by hand is the fix.

### Is MusicXML better than MIDI for sheet music?

Yes, when you want to edit or print a score. MusicXML stores notation decisions such as note spelling, key and time signatures, which MIDI leaves out. The W3C tutorial describes MusicXML's step, alter and octave for pitch and separate beats and beat-type for time signatures. Use MIDI for playback and DAWs, MusicXML for the score.

### What does quantization do when importing MIDI?

It rounds note starts and lengths onto a rhythmic grid so they can be written as normal note values. In MuseScore 3's documented import panel you chose the finest grid, from quarter notes down to 128ths, and the grid shrank for shorter notes. A grid that is too fine gives tiny rests and ties; too coarse loses notes.

### Does MuseScore Studio still have a MIDI import panel?

The MuseScore 3 handbook documents one. The MuseScore 4 handbook page on it says the panel is not currently implemented, and the current handbook says import settings live in Preferences, then Import. Check what your installed version shows before following a tutorial written for the older panel, and prefer MusicXML if you have it.

### Can I get a clean score from a piano recording without MIDI?

Piano to Sheet Music takes an audio recording and returns a grand-staff PDF, MusicXML and MIDI, so the rhythms are already written as notation rather than raw MIDI timing. It is still an automatic draft: dense chords, heavy pedal and noisy rooms increase errors, and you should proofread it against the recording.

## Sources

- [W3C Music Notation Community Group: MusicXML 4.0 tutorial, the MIDI-compatible part of MusicXML](https://www.w3.org/2021/06/musicxml40/tutorial/midi-compatible-part/)
- [MIDI Association: About MIDI Part 4, MIDI Files](https://midi.org/about-midi-part-4midi-files)
- [MIDI Association: Standard MIDI Files specification (download requires membership, so the document itself was not read)](https://midi.org/standard-midi-files-specification)
- [MuseScore handbook (version 3): MIDI import](https://musescore.org/en/handbook/3/midi-import)
- [MuseScore handbook (version 4): MIDI import](https://musescore.org/en/handbook/4/midi-import)
- [MuseScore Studio handbook: opening and saving scores](https://handbook.musescore.org/file-management/opening-and-saving-scores)
- [MuseScore Studio handbook: working with MusicXML files](https://handbook.musescore.org/file-management/working-with-musicxml-files)
- [MuseScore Studio handbook: working with multiple voices](https://handbook.musescore.org/basics/working-with-multiple-voices)
- [MuseScore on GitHub: issue 28402, quantization on MIDI import](https://github.com/musescore/MuseScore/issues/28402)

All sources read 18 September 2026.
