22i: RT_LVL_CAP inert (model post-IIR levels ~1.06 << cap) — gap relocated to detector front-end amplitude chain

This commit is contained in:
2026-08-22 19:51:56 +03:00
parent 94383b15d3
commit d43bbfe66b
2 changed files with 19 additions and 0 deletions
+8
View File
@@ -123,6 +123,14 @@ static void process_band_structural(
fn529fe0::iir1(band_level.data(), kIIR_A2, kIIR_B2, nbin, 0.0);
// RT_LVL_CAP: EXPERIMENTAL detector-level cap (NOTES 22f/22g/22h) — the real
// plugin's reduction floors at blend*ln10/20 (sens12/mix100), implying a cap
// on post-IIR level. Opt-in; default off (canon untouched).
static const float lvl_cap = getenv("RT_LVL_CAP") ? atof(getenv("RT_LVL_CAP")) : 1e9f;
for (size_t k = 0; k < nbin; k++) {
if (band_level[k] > lvl_cap) band_level[k] = lvl_cap;
}
for (size_t k = 0; k < half; k++) {
band_level[nfft - 1 - k] = band_level[k];
}