Note Local

MP3 to MIDI: when to repair notes and when to replace a phrase

Repair an MP3-to-MIDI phrase while you can match each proposed change to the source; replace that phrase separately when you can transcribe the source but cannot reliably map the existing events. Keep the accepted sections. If the source itself is uncertain, stop and obtain a clearer reference instead of guessing through either method.

Convert your audio · Plan a phrase trial · Check the controlled example

Decide on one phrase, not the whole export

When a converted phrase is taking repeated guesses to repair, keep the untouched export and test a replacement on a copy of that phrase only. Before editing, write down which source attacks and pitches you can actually identify, and mark the neighboring notes that must remain unchanged. Keep the repair if each proposed edit has an identifiable source reference. Switch to a separate manual replacement when you can transcribe the source phrase but cannot map the existing events to it reliably. Stop both approaches when the source itself is ambiguous: changing methods does not create a trustworthy reference. After replacement, compare the notes just outside both boundaries as well as the phrase itself; reject or undo the trial if it moves accepted notes, changes their durations, or overlaps them unintentionally. Do not use a universal number of edits or minutes as the cutoff; none was measured here.

Write the acceptance check before making edits

  1. Save the original MIDI export and make a comparison copy. Identify the source interval and target part. If you cannot tell which part supplies an attack, leave that attack unresolved.
  2. List the attacks, pitches and note endings you can identify in that interval. A familiar melody is not enough to justify every added event. Separate confirmed observations from unresolved ones.
  3. Choose boundaries that also expose the neighboring notes. A note may start before the phrase and end inside it; retain that fact instead of selecting by start position alone.
  4. Choose the trial: repair identifiable wrong events, or build a separate replacement from a source phrase you can transcribe. Do not edit the only copy or overwrite the accepted sections.
  5. Compare the candidate and original against the same source interval. Check the neighboring note starts, ends, pitch and velocity before accepting the replacement.

When replacing helps, and when to stop

A replacement trial is useful when the musical reference is clear but the current events are no longer a reliable scaffold. It is not evidence that drawing notes is always faster. We have not timed a musician repairing versus transcribing, so this page gives no universal edit-count limit, minute limit or time-saving claim.

Stop when the replacement requires the same unsupported guesses as the repair. Obtain a cleaner isolated source, check an authoritative score if available, or seek a musician who can establish the phrase. These are alternative reference routes, not promises that source separation or outside transcription will be correct.

Reject the trial if it alters accepted material outside the intended region. Compare overlapping note tails and notes on both sides. If the phrase cannot be isolated without changing its context, widen the review region deliberately and recheck the newly included notes; do not silently treat those notes as already accepted.

Controlled preservation check: change one phrase, keep the rest

Our fresh CLI conversion produced eight events from an explicitly reused owned five-second MP3. For a reproducible edit-control demonstration we treated the first four events as the preservation reference, then deliberately moved the later four up five semitones and later by60ticks. This is an authored control, not an error observed in the converter or a DAW.

The script then reverses those known changes on the later phrase. It checks that all eight restored event records equal the original export, and that the first four records remained identical in the altered file. It does not perform manual transcription or prove that the original export is musically correct. A real replacement still needs an independent source check.

Measured note events across the fresh export, deliberate later-phrase edit and restored control; the first four remain unchanged
Original event plot from this execution. The changed region is deliberately authored; the restoration verifies preservation only.
EventFresh: pitch / start–end tickDeliberate controlRestored
160 / 290–59160 / 290–59160 / 290–591
262 / 769–107062 / 769–107062 / 769–1070
364 / 1248–154964 / 1248–154964 / 1248–1549
465 / 1728–201965 / 1728–201965 / 1728–2019
567 / 2208–249872 / 2268–255867 / 2208–2498
665 / 2687–297770 / 2747–303765 / 2687–2977
764 / 3167–347969 / 3227–353964 / 3167–3479
862 / 3657–393767 / 3717–399762 / 3657–3937

At the known480PPQ and120BPM in these files,60ticks × (60seconds /120beats) /480ticks =0.0625seconds. This conversion applies to this fixed-tempo fixture; it is not a generic tempo-map calculation. All files have eight note events: equal counts alone do not show that the phrase was preserved.

Download and reproduce the preservation check

Owned source MP3 · Fresh actual MIDI · Deliberately altered copy · Restored control · Original conversion report · Independent verification · Control reproduction script · Conversion adapter

Execution, limits and full hashes

Fresh run2026-11-28T18:00:07.833Z to2026-11-28T18:00:10.723ZUTC,29November Beijing. BasicPitch1.0.1 / TensorFlow.jsWASM3.21.0, onset0.5/frame0.3/minimum11frames,22050Hz. CLI fallback with FFmpeg decoding replaces browser WebAudio; no online browser execution is claimed. Input SHA2569cea69dc4d2cc11556a398e64502777e0f316d44901f8c514ee656aea6804c7b; fresh MIDI SHA256ac40958097bfa192129ee9b9150ead87f56fbb84bf53b97464eebfa566d94cf1; altereddac5a83c77d18c76c331d3c385cafb5f651811d8ac87a20e7a2cbb55696fde95; restoredac40958097bfa192129ee9b9150ead87f56fbb84bf53b97464eebfa566d94cf1. Reused input and deterministic equal output hashes are disclosed; the report is from this fresh run. The reproduction script uses midi-file and @tonejs/midi, with files in public/examples/phrase-replacement relative to the working directory. It independently checks every pitch, start, end and raw velocity. No cause, accuracy or editing-speed experiment is implied.

Shared guidance, credited separately

Jukeblocks describes editing transcribed notes and warns that dense mixes need cleanup. Songscription distinguishes transcription from arrangement and separates instrument parts. AI-MIDI recommends clear targets and inspecting mixed parts separately. These are shared concepts, not our exclusive contribution. The Ableton MIDI editing manual documents note editing; this guide adds a proposed decision-and-preservation workflow, not a new editor feature or a measured ranking claim.

Reader questions

Must I replace the entire song if one phrase is uncertain?

No. Preserve accepted sections and test the identifiable phrase on a copy. Review notes crossing its boundaries before keeping the trial.

How many edits are too many?

No universal number was measured here. The stopping condition is loss of a reliable source reference, not a fabricated threshold.

Does drawing a replacement solve an unclear source?

No. If you cannot establish the intended attacks and pitches, both repair and replacement remain guesses. Obtain a clearer reference.