Преглед изворни кода

Quell: NS1 law (hidden [6]) — the Waves NS1's own structure for 20 … 100 % (round 190mg ns1)

REA of the NS1 trial's DSP (structure only, round 190lf's decompile) and of its saved states; every number fitted on
our own renders of the trial (docs/analise/REA_rodada190mg_ns1.md).

- New engine (VoiceTools.cpp, namespace ns1): a zero-latency front end of two complementary all-pass splits whose
  low / high parts are cut as the Amount rises, six bands of three cascaded Regalia–Mitra cuts sharing one gain, per
  band a two-band-pass detector, a slewing noise floor and level follower, a threshold between them, a soft
  fourth-power weight, open / close smoothing and a pause flag. Two fitted sets (20 … 50 %, 100 %), linear in between.
- ns1Layout(): corners, cuts and threshold position through NS1's five saved states, the high split's Q measured.
- Hidden ns1Law [6], saved while non-zero; only the NS1 translator sets it (now 4 values). Amount 0 keeps the zero
  law's path bit for bit; projects saved before are unchanged (gold renders: base vs this branch byte-identical).
- refcap182 NS1 programme 5.40 -> 7.04 (up 16 / same 9 / down 0).
- Tests: tests/Parity190mgNs1Tests.inc; the two NS1 translation count checks 3 -> 4.
Ka1-S пре 2 недеља
родитељ
комит
331d4aa1c2

+ 159 - 0
docs/analise/REA_rodada190mg_ns1.md

