Note dynamics

Audio to MIDI: soft notes hit a hard floor.

Not at a fixed ratio: one note survives at 24.7 dB below its neighbours and is gone at 12.7 dB on a quieter take.

Select an audio file to create a MIDI draft locally.

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

The rule

The loudness test happens before any pitch is measured, and it tests against a constant.

Before the detector asks what pitch a window contains, it asks whether the window is loud enough to be worth asking about. The audio is cut into windows 1,024 samples long, advanced 256 samples at a time. Each window is reduced to one RMS value, and that value is compared with a fixed number — 0.015 at the Balanced setting, 0.009 at More notes, 0.023 at Fewer notes. A window below the number produces no pitch estimate at all.

Nothing in that comparison looks at the rest of the file. The threshold is a constant in the source, not a fraction of the loudest sample, not a running average, not the track's own peak. That single design choice is what makes the failure this page measures possible: a phrase can be loud enough overall to pass, and still contain one note that never crosses the line.

This is the part that is easy to get wrong when you read about it elsewhere. Advice on recording levels usually talks in decibels relative to the loudest note, because that is how a musician hears a balance. The detector does not hear a balance. It hears absolute amplitude, and the distance between a note and that constant is whatever the recording level happens to be — not a property of the performance.

Measured

Six notes, one of them turned down: the note survives 24 dB and is gone at 25.

Take six notes — A3, B3, C4, D4, E4, F4 — each 0.40 s long, 0.10 s apart, built from three harmonics at 1, 0.5 and 0.25 amplitude, peak 0.32, 44.1 kHz mono, with a 5 ms linear fade on each note. Then turn down the third note, C4, and nothing else. The other five notes keep the same level and the same place in the file.

C4 turned down byNotes returnedPitchesC4 present
0 dB657, 59, 60, 62, 64, 65yes
−12 dB657, 59, 60, 62, 64, 65yes
−18 dB657, 59, 60, 62, 64, 65yes
−24 dB657, 59, 60, 62, 64, 65yes
−24.7 dB857, 59, 60, 60, 60, 62, 64, 653 events
−25 dB557, 59, 62, 64, 65no
−30 dB557, 59, 62, 64, 65no

Balanced (RMS gate 0.015, minimum note 75 ms). Bisecting the attenuation to a tenth of a decibel puts the transition at −24.73 dB. Reproduction: node run-weak-notes.js, table A.

It is not a fade-out either, and the way it fails is worth more than the decibel figure. Sweep the attenuation in 0.005 dB steps and the note does not shrink — between −24.700 and −24.710 dB it breaks into three separate C4 events, 81, 139 and 110 ms long, and returns a file with eight notes instead of six. Half a hundredth of a decibel later it is gone entirely.

The reason is that the note sits almost exactly on the gate for its whole duration. Inside the note every window reads 0.01500 or 0.01499 — alternating on the ripple of the analysis, not on anything musical. At −24.700 dB eleven of those 71 windows land a hair below 0.015 and the run is cut at each one; at −24.715 dB thirty-two of them do, and no run survives the 75 ms minimum. So the note passes from intact, to shattered, to absent across about 0.02 dB.

The absolute peak of C4 at the last surviving step is 0.018604, and 0.015 divided by that is 0.806 — the RMS-to-peak factor of this three-harmonic waveform. The note crosses when its own RMS meets the gate. Nothing else in the phrase moved: the other five notes read 93 on velocity at every step.

The shattered window is narrow but it is not an artefact of one file. Repeating the sweep at four recording levels and all three sensitivity settings, the band is 0.002 to 0.014 dB wide and always returns two or three fragments rather than one note or none, and at a given setting its width in dB is the same at every level. Sixteen phase offsets of the same signal all produce fragments. What it is not is reproducible in its details: whether you get two pieces or three depends on where the analysis grid falls, which is why the advice on this page is about the level, not about predicting the fragments.

Four horizontal bars, one per recording level, each ending where a single quiet note stops being detected: 28.6 decibels at a phrase peak of 0.50, 24.7 at 0.32, 18.2 at 0.15 and 12.7 at 0.08. A side panel shows the note’s absolute peak at the cut is 0.0186 in all four cases, which is 0.015 divided by the 0.806 RMS-to-peak factor of the test waveform.
The tolerated ratio changes by more than a factor of two across sixteen decibels of recording level, while the level at which the note dies does not change at all. That is what separates an absolute gate from a relative one. Six notes, C4 attenuated only, 5 ms fades, Balanced.

