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:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user