Note Local

MP3 to MIDI short clips: check the cut before deleting an extra note

A first MIDI note is not necessarily an extra note: a short audio clip can begin halfway through a note that started before the cut. Check the retained sound before deleting it. For a faithful transcription, keep a supported fragment. For a new phrase that should start with a fresh attack, move the cut or edit deliberately. To judge full-file versus excerpt results, restore the excerpt's original time position and compare only the shared interval.

Convert your MP3 · Decide what to keep · Inspect the original files

Updated 25 November 2026. This is a practical comparison and editing guide, not an explanation of an unisolated model cause. The worked example below reuses the two disclosed 24 November CLI runs; this rewrite is not a new conversion or a new daily publication.

The cut at 2 seconds retains the last 0.15 seconds of a C4 note that began earlier.
The retained sound and the original attack are different things. A cut can remove the attack without removing the whole note.

At the first note: decide before you delete

Listen to the excerpt's beginning alongside the same location in the full recording. Ask whether the sound is already continuing when the excerpt starts, or whether a new attack occurs inside it. A sustained fragment belongs to the retained audio even when its original attack is outside the clip. Compare it as a boundary fragment, not as another complete attack.

What you can establish from the sourceHow to judge the first eventWhat to do
The full recording shows a preceding note continuing across the cut, and that sound remains in the excerpt.The absence of its original attack inside the clip does not make the MIDI event invented.Keep it if the aim is to represent the excerpt. Label it separately when counting new attacks.
A distinct new attack occurs after the cut.Compare the MIDI event with that attack, including pitch and boundaries, rather than merging it automatically into the preceding fragment.Keep, move or remove it only after checking the corresponding source occurrence.
You cannot distinguish an overlapping tail from a new attack.The first event is unresolved. The total note count cannot settle it.Retain the original export, replay the full-source context and the clip, and postpone a destructive edit.

This is a source-content check, not a guarantee that the converter measured the fragment's pitch or end perfectly. A real retained fragment can still have an incorrect MIDI boundary.

Put both results on the same source interval

Keep the exact crop start and end with the source file. An excerpt event's local time starts from the excerpt, while the same musical occurrence in a full-file conversion is positioned relative to the original file. Add the crop start to excerpt times before deciding which events correspond. Do not compare a whole recording's count with a shorter recording's count.

  1. Mark the crop start and end on the full recording. Identify notes crossing either edge separately from attacks entirely inside the interval.
  2. Map the excerpt's starts and ends back to original time. Use the actual tempo map when converting MIDI ticks to seconds; do not treat a bar number as elapsed time.
  3. Restrict both comparisons to that common audio interval. A full-file event wholly outside it is not a missing excerpt note.
  4. For a source note crossing the right edge, compare only the retained part. The fact that the full-file note continues after the excerpt ends is not, on its own, a too-short excerpt transcription.

Generic tempo matching is already covered by Eldoraudio's BPM FAQ. The specific task here is to restore the crop's original position and distinguish boundary fragments from in-interval attacks before comparing results.

Match repeated pitches by occurrence, not just by name

If the phrase repeats a pitch, a list of pitch names loses which occurrence you are hearing. Within the common interval, follow occurrences in source order and inspect each start and end. Keep the first carried-in fragment separate from later attacks at the same pitch.

A possible match must refer to the same source occurrence. Do not pair a note with a later repetition simply to make the counts agree. If one export splits a source occurrence into several events, or no clear partner is available, mark the relationship unresolved and audition that interval. Do not turn a forced one-to-one match into a claimed accuracy result.

Matching the count or pitch set alone therefore cannot justify deleting the first event, merging repeated events, or declaring the two transcriptions equivalent.

Choose the edit from the musical goal

You want the MIDI to represent the clip as it sounds

Keep an audible carried-in note in your working copy unless its pitch or boundaries disagree with the retained source. Judge its ending against that source, not against where the note would have ended in the uncropped recording. Do not move it later merely to create an attack the clip does not contain.

You want a phrase that starts with a fresh attack

Return to the full recording and choose the intended attack as your edit boundary, or intentionally remove the unwanted fragment from a copy of the MIDI. If the audio remains unchanged, removing the MIDI fragment changes the arrangement rather than reproducing all of that audio. Keep that distinction explicit when evaluating the converter.

You are comparing converters or crop choices

Preserve both unedited exports. First align the common source interval and classify its boundary fragments. Then assess the same occurrences. A smaller file or fewer notes after a crop does not, by itself, show better transcription.

After alignment, do not fix every difference with one shift

Apply the known crop offset for comparison before considering any timing correction. If the remaining start differences vary from occurrence to occurrence, a single global shift cannot remove all of them. Replay the matched notes and edit only boundaries you can support from the source; leave uncertain matches unresolved.