The number people want

"How much quieter can one note be" has no single answer, because the floor is absolute.

The obvious next question is whether 24.7 dB is the number — the dynamic range this converter tolerates. It is not. Re-run the identical phrase at four different recording levels and the decibel figure moves, because the note still has to reach the same 0.015 and the rest of the phrase no longer starts from the same place.

Phrase peakPeak in dBFSC4 survives at −12 dB−18 dB−24 dBC4 vanishes at
0.50−6.0yesyesyes−28.6 dB
0.32−9.9yesyesyes−24.7 dB
0.15−16.5yesyesno−18.2 dB
0.08−21.9yesnono−12.7 dB

Same six notes, same 5 ms fade, same positions; only the overall peak and the attenuation of C4 changed. Balanced. Reproduction: node run-weak-notes.js, table B.

Sixteen decibels of recording level is worth sixteen decibels of headroom, one for one, and every row is predicted by the same expression: the note disappears when its peak reaches gate ÷ 0.8101. At the four measured levels that expression gives 28.63, 24.75, 18.17 and 12.71 dB, against measured 28.59, 24.73, 18.16 and 12.71. The largest disagreement is 0.04 dB, which is the resolution of the bisection, not a second effect.

The three sensitivity settings move the floor in the same way, and again it is the gate that moves, not the shape of the response. At a phrase peak of 0.32 the transition sits at −29.18 dB on More notes, −24.73 on Balanced and −21.04 on Fewer notes — the gaps between those three numbers track the ratios of 0.009, 0.015 and 0.023 almost exactly. Switching the slider is arithmetically the same act as turning the phrase up or down, and it is why reaching for the slider to rescue a quiet note also changes which loud notes survive.

So the honest answer to "how soft a note can I get away with" is: whatever keeps that note's own RMS above 0.015. On a take that peaks at −6 dBFS that is a generous window. On a take that peaks near −22 dBFS it is 12 dB, which a real performance exceeds routinely — a single note played off the string with a light touch, a note at the end of a decaying phrase, a backing figure that is meant to sit under the melody.

Before it disappears

The quiet note is already nearly silent in the MIDI file, and it gets shorter before it goes.

Losing a note is the visible failure. The invisible one happens first: the note is still there, and its velocity has already fallen to the bottom of the range. Velocity is computed from the same window RMS, as 48 plus 170 times the loudest frame in the note, capped at 120. On the six-note phrase the five loud notes come back at 93 whatever happens to C4. C4 runs 93, 70, 59, 54 down the attenuation ladder and sits at 51 for the last two decibels before it vanishes.

C4 turned down byVelocity of C4Velocity of the other five
0 dB9393, 93, 93, 93, 93
−6 dB7093, 93, 93, 93, 93
−12 dB5993, 93, 93, 93, 93
−18 dB5493, 93, 93, 93, 93
−23 dB5193, 93, 93, 93, 93
−24 dB5193, 93, 93, 93, 93

Balanced, phrase peak 0.32. Reproduction: node run-weak-notes.js, table H.

Two things follow. Velocity compresses at the bottom: going from −18 to −24 dB is six decibels of performance and three steps of velocity, because the 48 offset dominates once the RMS term is small. And a note at velocity 51 is not a note you hear in a dense arrangement. If the complaint is "the quiet note came back but it is too soft", this is the mechanism, and the note is three decibels from not coming back at all.

Note shape changes the picture, which is worth knowing because almost no real instrument has a flat envelope. Repeat the same sweep with an exponential decay on every note and the quiet note does not vanish first — it gets shorter first, because the tail is what falls through the gate.

Decay τC4 at −18 dB−21 dB−24 dB
flat envelope406 ms401 ms377 ms
0.3 s238 ms128 msgone
1.0 s406 ms389 ms75 ms

Written length of the C4 event, 0.40 s of nominal note. A faster decay shortens the note earlier because the tail crosses the gate sooner. Reproduction: node run-weak-notes.js, table G.