@@ -0,0 +1,159 @@
+# REA round 190mg, sub-round ns1 — Waves NS1 at 20 … 100 % → Quell Denoiser's NS1 law
+
+Owner's permission of 2026-11-17 (REA on third-party binaries for parity, clean-room only). Nothing of the vendor's code,
+tables, presets or content was copied: the DSP was decompiled for its STRUCTURE (round 190lf's decompile of
+`GenericMultiCoreProcessor.dll` `NS1Proc`, reused here — no new Ghidra session), the parameter names come from the plug-in's
+own parameter description (the interface every saved state refers to), and every number LYNX uses was measured or fitted
+on our own renders of the official trial. Work folder /mnt/e/lynx-work/waves3_190mg/ns1/ (HANDOFF.md, lab/, runs/, ev/).
+
+## 1. Structure (REA, round 190lf's decompile read again)
+
+Per sample, zero latency:
+
+- **Front end** — two stages in cascade, each "a first-order and a second-order recursive filter combined" (the
+  parallel form of a third-order filter): a complementary all-pass split. With A1 the first-order and A2 the
+  second-order all-pass at the same corner, low part = (A2 + A1) / 2, high part = (A2 − A1) / 2. The first stage keeps its
+  high part and multiplies its low part by a gain, the second keeps its low part and multiplies its high part. At gain 1
+  each stage is exactly its second-order all-pass — the "all-pass pair" round 190lf measured at 0 % (60 Hz / 16 kHz).
+- **Six bands in cascade**, each three Regalia–Mitra sections `y = (x + A x)/2 + g (x − A x)/2` on second-order
+  all-passes, the three sharing one gain g per band (g = 1: exactly transparent; the cut at the centre is g³).
+- **Per band detector** on the mid signal of the front end's output (half scale): a band-pass made of filters in cascade,
+  rectified, plus a tiny offset.
+- **Per band gain computer**: a noise floor that is multiplied by an "up" factor while the detector is above it and a
+  "down" factor while below (frozen under a gate level); a level follower that slews the same way; a threshold between
+  the floor and the level at the "position", kept between fixed distances above the floor, scaled by a global
+  voice-activity flag (a count of bands over their floors, with hold counters); a soft weight `w = T⁴ / (e⁴ + T⁴)`; the
+  gain `1 − (1 − g_min) w²`; one-pole smoothing with separate opening / closing coefficients.
+- The DSP also forms a global level-over-floor ratio of all bands (used to scale the thresholds and a cap) and a
+  floor-gain shaping between bands; LYNX's fit did not need them (§4).
+
+The saved state (RealWorld list; names from the ParamXML, file ev/state_values.txt) shows what the one knob
+(PARAM_WET_DRY_CNTRL, 229) writes: PARAM_MIN_FC / PARAM_MAX_FC (85 / 86) = the outer band centres and the split corners,
+PARAM_HP_GAIN / PARAM_LP_GAIN (206 / 203) = the cuts of the parts below / above them, PARAM_ADAPT_THR_POSITION (226), and
+PARAM_MIN_ADAPT_REDUCTION (228, 0 / −6 dB); the band centres 0 / 13 / … / 65 are geometric between MIN_FC and MAX_FC.
+
+| knob | MIN_FC / MAX_FC | cut (206 = 203) | position (226) |
+|---|---|---|---|
+| 0 % (D) | 60 / 16000 | 0 dB | 0 |
+| 20 % (X1) | 60 / 14000 | −10 dB | 0.02 |
+| 35 % (X2) | 65 / 13500 | −25 dB | 0.0325 |
+| 50 % (S1) | 70 / 13000 | −40 dB | 0.045 |
+| 100 % (S2) | 110 / 8000 | −70 dB | 0.8 |
+
+## 2. Measurements (our renders)
+
+- **The front end is confirmed**: with the band gains at 1, LYNX's model at the D layout matches refcap182's D mix to
+  −76 dB ESR (the bare pair).
+- **The high split's second-order Q moves with the knob** (fits of the complex response on the −20 dBFS pink-noise step of
+  probe n1 — where the bands are open — and of the programme relative to D): corner = MAX_FC (14006 / 13007 Hz fitted),
+  cut = LP_GAIN (−9.97 / −37.6 dB fitted), the real pole at the corner (×1.004 / ×1.009), Q 0.370 (20 %, −53.6 dB residual),
+  0.392 (35 %, programme), 0.432 (50 %, −44.6 dB); at 100 % the bands are never open on our signals (fitted with the rest,
+  §3). The low split is Butterworth (Q ≈ 1, corner = MIN_FC, cut = HP_GAIN).
+- **The band gains**: at 20 … 50 % a loud programme is hardly touched (< 1 dB in its loud bands) while bands with little
+  content go down by up to the full depth (bass: the 4.7 / 14 kHz bands −13 … −19 dB; guitar: the 65 Hz band −13 dB); at
+  100 % a dense programme is taken down by 10 … 22 dB over its first seconds (mix, guitar), a sparse one hardly (vocal).
+  The floor moves slowly both ways (the noise steps: a few dB per second).
+
+## 3. LYNX: Quell's NS1 law (hidden [6], `voicetools::quell::ns1Law`)
+
+- **On** (the NS1 translator sets it, with the zero law; returns 4 values): at Amount > 0 a new engine,
+  `voicetools::(anon)::ns1::Engine`, our own code with the structure of §1:
+  - layout `ns1Layout (amount)`: corners, cut and position through the five saved states (0 / 20 / 35 / 50 / 100 %, linear
+    in between, the corners in log), the high split's Q 0.8992 / 0.370 / 0.392 / 0.432 / 0.699 (the last fitted on the
+    100 % renders); band centres geometric between the corners;
+  - front end = the two complementary all-pass splits (§1), the low split's Q 1.0;
+  - six bands × three Regalia–Mitra sections on RBJ all-passes (Q 0.7 at 20 … 50 %, 0.5 at 100 %), one gain per band;
+  - detector: two RBJ band-passes in cascade at the band centre (Q 2.7 / 1.2) on the mid of the front end's output, rectified;
+  - floor: × (up) while the detector is above it, × (down) below (0.75 / 13 dB per second at 20 … 50 %, 1.5 / 47 at
+    100 %), frozen under −80 dBFS, starting at −70 / −60 dBFS; level follower 118 600 dB/s up (instant) / 32 … 38 dB/s down;
+  - threshold `T = max (floor · 10^(9/20), min (kT · (floor + position · (level − floor)), floor · 10^(cap/20))) · flag`,
+    kT −10 dB / cap 21 dB at 20 … 50 %, kT +1 dB / cap 25 dB at 100 %; flag = +3 dB while no band of 100 … 998 Hz is
+    23 … 36 dB over its floor for 60 ms (the pause flag), else 1;
+  - `w = T⁴ / (e⁴ + T⁴)`, gain `1 − (1 − g_min) w²` with g_min = the depth (8.5 dB at 20 … 50 %, 9.9 dB at 100 %, the
+    three sections together at the centre) faded in from 0 to 20 %; smoothing 3.4 / 38 ms (open / close) at 20 … 50 %,
+    2.4 / 30 ms at 100 %; at 100 % the rectified detector is smoothed (0.1 / 0.5 ms) first.
+  - The two fitted sets (20 … 50 % and 100 %) are blended linearly between 50 and 100 %. All coefficients are designed from
+    times / frequencies at the session rate (44.1 / 48 / 96 kHz alike).
+- **Amount 0** keeps the zero law's path bit for bit (round 124's pair); once the NS1 engine has run, automation down to 0
+  stays in it (its own open pair, −55 dB from the old one: no audible step).
+- **Off (0)** for new instances and every project saved before: unchanged code (gold renders below).
+- **Fit** (stated, per the brief): the constants were fitted by a coordinate search on the scorer's own score of the
+  refcap182 programme renders at 20 / 35 / 50 % (one shared set) and at 100 % (its own set), with the probes (190lf's
+  noise steps, sine stairs, noise + tone, bursts, impulses) in the first fits' objective and as the check below; the last
+  20 … 50 % fit was constrained so that no file goes below today's score. The model (lab/ns1sim.cpp) and the C++ engine
+  agree to −33 … −84 dB on the programme (lab/portchk.py: the C++ uses the layout law's geometric centres and float knob
+  values).
+
+### Table (refcap182 programme, 25 files; before = fxr_base, after = this branch's fxr_w4; real scorer)
+
+| file | score | ESR dB | spec dB | rms dB |
+|---|---|---|---|---|
+| D_bass | 8 → 8 | -52.6 → -52.6 | 0.00 → 0.00 | +0.00 → +0.00 |
+| D_drums | 8 → 8 | -40.0 → -40.0 | 0.02 → 0.02 | +0.00 → +0.00 |
+| D_guitar | 10 → 10 | -70.6 → -70.6 | 0.00 → 0.00 | +0.00 → +0.00 |
+| D_mix | 8 → 8 | -54.4 → -54.4 | 0.00 → 0.00 | +0.00 → +0.00 |
+| D_vocal | 9 → 9 | -66.7 → -66.7 | 0.00 → 0.00 | +0.00 → +0.00 |
+| X1_bass | 5 → 8 | -17.8 → -33.4 | 0.65 → 0.12 | -0.08 → -0.06 |
+| X1_drums | 4 → 8 | -8.1 → -26.9 | 0.65 → 0.13 | +0.67 → -0.08 |
+| X1_guitar | 6 → 6 | -20.2 → -21.7 | 0.47 → 0.45 | +0.14 → -0.02 |
+| X1_mix | 6 → 8 | -13.0 → -31.5 | 0.56 → 0.10 | +0.19 → -0.08 |
+| X1_vocal | 5 → 7 | -17.2 → -25.0 | 0.64 → 0.18 | +0.06 → -0.08 |
+| X2_bass | 5 → 7 | -18.8 → -30.9 | 0.82 → 0.19 | -0.19 → -0.03 |
+| X2_drums | 4 → 8 | -8.5 → -27.1 | 0.84 → 0.11 | +0.16 → -0.11 |
+| X2_guitar | 6 → 6 | -18.0 → -20.6 | 0.54 → 0.59 | +0.22 → +0.06 |
+| X2_mix | 5 → 8 | -13.9 → -31.8 | 0.72 → 0.07 | +0.00 → -0.04 |
+| X2_vocal | 5 → 6 | -17.8 → -24.5 | 0.82 → 0.18 | +0.07 → -0.04 |
+| S1_bass | 5 → 7 | -21.1 → -28.6 | 0.75 → 0.21 | -0.22 → +0.01 |
+| S1_drums | 4 → 8 | -11.2 → -27.1 | 0.75 → 0.09 | -0.25 → -0.13 |
+| S1_guitar | 5 → 5 | -16.3 → -19.8 | 0.71 → 0.70 | +0.28 → +0.12 |
+| S1_mix | 5 → 8 | -16.0 → -30.4 | 0.61 → 0.03 | -0.11 → +0.02 |
+| S1_vocal | 5 → 8 | -16.9 → -23.9 | 0.79 → 0.10 | +0.05 → -0.01 |
+| S2_bass | 3 → 6 | -4.9 → -16.2 | 2.51 → 0.52 | -0.00 → -0.06 |
+| S2_drums | 4 → 6 | -4.0 → -23.4 | 2.12 → 0.26 | +0.44 → -0.04 |
+| S2_guitar | 4 → 4 | -4.1 → -6.2 | 2.14 → 1.36 | +0.49 → +0.25 |
+| S2_mix | 2 → 4 | -0.7 → -9.1 | 3.34 → 0.69 | +3.17 → +0.40 |
+| S2_vocal | 4 → 5 | -8.9 → -13.2 | 1.52 → 0.74 | -0.36 → -0.48 |
+Mean 5.40 → 7.04; up 16, same 9, down 0. ESR means: 20 % −15.3 → −27.7, 35 % −15.4 → −27.0, 50 % −16.3 → −26.0,
+100 % −4.5 → −13.6 dB.
+
+- Probes (lab/probechk.py; ESR vs the trial, lead and demo mutes masked; base → this branch): mean −0.5 → −9.8 dB;
+  noise steps X1 −5.0 → −29.0, S1 −4.9 → −14.3, S2 −1.2 → −1.4; sine stairs X1 −12.3 → −18.5, S2 −5.9 → −9.4; bursts
+  over noise S2 −11.4 → −16.9; impulses (+19 … +61 → ±0.5); noise + tone X1 −14.2 → −11.9 and S1 −6.2 → −5.8 (worse).
+  Measured on the fxr_w3 constants (the 20 … 50 % set before its last constrained refinement).
+- **Gold renders** (ns1/lab/gold.sh, base fxr_base = origin/waves2_190lf 2c893d3ca vs this branch): Quell default, the
+  classic engine at 4 amounts, the matched engine at 4 amounts × tracker law on / off, the zero law at 4 amounts, Listen,
+  Output, and NS1's 0 % state through the translator; × 44.1 / 48 / 96 kHz × vocal / mix / drums: 180 renders,
+  0 mismatches (runs/gold.log).
+- **CPU** (35 s stereo mix, 48 kHz, one core, wall clock, best of 5, two interleaved passes; runs/cpu.log): NS1 X1
+  2.29 → 1.13 s, S1 2.27 → 1.10 s, S2 2.13 → 1.11 s (a file copy through fxrender: 0.69 … 0.78 s); D (unchanged path)
+  2.29 / 2.17 s. The engine costs about a quarter of round 124's (≈ 1.2 % of a core against ≈ 4.6 %): no coefficients
+  are redesigned per sample.
+- **Tests**: tests/Parity190mgNs1Tests.inc (hidden / saved while non-zero; NS1 translation; the layout law at the five
+  states and monotone; Amount 0 bit for bit with the zero law and continuous above it; steady noise down by > 10 dB and a
+  tone through at 44.1 / 48 / 96 kHz; Listen; different from round 124's engine); mini runner (190ky's set + Vqe190dp +
+  Parity190mgNs1): 544 150 checks, 0 failures.
+
+## 4. Tried and not kept
+
+- **The global level-over-floor ratio** of §1 in the threshold (T ∝ ratio · floor, and as an extra lower bound
+  kG · ratio · floor): every variant cut loud programme bands too (X1 mix −5 … −13 dB where the trial leaves them alone;
+  drums 8 → 3 … 6). Not used.
+- **One detector band-pass** (Q 1.2, the first fits) instead of two in cascade: too little band selectivity — the
+  guitar's 65 Hz band at 35 % −0.4 dB where the trial takes −13 dB (two in cascade: −2 … −5 dB).
+- **The floor-gain shaping between bands** (gain toward a target residual spectrum): not needed by the fit (left out).
+- **Fitting for ESR alone** (fit.py, the first fits): the ESR optimum is not the score's (X2 guitar 6 → 5 on the spectral
+  criterion with a better ESR); the later fits (fit2.py) use the scorer's own score, spectral distance and level.
+- **A slow level follower at 100 %** (so that dense programme is cut over seconds and phrases are not): dense programme
+  then not cut at all (S2 guitar / mix +5 dB ESR). The 100 % set keeps an instant follower; its S2 files go up, S2 guitar
+  stays at 4 (the trial takes dense guitar down by 10 … 16 dB over seconds — not reproduced in time, only in level).
+- The 0 % path could also move to the NS1 engine's own pair (its open path matches the D mix to −76 dB, round 124's to
+  −54 dB): not done — the brief keeps the D files bit for bit (an owner option for later).
+
+## 5. Files
+
+- src/core/VoiceTools.h / .cpp (`ns1Law`, `Ns1Layout ns1Layout (double)`, namespace `ns1` engine), src/core/PluginSubstitutes.cpp
+  (translateWavesNs1 sets it, returns 4), tests/Parity190mgNs1Tests.inc (+ its include line), the two NS1 translation
+  count checks (VoiceToolsTests119.inc, Parity190lfNs1Tests.inc: 3 → 4).
+- Lab: ns1/lab (ns1sim.cpp = the engine's model, sim.py, fit.py / fit2.py coordinate searches, pscore.py = the scorer's
+  metrics in-process, hifit / hifit2 / lofit front-end fits, bandatt / bandcmp / probecmp / errspec views, tocpp.py,
+  portchk.py, gold.sh, cpu.sh), fits ns1/runs (fit_*.json / .log).

