Note Local

MP3 to MIDI: does the right bass pitch preserve the rhythm?

No. Correct pitches alone do not show that your converted bass rhythm is usable. In two fresh MP3 conversions, eight authored bass attacks returned 13 and 9 MIDI notes, all pitch 45 (A2). In the attack-drop case, the first seven starts were about 96–106 ms late despite near-400-ms spacing. Compare the original attacks with MIDI starts before quantizing or replacing the sound.

Convert your MP3 · Inspect the actual events

Eight source attack markers compared with thirteen steady-pitch and nine attack-drop MIDI events.
Original diagram derived from the two actual unedited MIDI files.

A worked distinction: pitch, pulse and alignment are separate checks

The compared readable pages already explain pitch/timing transcription, editable MIDI and general note cleanup; CraftMusic explicitly includes quantizing, deleting false notes and merging short notes, while Basic Pitch advertises pitch-bend detection. Those are shared information, not our claimed difference. What this worked example adds is a check that separates pitch correctness, adjacent pulse spacing and absolute attack alignment, including a counterexample to one global timing shift. Correct bass pitches can hide two different rhythm defects: extra note starts, and approximately preserved spacing with displaced attacks. Our steady-pitch export contains 13 A2 notes for eight authored attacks; the attack-drop export contains nine A2 notes. In the latter, the first seven note starts are 95.833–106.250 ms after the corresponding authored attacks, even though their six adjacent intervals are 379, 379, 390, 380, 390 and 379 ticks against a 384-tick source interval. The eighth start is only 1.042 ms late, followed by an extra start 198.958 ms after that final source attack. Therefore neither an all-A2 pitch list nor a near-400-ms repeating pattern certifies alignment, and shifting every note earlier by 100 ms would misalign that eighth event. Check attack count, absolute alignment and adjacent spacing separately before quantizing. These are bounded observations from two new conversions, not a universal correction offset or a claim about the model’s cause.

For example, an onset at 390 ticks is 390/960 = 0.406250 s. The source attack was at 0.300 s, so its displacement is (0.406250−0.300)×1000 = 106.250 ms. The next onset is at 769 ticks, making the interval (769−390)/960 = 0.394791667 s. A plausible pulse interval has not removed the initial displacement.

The last authored attack is at 3.100 s. Output event eight starts at 3.101041667 s; event nine starts at 3.298958333 s. Shifting both earlier by 100 ms makes event eight start at 3.001041667 s, which is 98.958333 ms early. This is a counterexample to applying one correction offset to the whole phrase, not a recommendation to move the first seven blindly.

What was controlled

On 18 November 2026, Beijing time, we created two new four-second mono sources and ran each once through the unchanged production converter using a public noindex fixture loader. There are eight amplitude attacks at 0.3 + 0.4k seconds for k = 0…7. Each tone lasts 0.240 seconds, leaving 0.160 seconds outside the authored envelope before the next attack. The envelope is min(1,x/0.003,(0.24−x)/0.03) × exp(−7x), with x measured since its attack.

The control stays at MIDI 45, 110 Hz. In the second source, each attack begins approximately one octave higher and falls to 110 Hz over 80 ms: p(x) = 45 + 12 × max(0,1−(x+0.5/44100)/0.08). Phase is reset at each source attack and integrated using the midpoint frequency. The waveform is 0.28 × envelope × (sin(phase)+0.4sin(2phase)+0.2sin(3phase)). Both were encoded as 44,100-Hz mono 16-bit WAV, then libmp3lame 128-kbit/s MP3; each MP3 is 65,244 bytes and decodes to 4 seconds.

This is a pitched synthetic percussive tone, not a real bass guitar, a commercial patch, a drum extractor or a human performance. One run per condition does not establish repeatability, a causal explanation, an error rate or a generally better input. In particular, nine events being closer to eight than thirteen does not prove the attack-drop source is the better musical transcription.

Every event, without quantization

Both exports use 480 PPQ with a 120-BPM tempo, giving (60/120)/480 = 1/960 second per tick. Each raw file has two MTrk chunks and one note-bearing track; every note is pitch 45 and neither file contains pitch-bend events. The control is 188 bytes; the attack-drop file is 158 bytes. End tick is start plus length.

steady-pitch: complete exported notes

EventPitchStart tickLengthEnd tickVelocity
14527920148088
24547917865749
34565820185988
445858189104749
5451048201124988
6451248490173869
7451817191200886
8452007189219649
9452197201239886
10452398178257648
11452576201277787
12452776189296549
13452966312327879

attack-drop: complete exported notes

EventPitchStart tickLengthEnd tickVelocity
14539017856882
24576918995880
3451148189133782
4451538201173981
5451918189210780
6452308178248682
7452687189287679
8452977189316659
9453167145331273

A practical three-check review

  1. Count attacks independently of pitches. Mark the starts you can actually hear or, for this fixture, the eight authored starts. Compare that count with MIDI note-on events. Do not count a correct A2 as proof of a correct boundary.
  2. Compare absolute starts before the grid. Line up the audio and MIDI on the same time origin. Here the first seven attack-drop events are compared in sequence with the first seven known source attacks. This declared pairing is an inspection of this example, not an automatic matching algorithm.
  3. Inspect spacing and the final attack separately. Near-correct intervals can coexist with a common initial delay, an abrupt change in that delay and an extra late event. Keep the original export and correct only against a reference; quantization cannot decide which extra event to delete.

What the comparison pages already disclose

Jukeblocks explains pitch/timing transcription and editable notes; CraftMusic explicitly discusses quantizing, deleting false notes and merging short notes; Basic Pitch advertises pitch-bend detection and DAW correction. Those are public concepts and are not claimed as our exclusive contribution. The new contribution here is the worked decision above: correct pitch and approximate pulse spacing can coexist with a nonuniform alignment problem, demonstrated against a known attack reference. See the per-page disclosure audit for scope and source sections, including the original Reddit result subsequently read through its public page. No comparison of these products’ actual conversion performance was run.

Reproduce and verify

Run node generate-inputs.mjs PATH_TO_FFMPEG from a clean directory to regenerate the inputs under public/examples/percussive-bass. For output verification, place the MIDI, reports, reference and results next to verify-results.mjs, install @tonejs/midi 2.0.28 and midi-file 1.2.4, and run node verify-results.mjs. The verifier independently parses all 22 notes, checks every reported pitch/time/duration/velocity and both input/output SHA256 values.

The remote text transport omitted one Base64 character from each copied MIDI payload. We retained both raw transmissions, exhaustively tested single-character insertions and accepted only the unique complete SHA256 match to each original conversion report. No note table was used to generate or repair MIDI events. The linked integrity record makes that recovery explicit. The converter itself and its report generation were unchanged.

Settings were Basic Pitch 1.0.1, TensorFlow.js WASM 3.21.0, onsetThreshold 0.5, frameThreshold 0.3, minNoteFrames 11 and modelSampleRate 22,050. No threshold sweep was performed. Hashes identify the files and do not establish musical correctness or originality.

See the measured rhythm comparison

AI-synthesized English narration and original measured graphics. This is a summary of the same two runs, not a new experiment or an originality verdict.

Are the right notes enough for a usable bass MIDI?

No. Both files contain only the intended settled pitch A2, but neither has the eight authored event boundaries. Compare starts and extra events separately.

Can I fix this by shifting every note by 100 ms?

Not in this example. The first seven attack-drop events are late by about 96–106 ms, while event eight is only 1.042 ms late. A common shift would move that event early.

Does this show that pitch drops improve conversion?

No. The two outputs differ in count and alignment, and no general quality ranking or internal cause was established.