MP3 to MIDI: does a slide stay a slide?
Inspect the exported pitch-bend events, not just an upward pattern in the piano roll. Our new continuous C4-to-E4 MP3 glide returned three discrete MIDI notes—61, 62 and 63—and zero pitch-bend events. A separate stepped C4/E4 source returned two notes, 60 and 64, also with zero bends. In these files the continuous slide was not preserved as a MIDI bend.
Convert your MP3 · Inspect both actual event inventories
Two different source questions
We generated two new four-second mono MP3s for this test. Their tone begins at 0.300 s and lasts 2.400 s, ending at 2.700 s. Both use a 10 ms linear attack and 30 ms linear release at the outer edges; neither has a new amplitude attack at the middle. The continuous source moves linearly in semitones from MIDI 60 to 64. The step source holds pitch 60 until 1.500 s, then switches to 64 with continuous phase.
Let x be seconds since the 0.300 s start. The glide's authored pitch is 60 + 4x/2.4. With A4 = 440 Hz, f0 = 440 × 2^((60−69)/12) = 261.625565301 Hz and f1 = 440 × 2^((64−69)/12) = 329.627556913 Hz. Put k = ln(f1/f0)/2.4. Its accumulated cycles are f0 × expm1(kx)/k; integrating frequency avoids confusing frequency with phase. For the step, cycles are f0 × min(x,1.2) + f1 × max(0,x−1.2).
Each waveform is 0.2 × envelope × (sin(phase) + 0.3 sin(2phase) + 0.1 sin(3phase)). We wrote 44,100 Hz mono 16-bit WAV and separately encoded each with FFmpeg libmp3lame at 128 kbit/s. Both MP3 files are 65,244 bytes and the browser decoded each as 4.000 seconds. These are authored harmonic tones, not a singer, guitar bend or bass performance; we did not equalize RMS or test vibrato.
What the actual exported MIDI contains
| Source | Note pitches | Notes | Bend events | MIDI bytes |
|---|---|---|---|---|
| continuous-glide | 61, 62, 63 | 3 | 0 | 100 |
| two-pitch-step | 60, 64 | 2 | 0 | 89 |
These are two fresh production conversions, not MIDI synthesized to illustrate a preferred result. Each file has two raw MTrk chunks and one note-bearing track. Independently reading every raw MIDI event found zero pitch-bend messages in both files. A note at each of several integer pitches is different data from one held note with a changing bend value.
continuous-glide
| Pitch | Start tick | Length ticks | End tick | Velocity |
|---|---|---|---|---|
| 61 | 490 | 435 | 925 | 101 |
| 62 | 1059 | 446 | 1505 | 101 |
| 63 | 1638 | 737 | 2375 | 98 |
two-pitch-step
| Pitch | Start tick | Length ticks | End tick | Velocity |
|---|---|---|---|---|
| 60 | 290 | 1159 | 1449 | 102 |
| 64 | 1415 | 1205 | 2620 | 102 |
The exported time base is 480 PPQ at 120 BPM, so seconds per tick = (60/120)/480 = 1/960. The glide's first event begins at 490/960 = 0.510416667 s, lasts 435/960 = 0.453125 s, and ends at 925/960 = 0.963541667 s. Its next events begin at 1059/960 = 1.103125 s and 1638/960 = 1.706250 s. These note events are not a continuous pitch curve.
The step's first event ends at tick 290 + 1159 = 1449, or 1.509375 s. Its second event begins at tick 1415, or 1.473958333 s, before the authored switch at 1.500 s. The exported events overlap by (1449−1415)/960 = 0.035416667 s. This is an observation from this source/export pair, not a latency correction to apply to every recording.
Check a slide before changing the whole phrase
Compare a short source segment with the event data. First ask whether the sound is intended to glide continuously or move between separately articulated pitches. Then inspect whether the MIDI contains fixed-pitch note starts, pitch-bend messages, or both. Audition it with a known instrument patch: an instrument's own portamento can create a sliding sound even when the MIDI file has no bend messages. Do not use that sound alone as proof that the original curve was transcribed.
In our glide file, quantizing the three note starts changes their timing; it does not recreate the authored continuous trajectory. Likewise, transposing these notes moves the fixed pitches and does not add a bend curve. If a continuous slide is essential, retain the original audio or deliberately edit the MIDI expression against that reference. We did not measure bend-range settings, listener accuracy, real performance intent or another converter's results.
Public claims and our measured contribution
Spotify's Basic Pitch demo advertises pitch-bend detection and recommends DAW refinement. Jukeblocks' converter FAQ describes editable pitch/timing data and source-dependent results. CraftMusic's workflow describes pitch and expressive movement alongside manual correction. These pages were read on 16 November 2026. A model feature advertised by one implementation does not establish what another implementation writes into its MIDI file; our raw-event inspection answers only for the supplied exports.
General advice about cleanup is public information, not our original result. Our contribution is the exact owned glide/step construction, the fresh actual output files, their complete note and bend inventories, the measured overlap, and the verification script. We do not infer an internal detection mechanism from this comparison or report a general success rate.
Download and reproduce
- continuous-glide: MP3 · WAV · actual MIDI · conversion report data
- two-pitch-step: MP3 · WAV · actual MIDI · conversion report data
Also download input-reference.json, results.json, the input generator and the independent verifier. Run node generate-inputs.mjs PATH_TO_FFMPEG in an empty working folder. The audio generator writes its files under public/examples/pitch-glide/; the exact FFmpeg build and both input SHA256 values are in the reference.
For the actual conversions we used a noindex diagnostic sample loader because local browser control was unavailable. The buttons supply our MP3 bytes through the production file-input change handler; the production app.js and worker.js were unchanged. Convert and both exports use the real production pipeline. The evidence button reads the actual MIDI Blob and the original report Blob. JSON report formatting may be normalized during transport; the numerical fields and complete note lists were checked against the independently parsed actual MIDI bytes, whose hashes match their reports.
The report clock fields read 03:27:20.706 and 03:28:11.840 UTC on 16 November; the remote environment clock was about eight hours ahead of local collection. We retain those original fields and do not use them as synchronized wall-clock proof. The real browser run ID and local collection record are retained with our research evidence.
The MIDI SHA256 prefixes are 17a771b704808e31 and 921fa4b07521a3ef. To verify the supplied exports, place all audio, reports, MIDI, reference and results beside the verifier; install @tonejs/midi version 2.0.28 and midi-file version 1.2.4, then run node verify-results.mjs. It checks input/output hashes and bytes, every note's pitch/time/duration/velocity, and the raw bend-event inventory. The saved thresholds are onset 0.5, frame 0.3, minimum 11 frames, model sample rate 22,050 Hz, using Basic Pitch 1.0.1 and TensorFlow.js WASM 3.21.0. We did not sweep thresholds or reuse an old conversion.
See the exported event comparison
Watch the measured comparison. This narration explains the same two measured exports; it is not an additional conversion or an originality check.
Does this prove Basic Pitch cannot detect bends?
No. This test measures the actual files from this site's export pipeline. The upstream demo advertises bend detection; our files contain zero bend events.
Are the three glide notes three intended played notes?
No. The source was authored as one continuous frequency trajectory. Three is the measured export count, not musical ground truth.
Can a synth sound like it slides with no bend messages?
Yes. A patch can apply its own portamento. Inspect the MIDI data separately from the instrument's playback behavior.