+ 4 - 1
src/core/PluginSubstitutes.cpp

@@ -2998,7 +2998,10 @@ int translateWavesNs1 (const std::vector<std::uint8_t>& state, EffectSlot& slot)
     slot.params[voicetools::quell::matched] = 1.0f; // round 124: the engine fitted to the trial (REA_rodada124 §6)
     // round 190lf: 0 % is NS1's bare all-pass pair, the engine fades in up to 20 % (REA_rodada190lf_ns1.md)
     slot.params[voicetools::quell::zeroLaw] = 1.0f;
-    return 3;
+    // round 190mg (ns1): above 0 % the engine with NS1's own structure (REA_rodada190mg_ns1.md); its layout follows the
+    // Amount by the law through NS1's five saved states (voicetools::quell::ns1Layout)
+    slot.params[voicetools::quell::ns1Law] = 1.0f;
+    return 4;
 }
 
 // Doubler (RealWorld list, round 119): 0 output dB, 1 direct on, 2 direct gain dB, 3 direct pan deg, 4 align,

+ 283 - 0
src/core/VoiceTools.cpp

@@ -141,6 +141,8 @@ struct Bq
         return y;
     }
     void ap (double sr, double fc, double qq) noexcept { const auto w = twoPi * fc / sr, a = std::sin (w) / (2 * qq), c = std::cos (w); set (1 - a, -2 * c, 1 + a, 1 + a, -2 * c, 1 - a); }
