Sample rate does not make the conversion better. It moves the floor.

On a machine whose audio device runs at 48 kHz, every low note has to sit slightly higher before this converter will write it. Measured on the same detection code at both rates: with eight harmonics the lowest note that survives goes from 116.5 Hz to 121.5 Hz, with five harmonics 122 Hz to 124.5 Hz, with three 132.5 Hz to 135 Hz, and with a pure sine 162.5 Hz to 171 Hz. The high end drops too, from 1,422.58 Hz to 1,411.76 Hz.

That is the whole explanation for a conversion that changes between two computers. A 120 Hz note with eight harmonics becomes B2 on a 44.1 kHz laptop and returns no note at all on a 48 kHz one — the file is identical, the machine is not.

Select a recording to create a MIDI draft locally.

The selected audio is decoded in your browser; it is not uploaded to a server.

The mechanism

The analysis window is 1,024 samples, not 23 milliseconds.

Everything below follows from three lines of converter.js. The frame length is Math.min(8192, 2 ** Math.floor(Math.log2(sampleRate / 27))), which evaluates to 1,024 at both 44,100 and 48,000 Hz — a power of two that does not change between the two rates. The hop is a quarter of that, 256 samples in both. But the lag search is a range of samples: it starts at Math.floor(sampleRate / 1400) and ends at Math.min(Math.floor(sampleRate / 55), frameSize / 2).

Those two bounds scale with the rate, so the band of frequencies the detector can report shifts with it:

Quantity44,100 Hz48,000 Hz
Frame length1,024 samples = 23.2 ms1,024 samples = 21.3 ms
Hop256 samples = 5.8 ms256 samples = 5.3 ms
Shortest lag31 samples = 1,422.58 Hz34 samples = 1,411.76 Hz
Longest lag512 samples = 86.13 Hz512 samples = 93.75 Hz
Reportable band86.13 – 1,422.58 Hz93.75 – 1,411.76 Hz

Two things follow. The band is narrower at 48 kHz at both ends, because the longest lag is capped at 512 samples either way while a sample is now shorter. And the whole low end is a little harder to reach, because a frame holds 2.56 periods of a 120 Hz tone instead of 2.79 — fewer cycles for the same correlation arithmetic to lock onto.

Source: code facts from converter.js (sha256 1d56a6b6a82f7ba9, 7,273 bytes). The frequencies are arithmetic on those sample counts, not measurements — the measurements start in the next table.

Measured

Four recipes, four floors, all of them higher at 48 kHz.

I generated one note at a time — mono, harmonics weighted 1/k up to the count in the first column and normalised so the peak is 0.32, 80 ms fades at both edges, 0.9 s of tone with 0.35 s of silence in front — and scanned upward in 0.5 Hz steps at each sample rate. A frequency counts as reached when the converter returns exactly one note whose pitch matches the input's rounded MIDI number.

Harmonic recipe44.1 kHz floor48 kHz floorShift
Eight harmonics (1/k to k=8)116.5 Hz121.5 Hz+5.0 Hz
Five harmonics122.0 Hz124.5 Hz+2.5 Hz
Three harmonics132.5 Hz135.0 Hz+2.5 Hz
Pure sine162.5 Hz171.0 Hz+8.5 Hz

The ordering is the same at both rates — more harmonics, lower floor — which is the finding on the measured accuracy page, where the same recipe ladder was swept at 44.1 kHz only. What changes here is the vertical offset: a pure sine loses 8.5 Hz of range at the switch to 48 kHz, almost twice what a five- or three-harmonic tone loses.

Test conditions. Signals synthesised in code, not recorded; no noise, no decay, no vibrato. One note per run, sensitivity at Balanced (level 2), detector taken directly from the live converter.js rather than re-implemented. Runs at 44,100 and 48,000 Hz differ only in the rate handed to that detector. Full tables in samplerate-2026-11-15.txt.

Provenance: harness detector-from-live.js@cecdb2c0fb5e48a9 driving run-samplerate.js@13dc43fa3534442c · fixture synth-samplerate-floors-v1 · detector 77a9dd6b9f15af65 (baseline 1d56a6b6a82f7ba9) · re-run 2026-11-16. All four floors are identical under both detectors; the 44.1 kHz fine sweep improved at 178, 185 and 200 Hz, and the 48 kHz side did not move. Raw output in localmidi-ops/remeasure-20261116/.

The case you can hear

Two notes that exist on one machine and not on the other.

Take frequencies just under the 48 kHz floors and run them through both rates. The note is either there or it is not; there is no partial result to argue with.

Input44.1 kHz output48 kHz output
120 Hz, eight harmonicsB2no notes
123.47 Hz, five harmonicsB2, B2no notes
116.5 Hz, eight harmonicsA#2, A#2no notes
121.5 Hz, eight harmonicsB2B2 ×4
171 Hz, pure sineF3F3
162.5 Hz, pure sineE3no notes