A plucked or struck note with a 0.3 s decay has lost a third of its length by −18 dB and is down to 128 ms at −21, then gone. A slowly decaying note at the same attenuation keeps 389 ms and only collapses at −24. So on real material the quiet note's symptom is usually "it came back too short" rather than "it did not come back", and the two are the same gate read at different points of the envelope. The note-length page works the same gate from the other end, where a loud note's tail decides how long the event is written.

The obvious repair

Turning the whole take up does bring the note back — and flattens everything else.

If the note is missing because it is under an absolute floor, raising the whole file's gain should raise it over the floor. That is arithmetically true and practically a bad trade, and the numbers say by how much. Take the worst case from the table above, C4 at −28 dB, and add gain to the finished mix.

Gain appliedNotesC4 back?Velocities
0 dB5no93, 93, 93, 93, 93
+3 dB5no111, 112, 111, 111, 111
+4 dB6yes119, 119, 51, 119, 119, 119
+5 dB6yes120, 120, 51, 120, 120, 120
+10 dB6yes120, 120, 54, 120, 120, 120

C4 at −28 dB, phrase peak 0.32, gain applied to the whole file after the fact. Balanced. Reproduction: node run-weak-notes.js, table D.

The note needs 3.3 dB and comes back at +4. But by then the five loud notes are at 119 and then at 120, which is the top of the range: the performance's own accents are gone, and every note in the phrase now reads as a maximum-velocity hit. The quiet note is preserved at 51, so the file does contain the dynamic you were trying to save — it just has nothing to be quiet against. This is the same ceiling the clipping page measures with a hot input, arrived at from the quiet end instead.

The repair that keeps the shape is to raise only the quiet note, or to record the phrase so that the soft note sits above the floor in the first place. That means a recording level chosen for the quietest note you intend to keep, not for the loudest one — which inverts the usual advice about leaving headroom for peaks, and is the practical consequence of an absolute gate.

One note or the file

The same 30 dB means five surviving notes in one case and a completely empty file in the other.

This is the cleanest way to see that the quantity being tested is absolute. Attenuate one note by 30 dB and five notes come back. Attenuate the entire phrase by the same 30 dB and nothing comes back at all — the converter reports that no clear notes were detected and writes no file.

AttenuationWhole phrase turned downOnly C4 turned down
−6 dB6 notes6 notes
−12 dB6 notes6 notes
−18 dB6 notes6 notes
−24 dB6 notes6 notes
−30 dB0 notes5 notes

Phrase peak 0.32 before attenuation. Balanced. Reproduction: node run-weak-notes.js, table F.

Both columns apply the same 30 dB. In one the whole signal crosses the gate together and the file is empty; in the other five notes are untouched and only the sixth falls. A relative rule — "keep every note within N decibels of the loudest" — cannot produce both outcomes from one number. An absolute floor produces them immediately, and that is the test that distinguishes the two explanations.

The whole-file column is also the reason the two pieces of advice you find on this subject contradict each other. "Turn it up until you get notes" is right for a file that is uniformly too quiet, because every note crosses at once. "Turning it up does not help" is right for a file where one note is under the floor on its own, because the gain needed is set by that note and the rest of the phrase pays for it in velocity. Both statements are about the same gate; only the second is what the loudness-balance complaint is about. The recording-prep page covers the first case in isolation, where level alone decides whether the file converts at all.

Limits

What this test does not cover

The limit of this test. Every signal is synthesised: exact harmonics at 1, 0.5 and 0.25, no noise, no room, one channel, 44.1 kHz, and a phrase whose notes are all the same length and the same timbre. A real instrument's quiet note differs from its loud note in more than amplitude — the spectrum tilts, the attack softens, the noise floor stays put — and none of that was varied. The 0.81 RMS-to-peak factor is specific to this waveform and will differ for a real note, which shifts every decibel figure here by a constant while leaving the absolute floor where it is.

The floor itself is a constant in the built converter and moves with the sensitivity setting, but it is quoted at 44.1 kHz mono. Nothing here tested a stereo file whose quiet note sits in the right channel, which is a different failure with the same symptom and is measured on the recording-prep page. Nothing tested two notes at once, so a quiet note inside a chord was not covered; the merge behaviour for simultaneous notes is on the chords page.