+    // round 190mg (ns1): the first-order all-pass (bilinear, corner prewarped)
+    void ap1 (double sr, double fc) noexcept { const auto K = std::tan (0.5 * twoPi * fc / sr); set (K - 1, K + 1, 0, K + 1, K - 1, 0); }
     void lp (double sr, double fc, double qq) noexcept { const auto w = twoPi * fc / sr, a = std::sin (w) / (2 * qq), c = std::cos (w); set ((1 - c) / 2, 1 - c, (1 - c) / 2, 1 + a, -2 * c, 1 - a); }
     void bp (double sr, double fc, double qq) noexcept { const auto w = twoPi * fc / sr, a = std::sin (w) / (2 * qq), c = std::cos (w); set (a, 0, -a, 1 + a, -2 * c, 1 - a); }
     void shelf (double sr, double fc, double g, bool high) noexcept
@@ -391,6 +393,246 @@ private:
 };
 } // namespace fitted
 
+// ---- the NS1 law (round 190mg ns1) ------------------------------------------------------------------------------------
+// [REA of the NS1 trial's DSP for the structure only; every number fitted on our own probes and renders of the trial,
+// docs/analise/REA_rodada190mg_ns1.md] Zero latency, per sample:
+// - front end: two complementary all-pass splits in cascade (a first- and a second-order all-pass: low part = their
+//   half sum, high part = their half difference), the low part of the first (at the low corner) and the high part of
+//   the second (at the high corner) multiplied by the cut; at cut 0 dB each split is exactly its second-order all-pass;
+// - six bands (centres from the low to the high corner, geometric), each three cascaded Regalia–Mitra sections
+//   y = (x + A x) / 2 + g (x − A x) / 2 on the same all-pass A, one gain g per band (g = 1: exactly transparent);
+// - per band, from the mid signal: a band-pass detector, rectified; a noise floor that slews up / down by fixed dB per
+//   second (frozen under a gate), a level follower that slews the same way, a threshold between floor and level
+//   (the layout's position), kept within fixed distances above the floor, lifted while a voice-activity flag says
+//   "pause"; a soft weight w = T⁴ / (e⁴ + T⁴), the gain 1 − (1 − g_min) w², opening / closing smoothing.
+namespace ns1
+{
+struct Fit // (the fitted values: lowFit / highFit below, in this field order)
+{
+    double q1;                       // the low split's second-order Q
+    double depthDb, bandQ;           // the cut at a band centre (dB, the three sections together); the RM all-passes' Q
+    double detQ, detScale;           // the detector: two band-passes of this Q in cascade; its input scale
+    double floorUp, floorDown, gateDb, levUp, levDown; // floor / level slews (dB per second), the floor's gate (dBFS)
+    double aboveDb, capDb, ktDb;     // the threshold: at least / at most this far over the floor (dB); its scale (dB)
+    double openMs, closeMs;          // gain smoothing
+    double vadDb, vadBoostDb, vadHoldMs, vadLo, vadHi; // the pause flag: band over its floor (dB), lift (dB), hold, range (Hz)
+    double floorInitDb;              // floor / level start (dBFS)
+    double absAtt, absRel;           // the rectified detector's envelope (ms; release 0 = none)
+};
+// fitted at 20 … 50 % (the three measured settings share one set) and at 100 %; in between, each value linearly
+constexpr Fit lowFit { 1, 8.5, 0.7, 2.7, 0.5, 0.75, 13, -80, 118600, 32, 9, 21, -10, 3.4, 38, 23, 3, 60, 100, 998, -70, 0, 0 };
+constexpr Fit highFit { 1, 9.9, 0.5, 1.2, 0.5, 1.5, 47, -80, 118600, 38, 9, 25, 1, 2.4, 30, 36, 3, 60, 100, 998, -60, 0.1, 0.5 };
+inline Fit fitAt (double amt) noexcept
+{
+    const auto t = std::clamp ((amt - 0.5) / 0.5, 0.0, 1.0);
+    if (t <= 0.0)
+        return lowFit;
+    const auto mix = [t] (double a, double b) { return a + (b - a) * t; };
+    Fit f;
+    f.q1 = mix (lowFit.q1, highFit.q1);
+    f.depthDb = mix (lowFit.depthDb, highFit.depthDb);
+    f.bandQ = mix (lowFit.bandQ, highFit.bandQ);
+    f.detQ = mix (lowFit.detQ, highFit.detQ);
+    f.detScale = mix (lowFit.detScale, highFit.detScale);
+    f.floorUp = mix (lowFit.floorUp, highFit.floorUp);
+    f.floorDown = mix (lowFit.floorDown, highFit.floorDown);
+    f.gateDb = mix (lowFit.gateDb, highFit.gateDb);
+    f.levUp = mix (lowFit.levUp, highFit.levUp);
+    f.levDown = mix (lowFit.levDown, highFit.levDown);
+    f.aboveDb = mix (lowFit.aboveDb, highFit.aboveDb);
+    f.capDb = mix (lowFit.capDb, highFit.capDb);
+    f.ktDb = mix (lowFit.ktDb, highFit.ktDb);
+    f.openMs = mix (lowFit.openMs, highFit.openMs);
+    f.closeMs = mix (lowFit.closeMs, highFit.closeMs);
+    f.vadDb = mix (lowFit.vadDb, highFit.vadDb);
+    f.vadBoostDb = mix (lowFit.vadBoostDb, highFit.vadBoostDb);
+    f.vadHoldMs = mix (lowFit.vadHoldMs, highFit.vadHoldMs);
+    f.vadLo = mix (lowFit.vadLo, highFit.vadLo);
+    f.vadHi = mix (lowFit.vadHi, highFit.vadHi);
+    f.floorInitDb = mix (lowFit.floorInitDb, highFit.floorInitDb);
+    f.absAtt = mix (lowFit.absAtt, highFit.absAtt);
+    f.absRel = mix (lowFit.absRel, highFit.absRel);
+    return f;
+}
+constexpr int nb = 6, sections = 3;
+
+class Engine
+{
+public:
+    void prepare (double rate) noexcept
+    {
+        sr = rate;
+        designedAmount = -1.0;
+        reset();
+    }
+    void reset() noexcept
+    {
+        for (auto* f : { &s1a1, &s1a2, &s2a1, &s2a2 })
+            f->reset();
+        for (auto& row : rm)
+            for (auto& f : row)
+                f.reset();
+        for (auto& f : det)
+            f.reset();
+        for (auto& f : det2)
+            f.reset();
+        const auto init = std::pow (10.0, fitAt (designedAmount < 0.0 ? 0.0 : designedAmount).floorInitDb / 20.0);
+        floorv.fill (init);
+        lev.fill (init);
+        gain.fill (1.0);
+        env.fill (0.0);
+        noiseCount = 0;
+        flag = 1.0;
+    }
+    // in place; returns the mean reduction (dB) of the block for the meter
+    double process (float* l, float* r, int n, double amt, bool listenOnly, float out) noexcept
+    {
+        if (amt != designedAmount)
+            design (amt);
+        double sumRed = 0.0;
+        for (int i = 0; i < n; ++i)
+        {
+            const double xs[2] { l[i], r[i] };
+            double w[2];
+            for (int c = 0; c < 2; ++c)
+            {
+                const auto a1 = s1a1.run (xs[c], c), a2 = s1a2.run (xs[c], c);
+                const auto u = 0.5 * (a2 - a1) + gLow * 0.5 * (a2 + a1);
+                const auto b1 = s2a1.run (u, c), b2 = s2a2.run (u, c);
+                w[c] = 0.5 * (b2 + b1) + gHigh * 0.5 * (b2 - b1);
+            }
+            const auto mid = 0.5 * (w[0] + w[1]) * detScale;
+            double e[nb];
+            for (int b = 0; b < nb; ++b)
+            {
+                const auto ad = std::abs (det2[(std::size_t) b].run (det[(std::size_t) b].run (mid, 0), 0));
+                if (useEnv)
+                {
+                    auto& v = env[(std::size_t) b];
+                    v = ad > v ? ad + (v - ad) * envA : ad + (v - ad) * envR;
+                    e[b] = v + 1e-9;
+                }
+                else
+                    e[b] = ad + 1e-9;
+            }
+            // the voice flag: a band of its range over its floor -> voice; else, after the hold, a pause
+            bool voice = false;
+            for (int b = 0; b < nb; ++b)
+                if (vadBand[(std::size_t) b] && e[b] > floorv[(std::size_t) b] * vadK)
+                    voice = true;
+            if (voice)
+            {
+                noiseCount = 0;
+                flag = 1.0;
+            }
+            else if (++noiseCount >= holdN)
+            {
+                noiseCount = holdN;
+                flag = boost;
+            }
+            double red = 0.0;
+            for (int b = 0; b < nb; ++b)
+            {
+                auto& fl = floorv[(std::size_t) b];
+                auto& lv = lev[(std::size_t) b];
+                const auto level = lv;
+                if (e[b] >= gate)
+                {
+                    fl *= e[b] > fl ? up : down;
+                    lv *= e[b] > level ? lu : ld;
+                }
+                const auto thr = fl + position * (level - fl);
+                const auto T = std::max (aboveK * fl, std::min (kT * thr, capK * fl)) * flag;
+                const auto t2 = T * T, q2 = e[b] * e[b], T4 = t2 * t2;
+                const auto wt = T4 / (q2 * q2 + T4);
+                const auto target = 1.0 - (1.0 - gmin) * wt * wt;
+                auto& g = gain[(std::size_t) b];
+                g = target > g ? target + (g - target) * go : target + (g - target) * gc;
+                red += g;
+            }
+            for (int c = 0; c < 2; ++c)
+            {
+                auto y = w[c];
+                for (int b = 0; b < nb; ++b)
+                    for (int k = 0; k < sections; ++k)
+                    {
+                        const auto A = rm[(std::size_t) b][(std::size_t) k].run (y, c);
+                        y = 0.5 * (y + A) + gain[(std::size_t) b] * 0.5 * (y - A);
+                    }
+                // Listen: what is taken away (the open chain minus the processed one)
+                const auto v = listenOnly ? w[c] - y : y;
+                (c == 0 ? l[i] : r[i]) = (float) v * out;
+            }
+            sumRed += red;
+        }
+        // the meter: the mean band cut at the centres (dB)
+        const auto meanGain = n > 0 ? sumRed / (n * nb) : 1.0;
+        return -20.0 * sections * std::log10 (std::max (1e-6, meanGain));
+    }
+
+private:
+    void design (double amt) noexcept
+    {
+        const bool first = designedAmount < 0.0;
+        designedAmount = amt;
+        const auto lay = ns1Layout (amt);
+        const auto fit = fitAt (amt);
+        s1a1.ap1 (sr, lay.minFc);
+        s1a2.ap (sr, lay.minFc, fit.q1);
+        s2a1.ap1 (sr, std::min (lay.maxFc, 0.49 * sr));
+        s2a2.ap (sr, std::min (lay.maxFc, 0.49 * sr), lay.q2);
+        gLow = gHigh = dbToGain (lay.cutDb);
+        position = lay.position;
+        // the depth fades in up to the first measured setting (20 %)
+        const auto depth = fit.depthDb * std::min (1.0, std::max (0.0, amt) / zeroFade);
+        gmin = std::pow (10.0, -depth / (20.0 * sections));
+        for (int b = 0; b < nb; ++b)
+        {
+            const auto fc = std::min (lay.minFc * std::pow (lay.maxFc / lay.minFc, b / (nb - 1.0)), 0.45 * sr);
+            for (auto& f : rm[(std::size_t) b])
+                f.ap (sr, fc, fit.bandQ);
+            det[(std::size_t) b].bp (sr, fc, fit.detQ);
+            det2[(std::size_t) b].bp (sr, fc, fit.detQ);
+            vadBand[(std::size_t) b] = fc >= fit.vadLo && fc <= fit.vadHi;
+        }
+        const auto ln10_20 = std::log (10.0) / 20.0;
+        up = std::exp (ln10_20 * fit.floorUp / sr);
+        down = std::exp (-ln10_20 * fit.floorDown / sr);
+        lu = std::exp (ln10_20 * fit.levUp / sr);
+        ld = std::exp (-ln10_20 * fit.levDown / sr);
+        go = coef (fit.openMs, sr);
+        gc = coef (fit.closeMs, sr);
+        holdN = std::max (1, (int) std::lround (fit.vadHoldMs * 0.001 * sr));
+        detScale = fit.detScale;
+        useEnv = fit.absRel > 0.0;
+        envA = coef (fit.absAtt, sr);
+        envR = coef (fit.absRel, sr);
+        gate = std::pow (10.0, fit.gateDb / 20.0);
+        aboveK = std::pow (10.0, fit.aboveDb / 20.0);
+        capK = std::pow (10.0, fit.capDb / 20.0);
+        kT = std::pow (10.0, fit.ktDb / 20.0);
+        vadK = std::pow (10.0, fit.vadDb / 20.0);
+        boost = std::pow (10.0, fit.vadBoostDb / 20.0);
+        if (first)
+        {
+            const auto init = std::pow (10.0, fit.floorInitDb / 20.0);
+            floorv.fill (init);
+            lev.fill (init);
+        }
+    }
+    double sr = 48000.0, designedAmount = -1.0;
+    double up = 1.0, down = 1.0, lu = 1.0, ld = 1.0, go = 0.0, gc = 0.0, gLow = 1.0, gHigh = 1.0, position = 0.0, gmin = 1.0;
+    double gate = 0.0, aboveK = 1.0, capK = 1.0, kT = 1.0, vadK = 1.0, boost = 1.0, flag = 1.0, detScale = 0.5, envA = 0.0, envR = 0.0;
+    bool useEnv = false;
+    int holdN = 1, noiseCount = 0;
+    fitted::Bq s1a1, s1a2, s2a1, s2a2;
+    std::array<std::array<fitted::Bq, sections>, nb> rm;
+    std::array<fitted::Bq, nb> det, det2;
+    std::array<double, nb> floorv {}, lev {}, gain {}, env {};
+    std::array<bool, nb> vadBand {};
+};
+} // namespace ns1
+
 class Quell final : public Effect
 {
 public:
@@ -421,6 +663,7 @@ public:
                 a.reset();
         power.fill (0.0);
         gainDb.fill (0.0);
+        ns1On = false; // round 190mg: the NS1 law's engine restarts (prepared again at the current rate)
     }
 
     void process (float* l, float* r, int n, const EffectParams& p, double) noexcept override
