Note Local

MP3 to MIDI: change velocity without moving the notes

Yes: change the notes’ nonzero Note On velocity after conversion, while leaving their start/end positions and the tempo map alone. Do not quantize, resize or rerun the audio converter just to make this edit. Reopen the saved MIDI and compare each note’s key,start and end—not only the note count. Velocity changes can affect an instrument’s tone as well as its level; they are not a guaranteed loudness adjustment.

Convert an MP3 · Inspect the edit verification

Execution and review disclosure: on22November2026,Beijing time,we reused our owned clean196Hz input and ran one fresh CLI transcription using the production worker operations. FFmpeg decoding replaces browser WebAudio; this is not a successful online browser run. The November23 comparison now covers the observed ten result pages and their readable answers. The whole-article30% reader-information increment remains unverified. This page is published, not accepted as passing that requirement.

Two velocity edits preserve the original note boundaries; eight changed bytes per file.
Original diagram from the retained file comparison. No audio loudness measurement is represented.
Original diagrams and synthesized English narration; a file-editing walkthrough, not a completed exclusivity audit.

Which change should you make?

To change a converted phrase’s attack strength while preserving its rhythm, edit nonzero Note On velocity and leave note start positions, Note Off positions, tempo events and PPQ unchanged. Reopen the saved file and compare each key, start tick and end tick; also compare the tempo map before claiming playback duration is preserved. A matching note count is not sufficient. Do not set a note-on velocity to zero as a soft-volume setting: zero has note-off semantics. If the goal is only overall playback level, inspect the receiving instrument’s gain instead; velocity may change timbre as well as level. This separates a performance-data edit from timing repair and from changing the original MP3.

A reversible editing procedure

  1. Save the original converter export. Import a copy into a DAW or MIDI editor without accepting automatic quantization or tempo changes unnoticed.
  2. Select the intended notes and change velocity in the editor’s velocity lane. Keep values above zero for actual note attacks. Avoid tools that combine velocity edits with humanization,timing randomization or note-length changes.
  3. Export the edited copy. Reopen both files and compare keys,onsets,ends and tempo events. If the editor rewrites track structure,compare musical event data rather than assuming a changed hash means timing changed.
  4. Audition both using the same instrument and settings. Equal velocity steps do not imply equal decibel steps; this example does not measure a synth’s loudness curve.

How to accept or reject the edited export

Use three separate verdicts: the intended velocity edit was made; the MIDI timing was preserved; the chosen instrument sounds acceptable. Passing one does not establish the other two.

  1. Compare the performance, not file identity. Match notes by track or channel, key, start and end, retaining duplicate occurrences. Compare nonzero Note On velocities separately. A DAW may rewrite metadata or track packaging, so a different file hash alone does not prove that its notes moved. Conversely, the same note count can conceal a moved, shortened or replaced note. Stop the timing-preserved claim if any intended note cannot be matched.
  2. Check the time base before accepting equal ticks. Read the saved file's PPQ and every tempo change. Equal start/end tick numbers are insufficient if the export changes the tick resolution or tempo map. When the maps differ, compare positions in seconds through the actual tempo segments; do not use one BPM for the whole file. If you cannot inspect that map, keep timing preservation unverified.
  3. Keep the acceptance conditions distinct. If keys, paired boundaries and the time base match but the intended nonzero velocities did not change, the timing check passed and the requested edit failed. If velocities changed but boundaries or playback times moved, the edit was not velocity-only. Restore the original and export again with automatic timing changes disabled rather than hiding that mismatch behind a matching count.
  4. Separate file timing from the audible tail. If the saved musical events and their times match, audition with the same receiving instrument, patch and effects. A different perceived decay does not by itself demonstrate a moved Note Off. This check does not promise that two velocity values have a particular loudness ratio or that a synthesizer renders their release identically.

These are file-comparison acceptance rules. The retained eight-note examples below demonstrate only the edits described for those particular files; they do not establish how every DAW exports or how every instrument responds.

What this new conversion and the two edits contain

The reused input is the five-second mono MP3 generated for our clipping comparison: eight196Hz sine bursts,starting0.35seconds and then every0.5seconds,each authored duration0.3seconds. This run used the clean version only. The input SHA256 is682db6a1935733d6a10be8f605a67246a1d5a28c99cdb2e32820a15647468228. Its retained fresh output is150bytes with8notes,all key55. The original conversion report records the actual run and model resources. Reusing an input does not mean reusing yesterday’s MIDI output.

We made two copies with nonzero note-on velocities set to32 and96. The patcher visits MIDI track events and changes only those data-byte locations. It leaves delta times,note numbers,note-off events,tempo,program data and chunk sizes untouched. Each copy differs from the fresh original at exactly8byte offsets. The parsed events were compared with midi-file,and a separate Tonejs parser checked all note starts,durations,keys and seconds. This proves the described edit for these retained files, not a converter accuracy rate or an exclusive reader answer.

NoteKeyStart tickEnd tickOriginal velocityEdited A/B
1553685916932 /96
25584710816732 /96
355132615387132 /96
455182820416832 /96
555226425206432 /96
655277629996932 /96
755322234786332 /96
855373539486932 /96

The retained files use480PPQ and120BPM. For this constant tempo,ticks×60/(120×480) gives seconds. Since these ticks and tempo events are unchanged,both variants retain the parsed timing. That calculation does not predict audible release tails. For files with tempo changes,compare all tempo segments rather than applying one BPM to the entire song.

What is shared public knowledge?

The MIDI Association message summary distinguishes Note On and Note Off and their data fields; the core specification overview explains MIDI’s musical/control-message scope. Tonejs MIDI exposes editable note velocity and timing data. These are credited public facts. Jukeblocks and Songscription already describe velocity/timing editing or retention; generic editability is not claimed exclusive. The November23 result-page comparison found the specific export-acceptance workflow unstated in the readable ten. This does not make the credited MIDI facts globally new or certify a whole-article percentage.

Downloads and reproduction

Run the supplied script from the project root with midi-file and@tonejs/midi installed in the existing project. It reads public/examples/velocity-edit/clean.mid,verifies its report hash,creates the two variants,and asserts every parsed event is unchanged except the selected velocities. The converter adapter records BasicPitch1.0.1,TFjsWASM3.21.0 and its thresholds. A raw hash identifies the retained file; it is not evidence of musical correctness or30% originality.

Should I lower the original MP3 volume instead?

That asks the transcriber to analyze another input. For a post-conversion velocity edit,you can keep the retained note timings and edit the MIDI directly.

Why avoid velocity zero?

A Note On with zero velocity is treated as Note Off. It is not a quiet positive attack value.

Will velocity96 be three times as loud as32?

No such result was measured. Playback response depends on the receiving instrument; neither raw velocity nor a file-size comparison supplies a loudness ratio.