In the retained example, the six complete-attack onset differences after alignment are 1, 2, −9, 1, 2 and 2 ticks. They demonstrate why one blind shift does not reconcile these outputs. They do not identify a model operation, establish an accuracy rate, or prove that all excerpts behave this way. The complete calculations remain in the evidence below.

Before saving the edited MIDI

Listen to the opening fragment, the following attack and the right-hand boundary against the same source interval. Check that an intentional deletion has not removed a supported fragment you wanted, and that a repeated pitch has not been matched to the wrong occurrence. Save the edited arrangement separately from the original transcription so you can reverse the decision.

If the original full recording or crop offset is unavailable, you can still edit the clip by ear, but you cannot use this method to assert which full-file event it came from. Record that limit instead of treating an uncertain match as evidence of a conversion error.

What is shared guidance, and what this page adds

MP3ToMIDI.org and AI-MIDI already describe selecting a section before conversion. CraftMusic already describes editing false or short notes, while Eldoraudio discusses BPM and timing alignment. Those recommendations are credited, not claimed as exclusive.

The additional reader workflow is to classify the carried-in fragment before deletion, restore the crop offset and compare only the common interval, then match repeated pitches by occurrence and boundaries. We compared those specific instructions with the public bodies and expanded FAQs of the current ten Google web results on 25 November. That supports these differences; it is not a measured percentage of originality.

Worked example, complete event tables and reproducible files

Evidence scope: the same two fresh CLI conversions originally executed on 24 November 2026 Beijing time, using production transcription operations with FFmpeg decoding. These are not online browser conversions or new runs for this rewrite. The event rows and hashes support the decisions above; their volume is not an originality score.

What the new source actually contains

We authored8seconds of44,100Hz mono16-bit PCM:12sine bursts with keys55,57,59,60,62,64,65,67,69,67,65,64. Starts are0.35+0.5i seconds for i=0…11. Each lasts0.3seconds, coefficient0.2,5ms attack and25ms release. The crop is the exact PCM interval[2.00,5.25), length3.25seconds; the verifier checks every cropped PCM byte against that slice of the full file.

The C4/key60burst starts1.85seconds and ends2.15seconds, so the cut retains0.15seconds of it. It is followed by six complete authored bursts at original2.35through4.85seconds. This corrects the tempting but wrong assumption that the crop contains only six notes. Both WAVs were separately encoded to128kbit/s MP3. The full MP3 is129,192bytes; the excerpt is53,123bytes. Independent encoding and changed model context are confounded: this is not a causal isolation experiment.

Actual exports and full event tables

BasicPitch1.0.1,TensorFlow.js WASM3.21.0,onset0.5,frame0.3,minNoteFrames11,model sample rate22,050Hz. Both model resources returnedHTTP200:174,537and742,392bytes. Full export:190bytes,12events; excerpt:139bytes,7events. Full run:2026-11-23T18:04:41.221Z; excerpt run:2026-11-23T18:04:43.979Z. Complete input/outputSHA256values are in the linked original reports, not used as proof of exclusivity.

Full export

KeyStart tickEnd tickDurationVelocity
5536860223471
57814111530170
591293161632366
601783207429174
622253255430171
642732303330174
653222351229077
673702399329177
694171445027977
674650495130177
655141543129075
645620591129173

Excerpt export

KeyStart tickEnd tickDurationVelocity
60016716763
6233463530173
64814111530174
651293160531271
671783207429177
692253254329076
672732303330176

Aligning the six complete attacks

Both exports use480PPQ and120BPM, hence960ticks/second. The2-second crop offset is1920ticks: mapped excerpt onset=local onset+1920. Below the first carried fragment is excluded from the six complete-attack comparison, not deleted from the actual output.

KeyFull startExcerpt localMapped startStart differenceEnd difference
622253334225411
642732814273422
65322212933213-913
6737021783370311
69417122534173213
6746502732465222

The six onset differences are1, 2, -9, 1, 2, 2ticks. They are not one identical constant shift. This describes these outputs only; it does not determine which internal operation caused the difference. The excerpt's first C4 starts at0ticks and ends167ticks; the original source reference explains why audio from C4exists at the crop boundary, without claiming perfect transcription of its end.

Files and reproduction

From the existing project root, run generate-excerpt-context.mjs with the FFmpeg executable path. Run the linked converter adapter with FFmpeg path, public/examples/excerpt-context, then full or excerpt as arguments. Run build-excerpt-article.mjs to independently parse all19events with midi-file and Tonejs,verify reports/hashes and the sample-for-sample PCM crop,and construct the mapping. These scripts require the project's existing dependencies. No old output was substituted as today's run.

Earlier explanation using original diagrams and synthesized English narration. The written decision guide above was expanded on 25 November; this video has not been newly uploaded.