@@ -430,6 +673,20 @@ public:
         const auto out = (float) dbToGain (outputDb (p[output]));
         if (on (p[matched]))
         {
+            // round 190mg (ns1): the NS1 law above 0 % (and from then on, so that automation down to 0 stays continuous;
+            // its Amount 0 is the same bare pair); Amount 0 from the start keeps the zero law's path bit for bit
+            if (on (p[ns1Law]) && (amt > 0.0 || ns1On))
+            {
+                if (! ns1On)
+                {
+                    ns1Engine.prepare (sr);
+                    ns1On = true;
+                }
+                const auto red = ns1Engine.process (l, r, n, amt, listenOnly, out);
+                meter[0].store ((float) std::clamp (red / 30.0, 0.0, 1.0), std::memory_order_relaxed);
+                return;
+            }
+            ns1On = false;
             if (! matchedOn)
             {
                 matchedEngine.prepare (sr);
@@ -505,9 +762,35 @@ private:
     std::array<std::atomic<float>, bands + 1> meter {};
     fitted::Engine matchedEngine;
     bool matchedOn = false;
+    ns1::Engine ns1Engine; // round 190mg
+    bool ns1On = false;
 };
 } // namespace
 
+Ns1Layout ns1Layout (double amount) noexcept
+{
+    // the reference's five saved states (RealWorld 85 / 86 = the corners, 206 / 203 = the cuts, 226 = the position) at
+    // 0 / 20 / 35 / 50 / 100 %; the high split's Q measured on our probes / renders (REA_rodada190mg_ns1.md §2)
+    static constexpr double at[] { 0.0, 0.2, 0.35, 0.5, 1.0 };
+    static constexpr double lo[] { 60.0, 60.0, 65.0, 70.0, 110.0 }, hi[] { 16000.0, 14000.0, 13500.0, 13000.0, 8000.0 };
+    static constexpr double cut[] { 0.0, -10.0, -25.0, -40.0, -70.0 }, pos[] { 0.0, 0.02, 0.0325, 0.045, 0.8 };
+    static constexpr double q[] { 0.8992, 0.370, 0.392, 0.432, 0.6992 };
+    const auto a = std::clamp (amount, 0.0, 1.0);
+    int k = 0;
+    while (k < 3 && a > at[k + 1])
+        ++k;
+    const auto t = (a - at[k]) / (at[k + 1] - at[k]);
+    const auto lin = [&] (const double* v) { return v[k] + (v[k + 1] - v[k]) * t; };
+    const auto lg = [&] (const double* v) { return v[k] * std::pow (v[k + 1] / v[k], t); };
+    Ns1Layout l;
+    l.minFc = lg (lo);
+    l.maxFc = lg (hi);
+    l.cutDb = lin (cut);
+    l.position = lin (pos);
+    l.q2 = lin (q);
+    return l;
+}
+
 std::unique_ptr<Effect> make (const Tuning& t) { return std::make_unique<Quell> (t); }
 std::unique_ptr<Effect> makeTracked (const Track& t) { return std::make_unique<Quell> (defaultTuning(), &t); }
 