The fragment count in the shattered window is not predictable from the signal. Ten phase offsets of the same file returned three pieces five times and two pieces five times, and the same sweep at a different sensitivity returned two every time. Nothing here establishes which grid alignment gives which count, so the page reports the width of the window and the fact that it exists, rather than a number of fragments.

Finally, the "gone" state is not an error. The converter does not report that a note was dropped; if enough notes survive it writes the file and the quiet note is simply absent from it, with no marker at the place it should have been. On a six-note phrase that costs one note. On a shorter phrase it can take the count under the three-note minimum and stop the download entirely, which is the gate described on the missing-notes page.

Questions

Quiet notes and this converter

Why did one note in my phrase disappear when the others came back?

Because the loudness gate tests an absolute RMS of 0.015 at the Balanced setting, not a fraction of the phrase's peak. One note that sits below that number produces no pitch estimate in any window, so no note is written for it, while its neighbours are unaffected. Measured on a six-note phrase, the note vanishes when it is turned down by 24.7 dB at a phrase peak of 0.32, and that figure changes with the recording level — 12.7 dB on a take peaking near −22 dBFS.

Is there a decibel range this converter tolerates between notes?

No, and that is the point. The tolerated ratio is set by how far the phrase sits above an absolute floor, so it is a property of the recording, not of the converter. Measured across four recording levels spanning 16 dB, the figure went from 28.6 dB to 12.7 dB one for one with the level, and every case matched the expression gate ÷ 0.8101 to within 0.04 dB.

Can I just turn the whole take up to get the quiet note back?

It works and it costs you the dynamics. A note 28 dB down needed 3.3 dB of gain and returned at +4 dB, but the other five notes went from velocity 93 to 119 and then to the 120 ceiling, so every loud note now reads as a maximum hit. The quiet note survives at velocity 51 with nothing to be quiet against. Raise the single note, or record at a level chosen for the quietest note you want to keep.

Does the sensitivity slider fix a quiet note?

It moves the floor, which is not the same as fixing the note. On a phrase peaking at 0.32 the vanish point sits at −29.2 dB on More notes, −24.7 on Balanced and −21.0 on Fewer, and those three numbers simply follow the three gates of 0.009, 0.015 and 0.023. Moving the slider is arithmetically the same as changing the recording level, so it also changes which other notes survive and how their velocity is computed.

My quiet note came back but it is very short. Same problem?

Same gate, read at the tail. With a flat envelope the note keeps its full length until it vanishes; with a 0.3 s decay it is down to 238 ms at −18 dB and 128 ms at −21 before it goes, because the decaying tail is what falls through the floor first. A slowly decaying note at the same attenuation still measures 389 ms. So on plucked and struck instruments the symptom is usually length, not absence.

Why did one quiet note come back as three short notes?

Because the note sat on the gate rather than clearly above or below it. Measured on a six-note phrase, attenuating one note by 24.700 to 24.710 dB — two hundredths of a decibel wide — splits it into three C4 events of 81, 139 and 110 ms and returns eight notes instead of six. Inside the note the windows alternate between 0.01500 and 0.01499, so the run is cut wherever one lands low. Move the level by a few hundredths of a decibel and the note is either whole or gone.

Is a note at velocity 51 worth keeping?

It is the bottom of the usable range. Velocity is 48 plus 170 times the loudest window RMS, so once the RMS term is small the note sits at 51 or 52 no matter how much further you turn it down. Between −18 and −24 dB — six decibels of performance — the written velocity moves three steps. Below that the note disappears rather than getting softer.

Related readings

The recording-prep page measures the whole-file version of this floor, where every note crosses at once and the take either converts or does not. The clipping page is the opposite end of the same velocity formula, where a hot input pins every note at 120. The note-length page reads the same gate at the tail of a decaying note. The note-gaps page covers what happens when the gap between notes falls under the floor instead of the note itself.

Reproduction: node run-weak-notes.js regenerates every table here and prints the detector's sha256 in its first line (77a9dd6b, 8,069 B). The detector is read out of the production converter.js by detector-from-live.js rather than re-implemented, so these numbers move when the shipped detector moves. Raw output: localmidi-ops/weak-notes-2026-12-02.txt.