Four of those rows are a note that vanishes, and one is the exact edge: 121.5 Hz is the first frequency at eight harmonics that comes back at the right pitch on a 48 kHz run — 121.4 Hz does return notes, but written as B2 instead of the A#2 it rounds to. Every pitch that does come back is correct — this is not the detector guessing wrong, it is the detector declining. The counts differ between rows because frames are grouped into notes, and a run at the edge of the floor can split into two or four notes of the same pitch instead of one.

In a phrase the loss is quiet rather than dramatic: one note in a bass line is simply absent, and a run of low notes can collapse into a single repeated pitch. That second shape is worth knowing about, because it does not look like a floor at all.

What a dropped low note looks like

Below the floor it does not come back wrong. It comes back as F6, or not at all.

When the true period is out of range, the correlation sum is largest at the shortest lag the detector is allowed to try — the arithmetic rewards short lags because their windows overlap more samples. At 44.1 kHz that is 31 samples, 1,422.58 Hz, which rounds to MIDI 89, F6. At 48 kHz it is 34 samples, 1,411.76 Hz, which also rounds to MIDI 89. Same written note, different real frequency.

Sweeping 84 to 102 Hz in 1 Hz steps with a three-harmonic tone, every input frequency at both rates returned F6 and nothing else. So a low bassline does not degrade into an approximation of itself; it arrives as one repeated high note, and the pitch of that note tells you which rate the conversion ran at.

Provenance: harness remeasure-claims.js@180d60203e0372de · fixture synth-bass-sweep-v1 · detector 77a9dd6b9f15af65 (baseline 1d56a6b6a82f7ba9) · re-run 2026-11-16. All 19 frequencies return F6 under both detectors.

Between there and the floor the behaviour is mixed rather than monotone: in the same sweep some inputs returned nothing at all, and one 185 Hz tone came back a semitone low at 48 kHz while 44.1 kHz got it right. Those are lag-quantisation effects, not a second floor, and they are why the tables above quote a first reached frequency rather than a smooth curve.

Your machine

Which rate is being used, and why the file itself does not decide it.

The detector reads buffer.sampleRate from the decoded audio, and that buffer carries the rate of the AudioContext that decoded it — a browser decodes to the context's rate and resamples the file on the way in. The practical consequence is that a 44.1 kHz WAV and a 48 kHz WAV land in the same place on the same machine, while the same WAV on two machines can land differently.

To see what your own browser is doing, open the console on any page of this site and run new AudioContext().sampleRate. Windows machines with a headset or an interface in the default playback role often report 48,000; built-in audio on many laptops reports 44,100. That single number predicts whether the notes at 116–171 Hz in the tables above will be written.

Code fact, not a measurement. That the context rate governs the decoded buffer is the Web Audio specification's behaviour, and it is visible in this site's source (const sampleRate = buffer.sampleRate). All numbers elsewhere on this page are measurements from the live detector at both rates.

What actually helps

Four things worth doing, in order.

  • Do not compare two machines at the bottom of the range. Between roughly 116 Hz and 171 Hz — depending on how many harmonics the source has — the same file legitimately produces different notes. Below 116 Hz both rates lose the pitch in the same way.
  • Record the low part an octave up if it matters. The floor is set by the lag range, not by the instrument, so a bass line played an octave higher converts and can be transposed afterwards.
  • Give the detector harmonics rather than a pure tone. A sine loses 8.5 Hz of range to the rate change; a five-harmonic tone loses 2.5 Hz. Real instruments sit on the harmonic side of that line; synthetic sub-bass sits on the wrong side of it.
  • Leave the sensitivity slider out of it. It changes the loudness and duration gates, not the lag range, so it does not move any floor in these tables. That is on the missing-notes page, which covers notes that are too short or too quiet rather than too low.

If the pitch that comes back is wrong rather than absent, that is a different failure with a different fix — see wrong notes. If the note is absent and it is not near a floor, length is the more likely cause.

FAQ

Sample rate questions

Does converting at 48 kHz produce a more accurate MIDI file?

No. Measured on the same detector, every low-note floor moves up at 48 kHz — by 2.5 Hz with three or five harmonics, 5.0 Hz with eight, 8.5 Hz for a pure sine — and the top of the range falls from 1,422.58 Hz to 1,411.76 Hz. Nothing measured improved.

Why did the same WAV convert differently on my other computer?

Because the analysis window is 1,024 samples, not a fixed slice of time. At 48 kHz that covers 21.3 ms instead of 23.2 ms and the lag search starts at 34 samples instead of 31, so notes sitting near the low floor can drop out entirely while everything above them is unchanged.

Can I choose the sample rate in the browser?

Not through this page. The browser uses the rate of the audio device in the default playback role; new AudioContext().sampleRate reports it. Changing the device or its rate in the operating system changes the number the detector works with.

My bass note came back as one repeated high note. What happened?

The true period was out of range, so the shortest allowed lag won the correlation and was written as MIDI 89, F6. In a 1 Hz sweep from 84 to 102 Hz with a three-harmonic tone, every input frequency returned F6 at both 44.1 and 48 kHz.