+ 19 - 1
src/core/VoiceTools.h

@@ -53,10 +53,28 @@ enum Param
     // nothing dynamic, no shelf. On (the NS1 translator sets it): Amount 0 is that bare pair, and up to 20 % (the first
     // measured setting, where the engine's fit holds) the engine's output fades in over it — both run on the same
     // all-pass skeleton, so the fade is phase-coherent. 0 = off: new instances and every project saved before, bit for bit
-    zeroLaw = paramCount
+    zeroLaw = paramCount,
+    // round 190mg (ns1), hidden (saved while non-zero): the NS1 law. [REA of the NS1 trial's DSP for the structure,
+    // our own probes and renders for every number; REA_rodada190mg_ns1.md] at Amount > 0 a new engine with the
+    // reference's own layout replaces round 124's: a zero-latency front end of two complementary all-pass splits whose
+    // low / high parts are cut as the Amount rises (corners and cuts move with it), six bands of three cascaded
+    // Regalia–Mitra cuts sharing one gain, each band's gain from a slewing noise-floor tracker and level follower, a
+    // threshold between them, a soft fourth-power weight, opening / closing smoothing and a voice-activity flag that
+    // lifts the thresholds in pauses. Amount 0 stays the zero law's bare pair (bit for bit). 0 = off: new instances and
+    // every project saved before; the NS1 translator sets it
+    ns1Law
 };
 // round 190lf: the Amount up to which zeroLaw fades the engine in over the bare all-pass pair
 constexpr double zeroFade = 0.2;
+// round 190mg (ns1): the NS1 law's layout at an Amount (0..1): split corners (Hz; the outer band centres too), the
+// cut of the parts below / above them (dB, ≤ 0) and the threshold's position between the floor and the level. A law
+// through the reference's five saved states (0 / 20 / 35 / 50 / 100 %), linear in between (corners in log)
+struct Ns1Layout
+{
+    double minFc = 60.0, maxFc = 16000.0, cutDb = 0.0, position = 0.0;
+    double q2 = 0.8992; // the high split's second-order Q (measured per setting on our probes / renders)
+};
+Ns1Layout ns1Layout (double amount) noexcept;
 constexpr int bands = 6;
 // crossover frequencies (Hz) between the six bands
 constexpr double split[bands - 1] { 105.0, 311.0, 921.0, 2727.0, 8075.0 };

