Register limits
Audio to MIDI: above 1,423 Hz, the note divides.
The converter reports the note divided by a whole number, and the divisor grows as you climb. C8 comes back as C6 — two octaves, not one.
The selected audio is decoded in your browser; it is not uploaded to a server.
The standard advice for notes above a converter’s search ceiling is to select them and transpose up twelve semitones. Measured against the detector on this site, that advice holds for eleven semitones of the keyboard, from G6 up to F7, and is wrong everywhere above it. The reported note is the played note divided by a whole number, and the divisor steps up as the note rises. Two octaves low, then two and a bit, then three, then more. The top of the piano is not one octave error; it is a division, and the number you divide by is what changes.
The reason follows from the arithmetic rather than from anything about the sound. The detector never measures a frequency. It scores each candidate period by how well the signal matches a copy of itself shifted by that many samples, and keeps the highest score. A period that divides evenly into the true one still lines up every time the copy is shifted, so it scores well — and it leaves more of the window to sum over, which the un-normalised sum rewards. That is why a fraction of the period can beat the period itself.
The mechanism
One window holds 1.5 to 33 periods, and the divisor is which whole number fits.
Start with the two hard limits, both arithmetic rather than measured. The shortest lag the loop may test is floor(44100 ÷ 1400) = 31 samples. The longest is min(floor(44100 ÷ 55), 1024 ÷ 2) = 512, because the frame is 1,024 samples. Divide the sample rate by those and the reportable band is 86.13 Hz to 1,422.58 Hz.
Now take a note above the ceiling. Its true period is shorter than 31 samples, so the loop cannot score it. What the loop can score is a multiple of that period — shift by two periods and the copy still lines up, shift by three and it still lines up. Each multiple that fits inside the searchable range is a candidate, and the winner is the one the un-normalised sum likes best. Divide the true period once and you are at f ÷ 2; twice and you are at f ÷ 3; and so on.
Which divisor wins is not simply the first one that fits. Measured across the whole range, the divisor steps: 2, 3, 4, 5, then 7 — 6 is tested in the sweep but never produces a note — then 10, and above that it scatters: 11, 14, 15, 18, 19, 22, 23, and 33 at the very top. This is the part that makes a tidy table impossible. The divisor is predictable in kind, not in sequence.
| Divisor | Keys | Played | Reported | Error | No note |
|---|---|---|---|---|---|
| 2 | 11 | 1,568 – 2,794 Hz | 788 – 1,378 Hz | −12 | 0 |
| 3 | 3 | 2,960 – 3,322 Hz | 980 – 1,103 Hz | −19 | 0 |
| 4 | 4 | 3,520 – 4,435 Hz | 882 – 1,103 Hz | −24 | 0 |
| 5 | 5 | 3,951 – 6,645 Hz | 938 – 1,336 Hz | −28 | 2 |
| 6 | 1 | 4,978 Hz | — | — | 1 |
| 7 | 5 | 5,920 – 9,956 Hz | 1,131 – 1,423 Hz | −34 | 1 |
| 8 | 2 | 5,588 – 7,040 Hz | — | — | 2 |
| 10 | 3 | 7,459 – 12,544 Hz | 938 – 1,260 Hz | −40 | 1 |
| 11 | 2 | 10,548 – 11,840 Hz | 959 – 1,076 Hz | −42 | 0 |
| 14 | 2 | 15,804 – 19,912 Hz | 1,131 – 1,423 Hz | −46 | 0 |
| 15 | 1 | 14,080 Hz | 938 Hz | −47 | 0 |
| 18 | 1 | 11,175 Hz | 621 Hz | −50 | 0 |
| 19 | 2 | 13,290 – 16,744 Hz | 700 – 882 Hz | −51 | 0 |
| 22 | 1 | 14,917 Hz | 678 Hz | −54 | 0 |
| 23 | 1 | 18,795 Hz | 817 Hz | −54 | 0 |
| 33 | 1 | 17,740 Hz | 538 Hz | −61 | 0 |
Read the error column. It is constant inside each row, and that constancy is the result: the missing semitones are 1200 × log₂(n), rounded to the nearest key. The rounding is why the numbers sit a few cents off the ideal ratio — a MIDI note is a whole number, so what you see on the keyboard is the nearest key to the reported frequency, not the frequency itself. The semitone count is the one that matters, because it is what you would type into a transpose field.
That is the useful half of the result. Given the played frequency you can predict which key comes back, because the divisor is a whole number and the conversion to a key is a rounding. You do not need to know anything about the waveform beyond the fact that it repeats — and the table lets you read the transpose amount off directly instead of measuring it.
The measurement
Forty-five semitones, twelve starting phases each, one stable answer.
I fed the production detector one pure sine at a time from G6 (1,568 Hz) to D♯10 (19,912 Hz), twelve random starting phases per note. The phase sweep is not decoration. A single-phase test cannot separate a stable behaviour from an artefact of where the waveform begins, and the whole claim here is about a sustained tone. On every note that produced a note at all, all twelve phases agreed: one pitch, no scatter. So the divisor is a property of the algorithm.
| Played | Frequency | Winning lag | Reported frequency | Came back as | Semitones |
|---|---|---|---|---|---|
| G6 | 1,568.0 Hz | 56 | 787.50 Hz | G5 | −12 |
| B6 | 1,975.5 Hz | 45 | 980.00 Hz | B5 | −12 |
| F7 | 2,793.8 Hz | 32 | 1,378.13 Hz | F6 | −12 |
| F♯7 | 2,960.0 Hz | 45 | 980.00 Hz | B5 | −19 |
| A7 | 3,520.0 Hz | 50 | 882.00 Hz | A5 | −24 |
| D8 | 4,698.6 Hz | 47 | 938.30 Hz | A♯5 | −28 |
| G8 | 6,271.9 Hz | 35 | 1,260.00 Hz | D♯6 | −28 |
| C9 | 8,372.0 Hz | 37 | 1,191.89 Hz | D6 | −34 |
| F9 | 11,175.3 Hz | 71 | 621.13 Hz | D♯5 | −50 |
| D♯10 | 19,912.1 Hz | 31 | 1,422.58 Hz | F6 | −46 |
The reported frequencies all sit low in the band — between 538 and 1,423 Hz — while the played frequency climbs from 1,568 to 19,912 Hz. That is the part worth sitting with. The output does not track the input at any offset. It stays pinned in a narrow window near the bottom of the searchable range while the input travels three and a half octaves, which is why no single transposition fixes a passage that spans the high register.
Seven notes returned nothing at all: B7 (3,951 Hz), D♯8, E8, F8, F♯8, A8 and A♯8 all produced an empty result. The interface says “No clear notes were detected” and writes no file. That is not the same failure as a wrong note — a wrong note can be transposed back, an absent note cannot be recovered from the output — and I do not have an explanation for why those seven and not their neighbours. I am reporting it rather than explaining it.
The top of the piano
Five of the top thirteen keys come back an octave low. Eight do not.
This matters most on the instrument that reaches the ceiling. A piano ends at C8, 4,186 Hz, nearly three times the ceiling. The instruction to transpose the top octave up twelve semitones is right for the bottom of that octave and wrong for the top of it — and the site’s own piano page carried that instruction until this measurement.
| Key | Frequency | Came back as | Transpose by |
|---|---|---|---|
| C7 | 2,093.0 Hz | C6 | +12 |
| C♯7 | 2,217.5 Hz | C♯6 | +12 |
| D7 | 2,349.3 Hz | no note | — |
| D♯7 | 2,489.0 Hz | D♯6 | +12 |
| E7 | 2,637.0 Hz | no note | — |
| F7 | 2,793.8 Hz | A♯5 | +19 |
| F♯7 | 2,960.0 Hz | B5 | +19 |
| G7 | 3,136.0 Hz | C6 | +19 |
| G♯7 | 3,322.4 Hz | G♯5 | +24 |
| A7 | 3,520.0 Hz | A5 | +24 |
| A♯7 | 3,729.3 Hz | F♯5 | +28 |
| B7 | 3,951.1 Hz | no note | — |
| C8 | 4,186.0 Hz | C6 | +24 |
These were run as piano-like tones rather than sines: sixteen partials stretched by fₔ = h·f₀·√(1 + B·h²) with B = 4×10⁻⁴, decaying over 1.2 seconds. That is closer to a string than a sine is, and the divisors came out the same, so the result is not an artefact of testing a waveform no instrument produces. Two keys, D7 and E7, gave a note as a sine and nothing as a piano tone — the absent-note failure appearing again.
So the instruction has to change. Do not select everything above F♯6 and transpose up twelve. Select the notes that came back an octave low, and check the top of the keyboard key by key, because the ones near C8 need twenty-four semitones rather than twelve, and three of the thirteen are not there at all.
Working around it
Move the note down before converting, not up after.
Transposing the finished MIDI works if you know the divisor, and you can read the divisor off the tables. But it assumes you know which divisor each note landed on, and if the converter reported an absent note there is nothing to transpose. Moving the source down before converting is more robust, because it puts the note back inside the band where the detector reports its true frequency.
The cost of that workaround is real. An octave down lands the note in a register where the detector’s low-end behaviour takes over — the collapse that makes bass notes come back as a single wrong pitch. So the transposition has to be big enough to clear the ceiling and small enough not to hit the floor. For a 4,186 Hz note, down two octaves lands at 1,046 Hz, comfortably inside the 86 to 1,423 Hz band. Down one octave lands at 2,093 Hz, still above the ceiling, so it does not help. Down three octaves lands at 523 Hz, which is fine for the floor but starts to lose the brightness that made the note identifiable.
Nothing is lost by moving the note after conversion instead: velocity survives a MIDI transpose, and pitch changes by a known amount. The reason to prefer converting low is that an absent note cannot be recovered, and the low register produces far fewer of them than the high register does.
Limits
What this measurement does not cover.
The limit of this test. Every number here is synthetic: a pure sine, or a sixteen-partial piano model, sustained for 1.2 to 1.5 seconds at a fixed peak of 0.5. Real high notes decay in a few hundred milliseconds, arrive with room noise, and on a real recording the partials that survive are not the ones a model predicts. Do not carry these divisors over to a specific recording without checking it. The shape of the result — a whole-number divisor whose value grows with the note — follows from the lag arithmetic and will not change. Which divisor you get for a given key can, because a different partial balance changes which lag wins.
The divisor sequence is the weakest part of the result. It runs 2, 3, 4, 5, 7, 10, 14, 33 across the sweep with gaps, and I have not derived a rule for it. A model of the correlation sum predicts which lag wins for 83 percent of the frequencies I tested and misses the rest, mostly at the transitions between one divisor and the next. Treat the divisor column as measured data for these keys, not as a formula you can apply to a frequency I did not test.
I also did not test what happens when a high note and a low note sound together, which is the ordinary case in piano music, nor what a chord in the top octave produces. Those are separate measurements and this page makes no claims about them. The seven absent notes between 3,951 Hz and 7,459 Hz in particular deserve their own sweep.
The band limits quoted throughout are arithmetic derived from the shipped constants, not measured at the edges of audibility. They are exact for the current detector and will move if the frame size or the search band changes, which is why every table here prints the detector’s hash.
Questions
High notes and this converter
Why does my high note come back as a different note rather than as silence?
Because the detector always reports the best-scoring period it is allowed to test, and a fraction of the true period scores well. A lag equal to half the true period still correlates strongly — every second cycle lines up — and it leaves twice as much window to sum over, which the un-normalised sum rewards. Silence only happens when no period in the allowed range holds its lead long enough to clear the minimum-duration gate.
I transposed the top octave up twelve semitones and it is still wrong. Why?
Because only five of the thirteen keys in the top octave need twelve semitones. C7, C♯7 and D♯7 need twelve; F7, F♯7 and G7 need nineteen; G♯7, A7 and C8 need twenty-four; A♯7 needs twenty-eight. Three keys produced no note at all and cannot be fixed by transposing. Check each key against the table instead of applying one offset to the whole selection.
Is this the same problem as low bass notes coming back wrong?
No, and the two should be kept apart. Low notes collapse because the shortest period the loop can test is too long to catch them; high notes collapse because the shortest period is too short and a fraction of the true period wins instead. Both can produce MIDI 89, but for opposite reasons, and the same fix does not address both. Transposing up fixes the low case and makes this one worse.
Does converting at 88.2 kHz help?
No. The frame size and the lag range both double, so the ratio between them — which is what sets the divisor — stays put. I ran the same twelve frequencies at 44.1 kHz and 88.2 kHz and the reported MIDI numbers were identical, apart from one frequency where a single lag landed on a different sample. Doubling the sample rate buys nothing here.
Which instruments actually reach this range?
Piano, from about F♯6 upward. Piccolo, whose lowest note is C5 and which spends its written range above 1,000 Hz. Violin in the highest positions on the E string, and anything playing harmonics rather than fundamentals. A soprano or a guitar does not reach it. If your material sits below 1,400 Hz, none of this applies and the ordinary accuracy limits are what you are up against.
Related readings
Other failures with a measured cause.
The piano page covers the low end of the same instrument, where only 42 of the 88 keys convert correctly, and it is where the “an octave low” instruction this measurement corrects was published. The bass page measures the opposite failure, where the note is too low for the shortest testable period. The octave-error page covers notes inside the band whose overtones outvote the fundamental, which is a different mechanism from the one here.
Reproduction: node run-highnotes.js regenerates the semitone sweep, the divisor table and the waveform comparison, and prints the detector’s sha256 on its first line (77a9dd6b, 8,069 B). The detector is read directly out of the production converter.js by detector-from-live.js rather than re-implemented, so these numbers move when the shipped detector moves. The exact lag-and-ratio table is node probe-ratio-exact.js; the piano-top table is node probe-piano-top.js; the analytic model that predicts which lag wins is node probe-model.js; the two-sample-rate check is node probe-two-rates.js. The smoke fixture is smoke/fixtures/high-register.wav.