+ 2 - 2
tests/Parity190lfNs1Tests.inc

@@ -88,10 +88,10 @@ TEST (parity190lf_ns1_is_translated_with_the_zero_law)
     namespace q = voicetools::quell;
     int n = 0;
     const auto zero = parity190jh::waves ("NS1 Stereo", "NS1", parity190jh::list (253, { { 85, "60" }, { 86, "16000" } }), n);
-    CHECK (zero.kind == EffectKind::quellDenoiser && n == 3 && zero.params[q::amount] == 0.0f);
+    CHECK (zero.kind == EffectKind::quellDenoiser && n == 4 && zero.params[q::amount] == 0.0f);
     CHECK (zero.params[q::matched] == 1.0f && zero.params[q::zeroLaw] == 1.0f);
     const auto half = parity190jh::waves ("NS1 Stereo", "NS1", parity190jh::list (253, { { 229, "50" } }), n);
-    CHECK (n == 3 && std::abs (half.params[q::amount] - 0.5f) < 1e-6f && half.params[q::zeroLaw] == 1.0f);
+    CHECK (n == 4 && std::abs (half.params[q::amount] - 0.5f) < 1e-6f && half.params[q::zeroLaw] == 1.0f);
 }
 
 TEST (parity190lf_ns1_zero_amount_is_the_bare_all_pass_pair)

+ 159 - 0
tests/Parity190mgNs1Tests.inc

@@ -0,0 +1,159 @@
+// Round 190mg (sub-round ns1): Quell's NS1 law (hidden [6]) — an engine with the Waves NS1's own structure for 20 … 100 %
+// (REA of the NS1 trial's DSP for the structure, owner's permission of 2026-11-17; every number fitted on our probes and
+// renders: /mnt/e/lynx-work/waves3_190mg/ns1/HANDOFF.md, docs/analise/REA_rodada190mg_ns1.md). 0 for new instances and
+// every project saved before (bit for bit: ns1/lab/gold.sh); the NS1 translator sets it. Amount 0 keeps the zero law's
+// bare all-pass pair bit for bit.
+#include <cmath>
+#include <random>
+
+#include "core/Effects.h"
+#include "core/VoiceTools.h"
+
+namespace parity190mgns1
+{
+inline lynx::EffectSlot quell (double amount, bool ns1)
+{
+    namespace q = lynx::voicetools::quell;
+    auto s = lynx::makeEffectSlot (lynx::EffectKind::quellDenoiser);
+    s.params[q::amount] = (float) amount;
+    s.params[q::matched] = 1.0f;
+    s.params[q::zeroLaw] = 1.0f;
+    s.params[q::ns1Law] = ns1 ? 1.0f : 0.0f;
+    return s;
+}
+inline void run (const lynx::EffectSlot& s, double sr, std::vector<float>& l, std::vector<float>& r)
+{
+    auto fx = lynx::makeEffect (s);
+    fx->prepare (sr);
+    for (std::size_t off = 0; off < l.size(); off += 256)
+        fx->process (l.data() + off, r.data() + off, (int) std::min<std::size_t> (256, l.size() - off), s.params, 120.0);
+}
+// steady noise (σ = `level`) with a 1 kHz tone of amplitude `tone` from `toneFrom` s on
+inline void signal (std::vector<float>& l, std::vector<float>& r, double sr, double level, double tone, double toneFrom)
+{
+    std::mt19937 rng (1904);
+    std::normal_distribution<double> g (0.0, 1.0);
+    for (std::size_t i = 0; i < l.size(); ++i)
+    {
+        const double t = (double) i / sr;
+        const double s = t >= toneFrom ? tone * std::sin (2.0 * M_PI * 1000.0 * t) : 0.0;
+        l[i] = (float) (s + level * g (rng));
+        r[i] = (float) (s + level * g (rng));
+    }
+}
+inline double rmsDb (const std::vector<float>& x, std::size_t from, std::size_t to)
+{
+    double e = 0.0;
+    for (std::size_t i = from; i < to; ++i)
+        e += (double) x[i] * x[i];
+    return 10.0 * std::log10 (e / (double) (to - from) + 1e-30);
+}
+inline double distanceDb (const std::vector<float>& y, const std::vector<float>& ref)
+{
+    double e = 0.0, s = 0.0;
+    for (std::size_t i = 0; i < y.size(); ++i)
+    {
+        e += ((double) y[i] - ref[i]) * ((double) y[i] - ref[i]);
+        s += (double) ref[i] * ref[i];
+    }
+    return 10.0 * std::log10 (e / s + 1e-30);
+}
+} // namespace parity190mgns1
+
+TEST (parity190mg_ns1_law_is_hidden_and_off_for_new_and_old_instances)
+{
+    using namespace lynx;
+    namespace q = voicetools::quell;
+    CHECK (effectInfo (EffectKind::quellDenoiser).params.size() == 5 && q::ns1Law == 6); // hidden: no control, no string
+    auto s = makeEffectSlot (EffectKind::quellDenoiser);
+    CHECK (s.params[q::ns1Law] == 0.0f && savedEffectParamCount (s) == 5);
+    s.params[q::ns1Law] = 1.0f;
+    CHECK (savedEffectParamCount (s) == 7);
+}
+
+TEST (parity190mg_ns1_is_translated_with_the_ns1_law)
+{
+    using namespace lynx;
+    namespace q = voicetools::quell;
+    int n = 0;
+    const auto s = parity190jh::waves ("NS1 Stereo", "NS1", parity190jh::list (253, { { 229, "35" } }), n);
+    CHECK (s.kind == EffectKind::quellDenoiser && n == 4 && std::abs (s.params[q::amount] - 0.35f) < 1e-6f);
+    CHECK (s.params[q::matched] == 1.0f && s.params[q::zeroLaw] == 1.0f && s.params[q::ns1Law] == 1.0f);
+}
+
+TEST (parity190mg_ns1_layout_follows_the_five_saved_states)
+{
+    namespace q = lynx::voicetools::quell;
+    // RealWorld 85 / 86 / 206 = 203 / 226 of NS1's states at 0 / 20 / 35 / 50 / 100 %
+    const double at[] { 0.0, 0.2, 0.35, 0.5, 1.0 }, lo[] { 60, 60, 65, 70, 110 }, hi[] { 16000, 14000, 13500, 13000, 8000 };
+    const double cut[] { 0, -10, -25, -40, -70 }, pos[] { 0, 0.02, 0.0325, 0.045, 0.8 };
+    for (int k = 0; k < 5; ++k)
+    {
+        const auto l = q::ns1Layout (at[k]);
+        CHECK (std::abs (l.minFc - lo[k]) < 1e-9 && std::abs (l.maxFc - hi[k]) < 1e-6);
+        CHECK (std::abs (l.cutDb - cut[k]) < 1e-9 && std::abs (l.position - pos[k]) < 1e-12);
+    }
+    // in between: monotone (the corners close in, the cuts deepen, the position rises)
+    auto prev = q::ns1Layout (0.0);
+    for (int i = 1; i <= 100; ++i)
+    {
+        const auto l = q::ns1Layout (i / 100.0);
+        CHECK (l.minFc >= prev.minFc && l.maxFc <= prev.maxFc && l.cutDb <= prev.cutDb && l.position >= prev.position);
+        prev = l;
+    }
+}
+
+TEST (parity190mg_ns1_amount_zero_keeps_the_zero_law_bit_for_bit)
+{
+    using namespace lynx;
+    for (const double sr : { 44100.0, 48000.0, 96000.0 })
+    {
+        std::vector<float> x ((std::size_t) sr), r ((std::size_t) sr);
+        parity190mgns1::signal (x, r, sr, 0.01, 0.2, 0.5);
+        auto la = x, ra = r, lb = x, rb = r;
+        parity190mgns1::run (parity190mgns1::quell (0.0, false), sr, la, ra);
+        parity190mgns1::run (parity190mgns1::quell (0.0, true), sr, lb, rb);
+        CHECK (la == lb && ra == rb);
+        // just above 0 % the NS1 engine is its own open pair (no cut yet, the depth fades in): 60 Hz Q 1 · 16 kHz Q 0.8992
+        // against round 124's 60.07 Hz Q 0.9998 · 16 kHz Q 0.8992 — no audible step
+        auto lc = x, rc = r;
+        parity190mgns1::run (parity190mgns1::quell (1e-6, true), sr, lc, rc);
+        CHECK (parity190mgns1::distanceDb (lc, la) < -45.0);
+    }
+}
+
+TEST (parity190mg_ns1_takes_steady_noise_down_and_lets_a_tone_through)
+{
+    using namespace lynx;
+    for (const double sr : { 44100.0, 48000.0, 96000.0 })
+    {
+        const auto n = (std::size_t) (8.0 * sr);
+        std::vector<float> x (n), r (n);
+        parity190mgns1::signal (x, r, sr, 0.003, 0.3, 5.0); // −50 dBFS noise, then a −13 dBFS tone over it from 5 s
+        auto l1 = x, r1 = r;
+        parity190mgns1::run (parity190mgns1::quell (1.0, true), sr, l1, r1);
+        const auto s = (std::size_t) sr;
+        const auto noiseIn = parity190mgns1::rmsDb (x, 4 * s, 5 * s), noiseOut = parity190mgns1::rmsDb (l1, 4 * s, 5 * s);
+        CHECK (noiseOut < noiseIn - 10.0); // the noise floor taken down at 100 %
+        const auto toneIn = parity190mgns1::rmsDb (x, 7 * s, 8 * s), toneOut = parity190mgns1::rmsDb (l1, 7 * s, 8 * s);
+        CHECK (toneOut > toneIn - 4.0); // a tone far above it passes
+        // Listen plays what is taken away: processed + listened = the open path (the same engine's front end)
+        auto sl = parity190mgns1::quell (1.0, true);
+        sl.params[voicetools::quell::listen] = 1.0f;
+        auto l2 = x, r2 = r;
+        parity190mgns1::run (sl, sr, l2, r2);
+        CHECK (parity190mgns1::rmsDb (l2, 4 * s, 5 * s) > noiseOut);
+    }
+}
+
+TEST (parity190mg_ns1_differs_from_round_124_above_zero)
+{
+    using namespace lynx;
+    const double sr = 48000.0;
+    std::vector<float> x (48000), r (48000);
+    parity190mgns1::signal (x, r, sr, 0.01, 0.2, 0.3);
+    auto la = x, ra = r, lb = x, rb = r;
+    parity190mgns1::run (parity190mgns1::quell (0.5, false), sr, la, ra);
+    parity190mgns1::run (parity190mgns1::quell (0.5, true), sr, lb, rb);
+    CHECK (parity190mgns1::distanceDb (lb, la) > -40.0);
+}

+ 2 - 2
tests/VoiceToolsTests119.inc

@@ -255,8 +255,8 @@ TEST (waves_h_delay_ns1_doubler_translate_round119)
             values += i == 229 ? "23.1 " : "0 ";
         int n = 0;
         const auto s = slotFor ("NS1", values, n);
-        // round 190lf: three parameters (the zero law too: 0 % = NS1's bare all-pass pair)
-        CHECK (n == 3 && s.kind == EffectKind::quellDenoiser && std::abs (s.params[voicetools::quell::amount] - 0.231f) < 1e-5f);
+        // round 190lf: the zero law too (0 % = NS1's bare all-pass pair); round 190mg: and the NS1 law (four parameters)
+        CHECK (n == 4 && s.kind == EffectKind::quellDenoiser && std::abs (s.params[voicetools::quell::amount] - 0.231f) < 1e-5f);
         CHECK (s.params[voicetools::quell::matched] == 1.0f); // round 124: the engine fitted to the trial
         CHECK (s.params[voicetools::quell::zeroLaw] == 1.0f);
     }

+ 1 - 0
tests/tests.cpp

@@ -17781,6 +17781,7 @@ TEST (fl_low_lifter_matches_fl_engine)
 #include "Parity190lfDynTests.inc" // round 190lf (dyn): Glow Leveler's cell law (REA of the Waves CLA-2A), CLA-2A on it
 #include "Parity190lfVerbTests.inc" // round 190lf (verb): H-Delay's measured loop (Echoform hybrid law 1), TrueVerb's direct sound
 #include "Parity190lfNs1Tests.inc" // round 190lf (ns1): Quell's zero law (REA of the Waves NS1: 0 % = its bare all-pass pair), NS1 on it
+#include "Parity190mgNs1Tests.inc" // round 190mg (ns1): Quell's NS1 law (REA of the Waves NS1: its own structure for 20 … 100 %), NS1 on it
 #include "Sampler190dhTests.inc"
 #include "Fix190eaTests.inc"
 #include "Iss158Tests.inc"