Răsfoiți Sursa

Merge origin/rea3_190lp (Crest Smooth / Op-El, Apex / Sentry revision 1) into parity190mb

Conflicts resolved in the 0.1.30 rollup's order: Crest's revision after busLaw (revisionOn: the console law takes
precedence), Echoform's lineLaw (#109) before valhallaLaw (#110, the ValhallaDelay substitute moved with it), Epoch's
loopLaw before shortTrim (both applied: the loop law's level, then Concert Hall's short-decay tone trim); 190kw's
Crest follower fields renamed q0 ... q3 (the console law keeps c1 / c2). Tests updated for the new indices.
Ka1-S 2 săptămâni în urmă
părinte
comite
621cd37bd
62 a modificat fișierele cu 4964 adăugiri și 74 ștergeri
  1. 1 1
      CONTRIBUTING.md
  2. 1 1
      README.md
  3. 435 1
      docs/PARITY.md
  4. 2 2
      docs/PLUGINS.md
  5. 7 2
      docs/PLUGIN_FALLBACK.md
  6. 429 0
      docs/analise/REA_rodada190kw.md
  7. 357 0
      docs/analise/REA_rodada190lg.md
  8. 230 0
      docs/analise/REA_rodada190lp.md
  9. 19 3
      scripts/flref_compare.py
  10. 2 0
      src/core/AlsDevices.cpp
  11. 3 0
      src/core/AlsDevicesLot2.cpp
  12. 1 0
      src/core/AlsDevicesLot3.cpp
  13. 1 0
      src/core/AlsDevicesLot4.cpp
  14. 158 12
      src/core/ApexLimiter.cpp
  15. 4 0
      src/core/ApexLimiter.h
  16. 2 0
      src/core/CleanVoice.h
  17. 1 0
      src/core/DemoSongs.h
  18. 971 2
      src/core/DynamicsSuite.cpp
  19. 21 3
      src/core/DynamicsSuite.h
  20. 83 4
      src/core/EchoSuite.cpp
  21. 12 1
      src/core/EchoSuite.h
  22. 34 0
      src/core/Effects.cpp
  23. 31 0
      src/core/EmberSaturnStyles.inc
  24. 189 1
      src/core/FabFilterStates.cpp
  25. 4 1
      src/core/FabFilterStates.h
  26. 83 0
      src/core/FacetEq.cpp
  27. 21 0
      src/core/FacetEq.h
  28. 82 3
      src/core/LynxVerbs.cpp
  29. 4 1
      src/core/LynxVerbs.h
  30. 1 0
      src/core/MasterLooks.cpp
  31. 352 16
      src/core/MixSuite.cpp
  32. 25 1
      src/core/MixSuite.h
  33. 21 3
      src/core/PluginSubstitutes.cpp
  34. 7 3
      src/core/PluginSubstitutes.h
  35. 1 0
      src/core/ReferenceMatch.h
  36. 2 0
      tests/Dyn190dmTests.inc
  37. 4 1
      tests/DynamicsTests108.inc
  38. 5 1
      tests/LynxVerbTests100.inc
  39. 1 0
      tests/Parity128aTests.inc
  40. 1 0
      tests/Parity147Tests.inc
  41. 1 0
      tests/Parity150bTests.inc
  42. 1 0
      tests/Parity190arApexTests.inc
  43. 2 1
      tests/Parity190arTranslateTests.inc
  44. 4 4
      tests/Parity190itTests.inc
  45. 3 3
      tests/Parity190jhTests.inc
  46. 5 1
      tests/Parity190ktTests.inc
  47. 18 0
      tests/Parity190kwGold.inc
  48. 10 0
      tests/Parity190kwSatGold.inc
  49. 235 0
      tests/Parity190kwSatTests.inc
  50. 178 0
      tests/Parity190kwTests.inc
  51. 225 0
      tests/Parity190kwTl3Tests.inc
  52. 108 0
      tests/Parity190kwVvTests.inc
  53. 88 0
      tests/Parity190lgMbTests.inc
  54. 68 0
      tests/Parity190lgQ4Tests.inc
  55. 45 0
      tests/Parity190lgVersTests.inc
  56. 8 0
      tests/Parity190lpCrestGold.inc
  57. 115 0
      tests/Parity190lpCrestTests.inc
  58. 228 0
      tests/Parity190lpLgTests.inc
  59. 2 2
      tests/Parity190lyTests.inc
  60. 3 0
      tests/Reverb190bzTests.inc
  61. 9 0
      tests/tests.cpp
  62. 0 0
      website/_src/plugins.js

+ 1 - 1
CONTRIBUTING.md

@@ -16,7 +16,7 @@ Thanks for wanting to help! LYNX SHARE is an alpha, so bug reports, ideas and pu
 ## Clean-room rule
 LYNX SHARE recreates the FL Studio *workflow*, not its code or artwork.
 - Don't copy code, graphics, presets, samples or names from FL Studio or any third-party plugin.
-- Third-party plugins are studied as black boxes only (host them, feed signals, measure). Never decompile, patch or bypass their licensing.
+- Third-party plugins are studied as black boxes (host them, feed signals, measure). Since 2026-11, by the project owner's decision, some stand-ins were also informed by clean-room static analysis of the third-party binaries (documented in [`docs/analise/REA_*.md`](docs/analise)); that is done only by the owner's decision, and nothing found that way is copied — no code, tables, presets or other content. Never patch a third-party plugin or bypass its licence protection.
 
 ## License
 By contributing you agree that your contribution is licensed under the [GNU AGPL v3](LICENSE), like the rest of LYNX SHARE.

+ 1 - 1
README.md

@@ -309,7 +309,7 @@ LYNX SHARE ships **native** plugins inspired by the third-party plugins producer
 
 | Vendor | Inspired by → LYNX SHARE plugin |
 |---|---|
-| **FabFilter** | Pro-L 2 → **Apex Limiter** · Pro-C 2 / 3 → **Crest Compressor** · Pro-MB → **Prism Multiband** · Pro-G → **Sentry Gate** · Pro-Q 2 / 3 / 4 → **Facet EQ** · Pro-DS → **Hush De-esser** · Saturn → **Ember Saturator** · Pro-R 2 → LuxeVerb (stand-in) · Timeless 3 → Fruity Delay 3 (stand-in) |
+| **FabFilter** | Timeless 3 → **Echoform** · Pro-L 2 → **Apex Limiter** · Pro-C 2 / 3 → **Crest Compressor** · Pro-MB → **Prism Multiband** · Pro-G → **Sentry Gate** · Pro-Q 2 / 3 / 4 → **Facet EQ** · Pro-DS → **Hush De-esser** · Saturn → **Ember Saturator** · Pro-R 2 → LuxeVerb (stand-in) |
 | **Valhalla DSP** | VintageVerb → **Epoch Verb** · Room → **Atrium** · Plate → **Foil Plate** · Supermassive → **Nebula** · Shimmer → **Halo** · FutureVerb → **Horizon** · Delay → **Echoform** · FreqEcho → **Spiral Echo** · SpaceModulator → **Orbit** · UberMod → **Lattice Mod** |
 | **Antares** | Auto-Tune → **LYNX Tune** |
 | **Waves** | H-Delay → **Echoform** · SuperTap → **Echoform** · CLA-2A → **Glow Leveler** · CLA-76 → **Crest Compressor** · SSLComp → **Crest Compressor** · SSL E-Channel → **Ridge Strip** · S1 Imager → **Stereo Shaper** · DeEsser → **Hush De-esser** · NS1 → **Quell Denoiser** · Doubler → **Gemini Doubler** · Tune Real-Time → **LYNX Tune** · RVerb, H-Reverb, TrueVerb → Reeverb 2 (stand-in) · L1, L2, L3, L4 → Limiter (stand-in) · Renaissance Compressor → Compressor (stand-in) · CLA-76, CLA-3A, C1, SSLComp, API-2500 → Compressor (stand-in) · Q10, Renaissance EQ, SSL EQ → Parametric EQ (stand-in) |

+ 435 - 1
docs/PARITY.md

@@ -11,7 +11,11 @@ configuration or design?" Round 114 scored only the layout. This audit checks **
 
 Sources: each original's official trial installed on this PC, hosted black-box in our own host (parameter lists read
 through the public VST3 API — every control, range and option text — plus screenshots of each view as a user sees
-it), the official manuals, and `docs/specs/*.md`. Nothing was decompiled; no graphics, presets or names were copied.
+it), the official manuals, and `docs/specs/*.md`. Round 128 decompiled nothing; no graphics, presets or names were copied.
+Since 2026-11, by the project owner's decision, some sound work (the FabFilter roles from round 190kw on) was also
+informed by clean-room static analysis of the third-party binaries — laws and structure in our own words, evidence in
+`docs/analise/REA_*.md`; no third-party code, tables, presets or content is copied and licence protections are never
+bypassed. Those rounds' sections say so.
 Reference screenshots stay outside git (`D:\lynx-work\parity128\ref`); the side-by-side pages are on the Desktop
 (`LYNX-paridade`).
 
@@ -741,6 +745,8 @@ lookahead on, expert mode, display range, analyser options.
 
 **After round 152** (REA_rodada152 §1–2): configuration **10**/10, design **10**/10 (sound closer) — the attack in the gain stage (slow attacks 50 – 100 % now within 0.4 dB of the reference over the first 400 ms; round 150 was up to 3 dB off), Dynamic phase's own band shapes for narrow bands and cuts (edges moved out, gain moved — the measured table, ≤ 0.05 dB), the 0.8-octave minimum band width in every mode. Left: Linear phase on LYNX's prewarped axis (≤ 0.35 dB at a 3 kHz edge, 6 dB/oct), mixed 6 / n sides beyond the measured table.
 
+**After round 190lg** (REA_rodada190lg §7, static REA of the reference's `BandCompander`): configuration **10**/10, design **10**/10 (sound closer) — translated Pro-MB states run **revision 1** (hidden): the reference's own detector graph per band (gain computer with its 0.6 × knee + 12 dB soft range → peak hold → low pass timed by the look-ahead → two followers joined by a max), the inverted graph for upward compression / downward expansion, the look-ahead switch's lead (half a period of the band's centre + the band's own) and 20 ms latency. Band gain trajectories on the mix within 0.02 – 0.09 dB of the reference (were 0.5 – 1.8 dB); refcap030 8.17 → 9.32, refcap182 programme 7.64 → 9.16, tp172b 7.60 → 9.05, no file down. Projects saved before keep the measured detector. Left: the knob curve is LYNX's own smooth fit (within 13 % of the reference's release times on 15 … 100 %).
+
 ## Sentry Gate ← Pro-G
 
 Parameters of the original: Threshold, Ratio, Range, Style (Classic, Clean, Vocal, Guitar, Upward; Ducking as an
@@ -4302,3 +4308,431 @@ Score: scripts/fxparity.py with round 190lg's time-based alignment window, befor
 translated Facet costs its bands (+0.1 … 0.3 % of one core over flat). Open: AirEQ's per-band Character and "steep" bell
 switch, the shallow 6 dB low cut's resonance (no capture with them on; the licence ended 11-13), Infinity EQ's Q2, the other
 VM EQ modules (FG-73 / FG-N / FG-S / SD-PE1 / CS-EQ / CS-Lift: same route, thin banks).
+## Round 190kw: static REA of the references — Crest gets Pro-C 3's own style laws
+
+The owner allowed static reverse-engineering of the third-party binaries for parity (clean-room: the laws are understood
+and re-written in LYNX's own code; nothing copied, nothing bypassed). The binaries keep MSVC RTTI, which names every DSP
+class; the Pro-C 3 style laws were read from the decompiled classes and rebuilt (evidence, addresses and constants:
+docs/analise/REA_rodada190kw.md; lab /mnt/e/lynx-work/rea190kw/).
+
+**Built (Crest, hidden `crest::revision` = 1):**
+- Clean / Classic / Opto (the reference's "V1" styles): the instantaneous reduction of the side chain's sample level, smoothed
+  in dB by each style's own two-stage, program-dependent follower (every step 1 − exp(−ln 10 / T), T in samples); the
+  style's Bézier knee shape blended with the quadratic knee by the knob; attack lo + span · a³ and a release that shortens
+  with the attack, per style. Classic is a feedback design (its target reads the reduction already applied).
+- Vocal / Mastering / Bus / Punch / Pumping: the reference wires them from its generic gain computer (quadratic knee, ratio,
+  range; Vocal its own soft curve without ratio) and generic followers (attack / release blended with the step size, the
+  step's exponential lengthening, maxima between stages); Mastering also holds the reduction 10 ms and smooths it at 10 Hz.
+- A new Crest and a translated Pro-C 3 state run revision 1; a project or preset saved before keeps 0 (the fitted laws, bit
+  for bit); Live's device maps and the plug-in substitutes' Crest keep 0 (they were measured on the fitted laws); with Auto
+  release on, Clean / Classic / Opto keep the fitted law. Allround (Versatile), Smooth, Upward, Two-way (TTM), Op-El and
+  Vari-Mu are untouched (generated graph classes in the reference: not rebuilt this round).
+
+**Scores** (refcap030 bank, Pro-C 3 → Crest through the translator; before = the branch point, after = revision 1):
+
+| block | files | before → after | up / same / down |
+|---|---|---|---|
+| grid | 238 | 6.35 → 7.87 | 136 / 102 / 0 |
+| mode | 48 | 6.56 → 8.54 | 47 / 1 / 0 |
+| pairs | 36 | 6.22 → 9.44 | 35 / 1 / 0 |
+| prog | 42 | 5.95 → 7.64 | 24 / 18 / 0 |
+| sr44 / sr48 / sr96 | 20 each | 6.55 / 6.70 / 6.50 → 7.85 / 7.95 / 7.65 | 35 / 25 / 0 |
+| styles | 84 | 6.01 → 7.71 | 48 / 36 / 0 |
+| **all** | **508** | **6.30 → 7.99** | **325 / 183 / 0** |
+
+Per style (all blocks): Clean 6.59 → 8.91, Classic 5.73 → 8.96, Opto 5.76 → 8.21, Vocal 5.73 → 8.77, Mastering 5.46 → 8.00,
+Bus 6.13 → 9.18, Punch 7.05 → 8.95, Pumping 6.73 → 9.31; the six untouched styles are unchanged file for file.
+
+Other banks: refcap182's programme (Pro-C 3, 25 files) 6.04 → 7.52 (15 up, 0 down); tp172b's Pro-C 3 captures (20 files)
+6.2 → 7.5 (S1 / S2 / S4 up to 8–9, D and S3 unchanged, 0 down).
+
+**Old projects.** Revision 0 renders byte for byte as the base commit: `gold/gold.sh` (base fxrender against the round's,
+every Pro-C 3 style's state with the revision forced off + Crest defaults over five styles, 44.1 / 48 / 96 kHz): 57 / 57
+identical; fingerprints of both revisions in tests/Parity190kwGold.inc. The editor's static curve follows the law that runs
+(revision 1: the reference's curves; revision 0 unchanged).
+
+**CPU** (thread time on one pinned core, 20 s at 48 kHz in blocks of 512, best of 5, three runs; % of real time, revision 0 →
+1): Clean 0.54 … 0.64 → 0.46 … 0.58, Classic 0.46 … 0.62 → 0.46 … 0.64, Opto 0.50 … 0.61 → 0.35 … 0.55, Vocal 0.78 … 1.08 →
+1.01 … 1.06, Mastering 0.54 … 0.68 → 0.81 … 0.90, Bus 0.43 … 0.47 → 0.70 … 0.75, Punch 0.49 … 0.53 → 0.28 … 0.37, Pumping
+0.38 … 0.42 → 0.52 … 0.60. Bus / Mastering / Pumping cost up to +0.3 point of one core (three followers whose times move
+with every step: one exp each per sample; the coefficient is cached while the time holds). No latency change.
+
+**Still off:** Upward 6.62, Two-way (TTM) 7.38 and Vari-Mu 6.19 keep their fitted laws (the reference builds them as
+generated graph classes — `VariMuCompressor` is a balanced tube-pair model — read but not rebuilt); Clean / Classic / Opto's
+auto release. (Allround / Versatile: built in round 190lg; Smooth 5.08 and Op-El 5.85: built in round 190lp; both below.)
+**Round 190lg — Allround = Pro-C 3's Versatile (its default style), revision 1.** Rebuilt from the reference's own graph
+(`VersatileCompressor_MainCompressorAlgorithm`, read statically; REA notes docs/analise/REA_rodada190lg.md): two gain
+computers on two readings of the linked side-chain level, working on the reduction share 1 − 10^(−GR / 20) — slow: 0.979 ×
+the level + 0.0203 × its 204 Hz low-pass, then the knob-timed follower (attack 0.8 ms + 249.2 ms · a³, release 10 ms +
+2.49 s · tan (1.2 r²) / tan (1.2), auto release k / (√y + 1)); fast: 0.91 × its 6.39 kHz low-pass, then a slew limiter
+(LYNX's own smooth fits of the reference's knob curves; its fall at half the fit, which reads round 108's measured
+release, 59.5 against 61.6 ms) — and the reduction max (slow, w · fast), w = 0.9 + 0.0398 · fast. The reference's random
+mixer drifts run as their mean; the attack knob's two step-dependent follower terms are not built (every reading scored
+lower on the bank). Revision 1 never shipped (round 190kw is on no released branch), so Versatile joins it: a new Crest
+and a translated Pro-C 3 state run it, a project saved before keeps 0, Live's maps and the substitutes keep 0.
+
+| bank (new time-based scorer, before and after) | files | before → after | up / same / down |
+|---|---|---|---|
+| refcap030 Pro-C 3, all blocks | 508 | 7.99 → **8.08** | 32 / 476 / 0 |
+| · Versatile files | 38 | 6.66 → **7.82** | 32 / 6 / 0 |
+| · grid / sr44 / sr48 / sr96 / styles | 238 / 20 / 20 / 20 / 84 | 7.87 / 7.85 / 7.95 / 7.65 / 7.71 → 7.96 / 8.10 / 8.15 / 7.90 / 7.82 | 32 up |
+| · mode / pairs / prog, every other style | | unchanged file for file | 0 / 126 / 0 |
+| refcap182 programme | 25 | 7.52 → **7.64** | 3 / 22 / 0 (D bass / drums / guitar) |
+| tp172b (its D settings are Versatile) | 20 | 7.55 → **7.95** | 4 / 16 / 0 (D: ESR −21 … −27 → −44 … −52 dB) |
+
+Old projects: `gold/gold.sh` (fxrender with the revision forced off against round 190kw's): 57 / 57 identical; the one
+revision-1 Allround fingerprint in tests/Parity190kwGold.inc moves to the new law. CPU (thread time, one pinned core, 20 s
+at 48 kHz, best of 5, three runs): Allround 0.62 … 0.66 % → 0.97 … 1.00 % of a core (+0.35 point: two gain computers, two
+low-passes and the share's exp / log a sample).
+
+**Round 190lp — Smooth and Op-El = Pro-C 3's own graphs (revision 1).** Read statically (REA notes
+docs/analise/REA_rodada190lp.md, part crest) and rebuilt in LYNX's own code on the reduction share 1 − 10^(−GR / 20), as
+Versatile:
+- **Smooth** — a feed-forward stand-in for a feedback design: a first gain computer (threshold + 0.21 dB, its ratio the
+  knob's up to 10 : 1 then easing towards 16 : 1) drives two followers (the knob times, release × 0.44; attack × 9,
+  release × 2.26) whose max (× 0.761 / 0.769) turns the side chain down before the main gain computer; that one (its
+  threshold × a factor of the ratio, 1 at 1 : 1 → about 1.18 at 20 : 1) drives C0 (the knob's attack, release × 0.43) and
+  C1 (attack × 9, release × 2.25); the reduction max (A · C0, C1), A = 1.0081 − 0.0123 · 0.610 · C0 · F0. Knob laws:
+  attack 0.25 s · a³, release 0.02 s + 2.48 s · tan (1.2 r²) / tan (1.2), auto-release constant from LYNX's fit of the
+  reference's curve.
+- **Op-El** — two gain computers (the knobs'; the knob's ratio with a fixed 30 dB knee and 60 dB range), their squared
+  shares followed by a fast (attack 0.998 × + 0.5 ms, release 0.596 × + 10 ms), a slower (9.99 × + 2 ms / 1.79 × + 30 ms)
+  and a very slow follower (149.9 × + 15 ms / 4.77 × + 80 ms), weighted 0.8 / 0.15 / 0.05 and summed in power; the first
+  reads the side chain through a wide −11 dB high shelf (LYNX's own second-order shelf at 0.4167 × the rate, ≤ 26.7 kHz).
+LYNX's smooth fits replace the reference's piecewise-linear curves (the ratio factor, the ratio easing, the auto-release
+constant). Not built: Upward (its loud-signal cut and expansion detector mode not decoded), TTM (a multiband object) and
+Vari-Mu (a feedback tube model): they keep their fitted laws. Revision 1 still never shipped, so both join it.
+
+| bank (time-window scorer, before = rea2_190lg's final fxr_m4) | files | before → after | up / same / down |
+|---|---|---|---|
+| refcap030 Pro-C 3, all blocks | 508 | 8.08 → **8.35** | 51 / 457 / 0 |
+| · Smooth files | 26 | 5.08 → **7.96** | 26 / 0 / 0 (stairs ESR −9 … −20 → −39 … −54 dB; mix −24 → −31) |
+| · Op-El files | 26 | 5.85 → **8.19** | 25 / 1 / 0 (stairs ESR −14 … −24 → −28 … −38 dB; mix −28 → −57) |
+| · grid / prog / styles blocks | 238 / 42 / 84 | 7.96 / 7.64 / 7.82 → 8.33 / 7.79 / 8.31 | the 51 up |
+| · every other style's file (all blocks: mode, pairs, sr44 / 48 / 96 included) | 456 | unchanged file for file (score, rms, spectrum, ESR) | 0 / 456 / 0 |
+| refcap182 programme / tp172b (no Smooth or Op-El setting) | 25 / 20 | 7.64 / 8.0 = | 0 / 25 / 0, 0 / 20 / 0 (identical metrics) |
+
+Old projects: `gold/gold.sh` (fxrender with the revision forced off against rea2_190lg's): 72 / 72 renders identical (every
+Pro-C 3 style's state, the style values and the Smooth / Op-El voicings at 44.1 / 48 / 96 kHz); revision-0 fingerprints
+(tests/Parity190lpCrestGold.inc) equal the base's. CPU (thread time, 20 s at 48 kHz, best of 5, three runs, machine under
+load ~27): Smooth 0.62 … 0.68 % → 1.27 … 1.39 % of a core (+0.65 point: four followers, two gain computers and their
+exp / log a sample), Op-El 0.61 … 0.73 % → 1.03 … 1.16 % (+0.43 point: three followers, two gain computers, the shelf;
+Allround in the same runs 0.65 … 0.66 → 0.93 … 1.06, as round 190lg measured).
+
+## Round 190kw (Timeless 3 translator): FabFilter Timeless 3 → Echoform (the hidden line law)
+
+0.1.30 plugin parity. Black-box on captures already on disk (lab and evidence: `/mnt/e/lynx-work/rea190kw/tl3/`,
+REA_part.md). Same score as rounds 190iq … 190js (`scripts/fxparity.py`, 0–10): the references' own renders against LYNX
+loading the plug-in's saved state through its substitute.
+
+**Before.** `[fabfilter-timeless]` played Fruity Delay 3 at FL's default whatever the state said: 2.37 / 10 on refcap030's
+Timeless 3 bank (279 files), the lowest FabFilter row.
+
+**The state.** FFBS v1, 1007 values, one per parameter of the plug-in's own VST3 list in its order (refcap182's parameter
+dumps name every index; the plug-in's parameter-set order read statically agrees): delay time (the normalised knob), time
+pan, offset, sync, read mode, freeze, ping pong, 15 taps, feedback (0 … 2) / pan / cross mix / inverts, six filters
+(log2 Hz, gain, pan, peak, style, shape, slope, enabled, used), drive, lo-fi, diffuse, dynamics, pitch, width, wet level
+/ pan, mix (−1 … 1). Every capture's Filter 1 is "unused": its 55 frequency × style renders are the same sound.
+
+**What the reference does (measured).** The delay time knob, read off the echoes' sample positions at 44.1 / 48 / 96 kHz
+and the display texts (5 ms … 5 s; no closed form fits, so a monotone cubic in log ms through 11 points); echoes on whole
+samples; the dry at unity up to Mix 50 %, the wet 2 × Mix; the echo flat to 15 kHz through a linear-phase low-pass on
+every read (−2.3 dB at 20 kHz, −6 dB at 24 kHz at 48 kHz) and a 15.5 Hz one-pole low cut in the loop; the feedback per
+pass = the stored fraction; nearly linear (−0.08 dB at a 0 dBFS impulse), the loop settling near ±6 above 100 %; ping
+pong feeds the start side's own input only (programme regression: left echo 0.60 × left input, −0.03 × right).
+
+**Stand-in: Echoform** (the multi-mode echo already playing H-Delay, SuperTap and the Soundtoys delays). Fruity Delay 3 is
+FL-exact and has no line to match the reference's dry / wet law, read filter or whole-sample times; Echoform's Clean mode
+reaches them with one hidden addition: **the line law** (`echoform::lineLaw`, past the info's parameters and its revision:
+no control, no text; saved while non-zero; set only by a translated Timeless 3 state or the entry's preset `#109=1`): the
+reference's dry / wet law, the read through a Kaiser-windowed sinc fitted per rate (44.1 kHz: half length 12, cutoff 0.94
+of Nyquist, β 11; 48 kHz: 8 / 0.9175 / 9.5; 96 kHz: 4 / 0.8625 / 6.5; residual −44 … −49 dB under the echo), whole-sample
+delays, a 5.5 tanh (x / 5.5) limit instead of the Clean shaper and the line's 2 tanh (x / 2), and in ping pong the start
+side's own input. Without it (every project and preset saved before) Echoform renders bit for bit as before (six Echoform
+settings and Fruity Delay 3 compared byte for byte against the base build). The translator `timeless3`
+(`fabfilter::fromTimeless3`) carries delay time / sync (1/2 … 1/16, dotted / triplet offsets) / time pan, feedback (ping
+pong: the square, as Echoform's ping-pong loops √gain per side), feedback pan / cross mix, mix, width, wet level / pan,
+freeze, the filters in use (low pass → high cut, high pass → low cut), drive and diffuse; the last groups are by meaning,
+not measured (no capture uses them). Not carried: the extra taps, lo-fi, dynamics, pitch shift, feedback invert, the M/S
+channel mode, the modulation sources. Without a readable state (Timeless 2): the reference's default (a single 350 ms
+echo, no feedback, Mix 50 %, the line law).
+
+| refcap030 Timeless 3 block | files | before → after | up / same / down |
+|---|---|---|---|
+| grid (Filter 1 style × freq, inert: S1 250 ms / 50 %; ping pong × feedback, left impulse) | 125 | 1.94 → **7.68** | 122 / 3 / 0 |
+| grid2 (delay time × feedback 0 … 200 %, 96 kHz) | 25 | 2.16 → **5.88** | 24 / 1 / 0 |
+| mode (read mode, filter style, channel mode on S1) | 45 | 3.00 → **6.00** | 45 / 0 / 0 |
+| pairs (time × feedback, feedback × filter freq) | 36 | 1.75 → **5.03** | 36 / 0 / 0 |
+| sr44 / sr48 / sr96 (D, S1, S2 ping pong, S3 width 0) | 48 | 3.38 / 3.44 / 3.56 → **7.94 / 7.94 / 7.56** | 47 / 1 / 0 |
+| **all** | 279 | **2.37 → 6.93** | 274 / 5 / 0 |
+| refcap182 programme (D / S1 / S2 / S3 × drums, bass, guitar, vocal, mix) | 20 | 3.45 → **7.25** | 20 / 0 / 0 |
+
+What is still off: feedback at 100 % and above (the reference's loop grows to about ±6 and self-oscillates from nothing
+in ping pong; scores 1 … 5), the mode block's ir renders (the reference put the same state's echo at 12000 samples there and
+at 11999 in grid / sr48: a one-sample spread in its own captures; 4 / 10 on those 15 files), S1's programme with louder
+peaks (5 … 7). CPU (thread time, 20 s at 48 kHz, blocks of 512, best of 5, three runs on a loaded machine): Fruity Delay 3
+at its default 0.68 … 0.84 % → Echoform from the D / S1 / S2 states 1.50 … 2.12 % (the same settings without the line law
+1.32 … 1.68 %): Echoform's engine costs about twice Fruity Delay 3's (+0.8 … 1.2 points of one core).
+## Round 190kw (VintageVerb → Epoch)
+
+Built from the laws recovered by static REA of ValhallaVintageVerb (docs/analise/REA_rodada190kw.md §4; clean-room, LYNX's own
+code and tables). Lab and evidence: `/mnt/e/lynx-work/rea190kw/vvimpl/` (REA_part.md). Same score as rounds 190iq / it
+(`scripts/fxparity.py`, 0–10), the reference's own renders against LYNX loading the saved state through its translator.
+
+The step is a **hidden parameter past 190it's revision**: `verbs::epoch::loopLaw` (index 19, no control, no string, saved
+while non-zero). It is read only with the Measured law and revision 1. New instances and the VintageVerb translator get it.
+A project or preset saved before loads 0, so revisions 0 and 1 render bit for bit as the base commit did. Gold: 72 / 72
+renders (12 settings × revision 0 / 1 × 44.1 / 48 / 96 kHz, `gold/`); fingerprints in `tests/Parity190kwVvTests.inc`.
+
+| What the reference does (static, checked on the captures) | What loopLaw changes |
+|---|---|
+| No per-mode output gain. Each mode is a loop whose gain is the RT60 law over N gain stages, the input entering after a stage, so the wet energy is E(T, s) = E0 / (1 − 10^(−6 ℓ(s)/T)) with ℓ = c·L(s)/N | Epoch's level follows that law per mode: the base level at 0.513 s (the mode sweep's impulse energy), plus the reference's growth over Decay and Size (its own loop-length law per mode), minus Epoch's own growth. Epoch's growth was measured once per mode at 0.513 … 70 s, and over Size it is (0.3 + 0.7 s)^−0.64 at any Decay. Revision 1's per-mode tone trims still fade out by 1.41 s |
+| The first 80 ms hold over Decay (−10.65 dB at 0.51 / 7 / 33 s); Epoch's rose 3 dB from 2 to 4 s | The early taps hold their long-decay level at every Decay |
+| Spectra differ, so the best-scoring level is not always the energy match | Fitted on the scores: Concert Hall +0.3 dB (its own-growth knots fitted to the 2.9 … 33 s captures), Room −0.4 dB, Bright Hall +1.25 dB, Grit Plate −3.25 dB, Gated −2 dB. Drift Chamber keeps revision 1 (its test signal lost a step) |
+
+Concert Hall against revision 1 (`tests/Parity190kwVvTests.inc`): +2.3 dB at Decay 0.51 s, −1.3 dB at 7 s (the analyst's
+law: +2.0 / −1.3).
+
+**Scores** (refcap030 bank, 154 files; before → after; up / same / down):
+
+| Block | files | before → after | up / same / down |
+|---|---|---|---|
+| mode (ReverbMode + ColorMode sweeps, 0.51 s) | 96 | 2.16 → **2.74** | 56 / 40 / 0 |
+| pairs (PreDelay × Decay 0.51 / 7 / 33 s) | 18 | 3.44 → **3.89** | 8 / 10 / 0 |
+| sr48 (D, S1 … S4) | 20 | 3.50 → **3.70** | 4 / 16 / 0 |
+| sr96 | 20 | 3.60 → **3.70** | 3 / 16 / 1 (S1 impulse 4 → 3) |
+| **all** | 154 | **2.67 → 3.12** | 71 / 82 / 1 |
+
+Other Epoch banks (round 190it's `gate2.py`): tp172d's matched settings 3.73 → 3.73 (15 files, 0 / 15 / 0), verb183b's captures 3.56 → 3.89 (18, 6 up, 0 down), refcap182's programme 3.48 → 3.64 (25, 4 up, 0 down).
+
+**CPU** (thread time, 20 s at 48 kHz in blocks of 512, best of 5, two runs; `cpu/bench.log`, a loaded machine ±15 %):
+Concert Hall default 2.00 % (base) / 2.04 % (new instance); Concert Hall 0.51 s 1.98 / 1.99; Room 2.90 / 3.03; Plate 7 s
+2.38 / 2.55. Revision 0 / 1 forced on the round's objects: 1.90 … 2.97 %, the same as the base within the noise. The step
+adds a few `pow` / `log10` per block in `configure`, not per sample. No latency change.
+
+**Still off / not built:**
+- The per-mode Size law in the DSP (only the level follows it; Epoch's lines still scale by 0.3 + 0.7·Size). There are no
+  captures at Size ≠ 100 % except Concert Hall's.
+- RT = Decay with a first lap free of Decay, as a DSP change. 1970s at half the host rate and the ×0.64 mod depth.
+- The early level at long decays is 1.5 … 2 dB under the reference's −10.65 dB at 7 … 33 s, because the law scales the
+  whole wet path.
+- 96 kHz: at Decay 0.51 s the reference is 1.3 dB quieter at 96 kHz than at 48 kHz against Epoch. With the law, sr96 S1's
+  impulse is +1.6 dB over it (4 → 3; the setting's sweep, test signal and music there went up). A 96 kHz trim is not
+  built (owner decision: the rate dependence is Epoch's, not measured further).
+- Score-led stands: Grit Plate −3.25 dB and Gated −2 dB sit under the impulse's energy match (their test-signal / impulse
+  files score higher there). Smooth Room's +2.5 dB (test signal only) and Drift Chamber's +1.5 dB (impulse only) were not
+  taken.
+
+## Round 190kw (Saturn 2 → Ember): the styles' own laws (hidden revision)
+
+The reference's style laws were recovered by static analysis (round 190kw's analyst, `rea190kw/rea/sat2`) and written as
+LYNX's own code (`core/EmberSaturnStyles.inc`, `saturnCurve` / `saturnPreDb` / `saturnPostGain` in core/MixSuite):
+each style is a curve (arctan, x / (1 + x), tanh, sine, 2nd / 3rd order, the asymmetric tube curve, rectifier) with a
+power P and a negative-side scale B — `y = sign(x) · f((β|x|)^P)^(1/P) / β`, β = B below zero — a drive range (the
+pre-gain lo … hi dB over the reference's 0 … 100 %), a level compensation `10^(trim/20) · 2C / (F(G·C) − min(F(−G·C), 0))`
+(C = the style's reference level: a sine there keeps its peak-to-peak level), its own EQ before / after the curve and
+the band tone stack (low shelf 120 Hz, bell 600 Hz, high shelves 2.5 / 7 kHz; the amps 170 / 500 / 1500 / 4500 Hz).
+
+- Hidden `ember::revision` (index 163; a new Ember and a translated Saturn 2 state = 1, anything saved before = 0) and
+  `lawRate` (164: the reference's High Quality off — the law's curve at the base rate, the latency unchanged). Ember's
+  Drive keeps its scale; the reference's drive is `referenceDrive (driveDb (v))` = 1.2 v (the translator's 30 / 36 ×).
+- The law runs for the styles that scored up on the lab files and net up on the bank: Subtle / Clean / Warm / Broken
+  Tube, Subtle Tape, Warm / Old Tape, Tweed, Plexi, Brit Pop, Lead / Screaming Amp, Subtle Saturation. The others keep
+  round 150 / 152's measured characters (`lawCharacter`): Power Amp and Breakdown (net level / down on the bank: 3 / 2
+  and 3 / 6 files up / down), the transformers (their dynamic "LL" knee was
+  not recovered: ESR −11 → −15 dB but the IMD spectrum 4 … 8 dB off), Clean Tape / Gentle / Heavy Saturation (a steady
+  −0.7 … −1 dB level offset), Brit Rock / Smooth / Crunchy Amp (a 5.6 kHz segment 16 dB loud: their resonant low-pass Q
+  convention), the rectifier (the reference's saturates), Smudge / Foldback / Destroy (stages not recovered).
+- Lab (refcap030 grid subset, 168 files): base 3.375 → law (all styles) 3.643 (56 up / 27 down); without the style EQ
+  3.190 (18 / 44); with B read as 1 / B 3.625 — the EQ is part of the law, B as recovered.
+- Superb's 32× / Good's 8× keep Ember's 4× (8× scored no better on the lab files and costs twice the CPU).
+
+refcap030 bank (scripts/fxparity.py, Saturn 2 translated by `fromSaturn2`; per file before → after):
+
+| block | files | mean before → after | up / same / down |
+|---|---|---|---|
+| grid | 588 | 3.55 → 3.93 | 158 / 428 / 2 |
+| mode | 33 | 4.67 → 4.88 | 18 / 4 / 11 |
+| pairs | 54 | 3.78 → 4.41 | 28 / 23 / 3 |
+| sr44 | 20 | 5.55 → 6.10 | 9 / 8 / 3 |
+| sr48 | 20 | 5.60 → 6.10 | 8 / 8 / 4 |
+| sr96 | 20 | 5.60 → 6.10 | 8 / 10 / 2 |
+| prog | 84 | 4.31 → 4.38 | 13 / 63 / 8 |
+| **all** | 819 | 3.84 → **4.20** | 242 / 544 / 33 |
+
+All 33 files a step down are 6 → 5 (two 7 → 6, one 3 → 2 / 2 → 1) on broadband signals (25 of them `mix`) of the
+tube / tape styles (Clean / Warm Tube, Warm / Old Tape, Plexi): the waveform match improves (ESR −3 … −11 → −17 … −23 dB)
+but the third-octave balance crosses the 6-point limit (0.37 … 0.45 → 0.75 … 0.83 dB): a steady −0.5 … −0.9 dB level
+offset against the reference (its small-signal gain is ~1 dB higher than the recovered compensation gives — the same
+offset that kept Clean Tape / the saturations out) and up to +3.5 dB at 16 kHz (the cuts' Q convention; a Butterworth-at-
+Q-1 reading scored worse). Shipped as an owner decision (HANDOFF): net +0.36 over the bank, 242 up / 33 down.
+
+**Old projects.** Revision 0 renders byte for byte as the base commit: fxrender of the base (parity190js `fxr4`) and of
+the round over 16 Ember settings (characters, bands, drives, oversampling, PUNISH, effect law) at 44.1 / 48 / 96 kHz,
+48 files, 0 differ (`rea190kw/sat/ident.sh`); fingerprints in `tests/Parity190kwSatGold.inc`.
+
+**CPU** (thread time, 20 s at 48 kHz in blocks of 512, best of 5, three runs on one core under load; `rea190kw/sat/
+bench_g.log`), revision 0 → 1 at Ember's 4×: Round valve (Warm Tube) 0.86 → 1.03 %, Chime combo (Brit Pop: P = 0.8, 16
+EQ sections) 1.02 → 1.29 %, Worn reel (Old Tape) 2.40 → 1.17 %, Solo amp (Lead Amp) 2.64 → 0.97 %, three bands 6.17 →
+3.39 %; a translated Saturn state with High Quality off runs the curve at the base rate: 0.36 … 0.65 %. The P ≠ 1 styles
+read their curve from a per-band table (64 points per octave, < 3e-5 relative; two powf per oversampled sample cost
+2.4 %). No latency change.
+
+**Still off:** the transformers' dynamic knee, the rectifier, the base styles' level offset, the amps' resonant
+low-pass convention (round 150's characters stay for them); Dynamics, feedback, crossovers and the Smudger / Breakdown
+pitch internals keep LYNX's behaviour.
+
+### Round 190lg: the ~1 dB small-signal offset found (Saturn 2 → Ember, revision 1)
+
+- The offset was the reference's **channel output soft clipper** (static: a cubic `T · (1.5u − 0.5u³)`, u = clamp (k·x, ±1),
+  k = (1 / (12T²) + 2/3) / T, threshold T = 0 dB): small-signal gain 9/8 (+1.02 dB), ceiling 0 dBFS. Its absence was the
+  steady +1.02 dB the reference measured over the law on Clean / Warm / Broken Tube, the tapes, the saturations, Tweed and
+  the FX styles (identical at 44.1 / 48 / 96 kHz and every High Quality), and the extra compression near 0 dBFS at low drive.
+  With it the law fits the level sweeps within 0.03 dB at every level and drive. The Subtle styles and the transformers
+  measure without it (`saturnClipStyle`).
+- The cut filters' Q: the reference's Q 1 is Butterworth (LYNX scaled the resonant pair by q / √½: +1.3 dB at 31 Hz,
+  +1 … +5 dB at 12.7 … 16 kHz). The law's DC blocker is the reference's ~1.5 Hz (was 8 Hz: −0.3 dB at 31 Hz).
+- The law now also runs for Clean Tape, Gentle and Heavy Saturation (kept out in 190kw for that offset).
+- Scorer: round 190lg's time-based alignment window for before and after.
+
+refcap030 bank, base = rea190kw (Ember revision 0 law-free, as every project before) → round 190lg:
+
+| block | files | mean before → after | up / same / down |
+|---|---|---|---|
+| grid | 588 | 3.55 → 4.63 | 283 / 305 / 0 |
+| mode | 33 | 4.67 → 7.88 | 33 / 0 / 0 |
+| pairs | 54 | 3.78 → 6.20 | 44 / 10 / 0 |
+| sr44 | 20 | 5.55 → 7.80 | 14 / 6 / 0 |
+| sr48 | 20 | 5.60 → 7.75 | 14 / 6 / 0 |
+| sr96 | 20 | 5.60 → 7.80 | 14 / 6 / 0 |
+| prog | 84 | 4.31 → 5.04 | 37 / 47 / 0 |
+| **all** | 819 | 3.84 → **5.14** | **439 / 380 / 0** (round 190kw: 4.20, 33 down) |
+
+refcap182 programme 25 files 6.16 → 7.88 (19 up / 0 down); tp172b 20 files 5.1 → 7.75 (20 up / 0 down). Nothing down.
+Old projects (revision 0): 48 / 48 renders byte-identical to the base (`rea2_190lg/sat/ident.sh`). CPU (thread time, 20 s
+at 48 kHz, best of 5, `rea2_190lg/sat/bench_190lg.log`), revision 0 → 1 at 4×: Round valve 0.87 → 0.98 / 0.99 %, Chime
+combo 0.93 → 1.17 / 1.22 %, Worn reel 2.07 / 2.16 → 1.02 / 0.99 %, Open reel (Clean Tape, new on the law) 2.03 / 2.06 →
+1.09 / 1.14 %, Mellow clip (Gentle Saturation, new) 1.95 / 2.15 → 0.94 / 0.90 %, three bands 5.21 / 5.43 → 3.26 / 3.21 %;
+the clipper itself costs nothing measurable.
+
+**Still off after 190lg:** the amps' 4 … 8-section EQs above 5 kHz (bell / shelf Q conventions), the transformers' dynamic
+knee, Broken Tube above −15 dBFS (−1.6 dB), why the Subtle / transformer styles skip the clipper (measured, not found
+statically); Power Amp / Breakdown keep round 150's characters (the law still scored them down: lab 2.17).
+
+## Round 190lg (Pro-Q 4 → Facet EQ): the automatic threshold on the reference's own structure (hidden revision)
+
+Static REA of Pro-Q 4's `BandCompander` (REA notes docs/analise/REA_rodada190lg.md): with Auto on, the band's detector
+reads its per-sample magnitude against a peak follower of itself (instant rise, 10 s fall, never under −40 dB), in dB,
+through the usual gain computer, and the reduction runs through three followers whose times come from the band's
+detection region (10 Hz … 20 kHz by default) and the attack / release knobs. Facet runs this as **revision 1** of its
+automatic threshold (hidden `facet::autoRevisionParam` = 125): the follower and its constants are the reference's; the
+threshold / knee mapping stays round 190js's fit (the reference's Auto buses were not traced: the band moves from |range|
+under the peak level over a knee of 1.53 × |range|, which the captures confirm with the new detector); the three followers'
+times are the reference's laws with scales fitted on the captures' gain trajectories (f1 × 0.65, f2 attack × 0.05, f2
+release × 0.6: mean trajectory error 0.33 → 0.16 dB over the −30 / −15 / +15 / +30 dB sweeps, tc + stairs). Only the
+Pro-Q 4 translator sets it; a project saved before keeps round 190js's law; a plain Facet is unchanged (Auto is hidden).
+
+| bank (new time-based scorer, before and after; before = fxrG) | files | before → after | up / same / down |
+|---|---|---|---|
+| refcap030 Pro-Q 4 grid2 (the Auto sweep: Dynamic Range × Threshold) | 50 | 6.90 → **7.50** | 15 / 35 / 0 |
+| · range −30 / −15 / +30 dB, time-constant probe | 5 each | 3 / 5 / 5 → **5 / 7 / 7** | 15 up |
+| grid / mode / pairs / sr44 / sr48 / sr96 | 30 / 39 / 36 / 15 / 15 / 15 | 9.33 / 8.74 / 9.19 / 9.27 / 9.27 / 9.73 = | 0 / 150 / 0 |
+| **refcap030 Pro-Q 4, all blocks** | 200 | 8.61 → **8.76** | 15 / 185 / 0 |
+| refcap182 programme | 25 | 9.40 → 9.40 | 0 / 25 / 0 (no Auto band) |
+| tp172b | 20 | 9.35 → 9.35 | 0 / 20 / 0 (no Auto band) |
+
+Old projects: `gold/gold.sh` (fxrender with the revision forced off against the base binary: the five Auto states, every
+sixth grid / pairs state, refcap182's Pro-Q 4 states; 44.1 / 48 / 96 kHz): 48 / 48 byte-identical. CPU (one Auto band,
+thread time, one pinned core, 20 s at 48 kHz, best of 5, three runs): 0.24 … 0.26 % → 0.27 … 0.32 % of a core. Not built:
+the reference's start-up follower (its count's setter was not traced) and the band's own detection range (Facet has none:
+the reference's default is used for the times).
+
+## Round 190lg (Pro-MB → Prism Multiband): the band compander on the reference's own graph (hidden revision)
+
+Static REA of Pro-MB's `BandCompander` (REA notes docs/analise/REA_rodada190lg.md §7): per band the level in dB goes
+through the gain computer (quadratic knee, ratio, then a soft range 0.6 × knee + 12 dB wide), a peak hold (1.1 × the
+look-ahead + a fast-attack term), a two-pole low pass at 650 Hz / look-ahead ms, a slow follower A, max (A, the reduction),
+and follower B with the knob times; upward compression and downward expansion run the same graph on 36 dB − the
+reduction, scaled by range / 36. With the reference's look-ahead switch on, each band's detector leads the audio by half
+a period of its centre (at most 5 ms) + its own look-ahead, and the latency is 20 ms (as the reference). Prism runs this
+as **revision 1** (hidden `dyn::prism::revision` = 157, `lookaheadSwitch` = 158): only the Pro-MB translator sets it; a
+project saved before (saved count ≤ 157) keeps the measured detector of rounds 150 / 152, bit for bit; a new Prism is
+unchanged. The laws run at their reference scale (no fitted factor); the release knob is LYNX's own smooth curve.
+
+| bank (new time-based scorer, before and after; before = fxrG) | files | before → after | up / same / down |
+|---|---|---|---|
+| refcap030 Pro-MB grid | 18 | 7.50 → **8.83** | 16 / 2 / 0 |
+| grid2 | 50 | 9.10 → **9.78** | 20 / 30 / 0 |
+| mode | 39 | 7.62 → **9.10** | 27 / 12 / 0 |
+| pairs | 36 | 8.28 → **9.25** | 16 / 20 / 0 |
+| sr44 / sr48 / sr96 | 20 each | 7.85 / 7.90 / 7.90 → **9.25** each | 45 / 15 / 0 |
+| **refcap030 Pro-MB, all blocks** | 203 | 8.17 → **9.32** | 124 / 79 / 0 |
+| refcap182 programme | 25 | 7.64 → **9.16** | 20 / 5 / 0 |
+| tp172b | 20 | 7.60 → **9.05** | 15 / 5 / 0 |
+
+The worst files before: PA Threshold 0.8 × Range 0.8 mix (upward compression +18 dB) 3 → 8 (band gain error 3.3 →
+0.02 dB), M Look-ahead off mix 5 → 8, S2 mix 5 → 8. Old projects: `gold/gold.sh` (fxrender with revision 1 forced off
+against the base binary: every mode state, every third pairs state, every grid state, refcap182's five Pro-MB states;
+44.1 / 48 / 96 kHz): 99 / 99 byte-identical. CPU (one bass band, Pro-MB's default-like state, thread time, one pinned core,
+20 s at 48 kHz, best of 5, three runs): 0.85 … 0.92 % → 1.01 … 1.02 % of a core (the 20 ms look-ahead and the two
+followers). Not traced: the band's 0 … 2 output amount property (+0x108, default 1: kept at 1).
+
+## Round 190lp (Pro-L 2 → Apex Limiter, Pro-G → Sentry Gate): the styles refitted black-box (hidden revision 1)
+
+Pro-L 2's styles and Pro-G's algorithms are presets of a generic engine (round 190lg §8); by the owner's decision this
+round read nothing from either binary (no static analysis, no preset): every law was measured on the reference renders
+already in the banks and LYNX's own smooth laws were fitted to them (REA notes: docs/analise/REA_rodada190lp.md, part lg).
+Both effects run the refit as **revision 1** (hidden `apex::pRevision` = 24, `dyn::sentry::revision` = 32: no control,
+no text, saved only while non-zero): a new instance and a translated Pro-L 2 / Pro-G state get 1; a project or preset
+saved before (saved count ≤ 24 / 32), the Live maps (Limiter, Gate, Expander), the plug-in substitutes and LYNX's own
+chains (mastering looks, reference match, the demo songs, Clean Voice) keep 0, bit for bit. Latency unchanged.
+
+Apex, revision 1 (gain trajectories of the stairs per half cycle and per sample, the tc bursts and the music in 10 …
+100 ms frames):
+- **Output level is a gain after a limiter that holds 0 dB** (the reference's S3: output level −1 dB plays its quiet
+  carrier at gain − 1 dB, not at gain): with a ceiling under 0 dB the chain limits at 0 dB, then the level, then the
+  dither. Unity gain still monitors at the input's level.
+- **A hold of about one half period** for Loud (Aggressive, 0.875 × the mean time between the detected mid's zero
+  crossings), Bus (0.75), Safe (1.0) and Dense (Modern, 0.5): a steady tone keeps one gain through its cycle (the
+  reference adds no harmonics there: stairs H3 −32 → −150 dB at 1 kHz) while a drum's quick crossings are still taken
+  peak by peak (a fixed 5 ms window took drums 1.5 … 3 dB too deep). Loud's, Bus's and Safe's slow stages refitted.
+- **Programme-dependent release**: Clean (Transparent) 0.15 and Glue (Allround) 0.05 per dB of held reduction
+  faster (the reference recovers faster out of deep limiting: pairs mix at 24 dB of gain −0.89 → −0.25 dB mean error).
+  Punch (Punchy) and Dynamic keep revision 0's table (no fit beat Punchy; every Dynamic fit took a programme or sr96 file down).
+
+Sentry, revision 1 (tc bursts in 1 … 5 ms frames): the gain closes **in dB** — a wait (Classic 0.08 × release, Clean
+0.05 ×, Guitar 20 ms + 2.3 × release), then a fall limited to a slope (Classic 20 dB, Clean 10 dB, Guitar 50 dB per
+release time of 16 + 0.3 × release / 60 + 0.5 × release / 3.75 + 0.4 × release ms) through a second pole, landing on the
+range; Classic and Clean open in the linear domain, Guitar along two poles in dB. Vocal (its fit took refcap182's S3
+drums a step down with every variant) and Upward (its lift already matches: tones 10 / 10) keep revision 0's gate.
+
+| bank (time-window scorer; before = fxr_m4, the end of round 190lg) | files | before → after | up / same / down |
+|---|---|---|---|
+| refcap030 Pro-L 2 grid / mode / pairs | 136 / 33 / 54 | 7.65 / 7.88 / 6.69 → **7.79 / 8.00 / 7.02** | 28 / 195 / 0 |
+| prog | 16 | 7.69 → **7.75** | 1 / 15 / 0 |
+| sr44 / sr48 / sr96 | 24 each | 7.62 / 7.50 / 7.54 → **8.00** each | 13 / 59 / 0 |
+| styles | 48 | 6.73 → **7.06** | 10 / 38 / 0 |
+| **refcap030 Pro-L 2, all blocks** | 359 | 7.39 → **7.64** | 52 / 307 / 0 |
+| refcap182 programme (Pro-L 2) | 30 | 7.60 → **7.90** | 4 / 26 / 0 |
+| tp172b (Pro-L 2) | 24 | 7.08 → **7.25** | 2 / 22 / 0 |
+| refcap030 Pro-G grid / mode / pairs | 15 / 30 / 72 | 8.20 / 9.03 / 8.40 → **8.40 / 9.10 / 8.49** | 11 / 106 / 0 |
+| sr44 / sr48 / sr96 | 24 each | 7.58 / 7.54 / 7.58 → **7.83 / 7.79 / 7.79** | 14 / 58 / 0 |
+| styles | 15 | 8.67 → **8.73** | 1 / 14 / 0 |
+| **refcap030 Pro-G, all blocks** | 204 | 8.21 → **8.35** | 26 / 178 / 0 |
+| refcap182 programme (Pro-G) | 30 | 7.43 → **7.57** | 4 / 26 / 0 |
+| tp172b (Pro-G) | 24 | 7.17 → **7.33** | 3 / 21 / 0 |
+
+By style (refcap030): Aggressive 6.22 → 7.43 (S3 5 → 7 … 8 at every rate: the output level), Transparent 7.24 → 7.45
+(pairs at 15 / 24 dB of gain), Safe 7.62 → 7.89, Modern 7.92 → 8.05, Bus 7.48 → 7.56, Allround 7.52 → 7.56, Punchy and
+Dynamic unchanged; Pro-G Guitar 6.22 → 6.78, Clean 8.44 → 8.78, Classic 8.58 → 8.68, Vocal and Upward unchanged. No file
+down in any bank. Old projects: `gold/gold.sh` (fxrender with the revision forced to 0 against round 190lg's final
+binary: every Pro-L 2 / Pro-G styles-block state, refcap182's six states of each, the defaults with every style value;
+tc / stairs / mix; 44.1 / 48 / 96 kHz): 300 / 300 byte-identical. Tests: `tests/Parity190lpLgTests.inc` (the hidden
+parameters and their load / translator / substitute rules, the output level, the half-period hold (100 Hz H3 −119 dB vs
+−61 dB at revision 0), Transparent's faster recovery, Sentry's wait and fall, Vocal / Upward bit for bit); the round
+108 / 128 / 190ar / 190dm tests that pin those rounds' laws now set revision 0. Mini runner 652 702 checks, 0 failures. CPU (thread time,
+one pinned core, 20 s at 48 kHz, best of 5, three runs, `cpu/bench.cpp`): Apex 1.8 … 2.1 % → 1.8 … 2.2 % of a core (within
+the noise; the zero-crossing hold is a few compares per sample), Sentry Classic 0.89 → 1.33 %, Clean 0.9 → 1.25 … 1.43 %
+(the linear-domain opening converts dB ↔ gain while it moves), Guitar 0.9 → 1.0 %, Vocal / Upward unchanged. Not built: the smooth styles' ~50 ms
+look-ahead (it needs their latency), Aggressive's extra ~1.2 dB on a tone held 15 … 18 dB over, Pro-G Vocal (S3 drums)
+and Upward (a mean-square detector fixed the mix, broke the tones).

+ 2 - 2
docs/PLUGINS.md

@@ -10,6 +10,7 @@ LYNX SHARE ships **native** plugins inspired by the third-party plugins producer
 
 | Inspired by | LYNX SHARE plugin | Status | What it is |
 |---|---|---|---|
+| FabFilter Timeless 3 | **Echoform** | native LYNX SHARE engine · auto-opens | Multi-mode echo: tape, bucket brigade, analog, digital, shifter, pitch and reverse characters, tempo sync, wow / flutter, feedback past 100 %. |
 | FabFilter Pro-L 2 | **Apex Limiter** | native LYNX SHARE engine · auto-opens | Transparent mastering limiter: look-ahead, true-peak ceiling, two-stage release and four styles. |
 | FabFilter Pro-C 2 / 3 | **Crest Compressor** | native LYNX SHARE engine · auto-opens | Style compressor fitted to black-box measurements: 11 styles, knee, range, look-ahead, 3-band side-chain EQ, character, oversampling and a live gain-reduction graph. |
 | FabFilter Pro-MB | **Prism Multiband** | native LYNX SHARE engine · auto-opens | 4-band dynamics: compress or expand, downward or upward, per-band attack, release, knee and level; transparent while a band rests. |
@@ -18,7 +19,6 @@ LYNX SHARE ships **native** plugins inspired by the third-party plugins producer
 | FabFilter Pro-DS | **Hush De-esser** | native LYNX SHARE engine · auto-opens | Split-band or wideband de-esser with band or high-pass detection, listen mode and 2 ms lookahead. |
 | FabFilter Saturn | **Ember Saturator** | native LYNX SHARE engine · auto-opens | Tube, tape, transistor and fuzz saturation with tone tilt, auto gain and up to 8x oversampling; up to four bands, each with its own style and drive. |
 | FabFilter Pro-R 2 | **LuxeVerb** | stand-in · auto-opens | an existing LYNX SHARE effect plays its role until a dedicated engine exists |
-| FabFilter Timeless 3 | **Fruity Delay 3** | stand-in · auto-opens | an existing LYNX SHARE effect plays its role until a dedicated engine exists |
 | Valhalla VintageVerb | **Epoch Verb** | native LYNX SHARE engine · auto-opens | 22 vintage-digital reverb algorithms (halls, plates, rooms, chorused and random spaces, gated) with 1970s, 1980s or now colour. |
 | Valhalla Room | **Atrium** | native LYNX SHARE engine · auto-opens | Rooms and chambers with separate early and late sections, three-band decay and twelve room types. |
 | Valhalla Plate | **Foil Plate** | native LYNX SHARE engine · auto-opens | Bright plate reverb that speaks at once, with a real plate's frequency-dependent decay and twelve plate types. |
@@ -169,7 +169,7 @@ see [Generators](#generators).
 | **Close** | the same algorithm; within −60 dB of the original on (almost) all tested states, typically −80 dB or better; the gaps are listed |
 | **Approximate** | the plugin's saved settings are mapped onto a LYNX SHARE built-in effect or synth: similar sound, not the same engine |
 | **Placeholder** | the state is kept and the plugin makes no sound / passes audio through, as the original does in FL Studio 2026 |
-| **Fitted** | LYNX SHARE's own engine (not the original's algorithm), designed so that black-box measurements of the third-party original — decay times per band, onset, build-up, levels, filters, parameter laws — match within the tolerances listed for it |
+| **Fitted** | LYNX SHARE's own engine (not the original's algorithm), designed so that black-box measurements of the third-party original — decay times per band, onset, build-up, levels, filters, parameter laws — match within the tolerances listed for it. Since 2026-11, by the project owner's decision, some are also informed by clean-room static analysis of the original's binary (laws and structure in our own words, [`docs/analise/REA_*.md`](analise)); no third-party code, tables, presets or content is copied and licence protections are never bypassed |
 
 **How you get it:** *Insert* = can be added to any mixer insert (Mixer slot menu or the F8 quick-add palette).
 *Import* = created when you open an FL Studio project (`.flp`) or drop an FL effect preset; the engine is kept

+ 7 - 2
docs/PLUGIN_FALLBACK.md

@@ -109,7 +109,12 @@ matches by name).
 
 - Parameter maps only from what the saved data itself shows (attribute names, value lists) plus meanings from the
   vendor's public documentation or our own black-box measurements (render through a legally licensed copy with test
-  signals). Never from decompiling or disassembling third-party binaries. Each map says where its meaning comes from.
+  signals). Each map says where its meaning comes from.
+- Since 2026-11, by the project owner's decision, some stand-ins and translators (the FabFilter roles from round 190kw
+  on) were also informed by clean-room static analysis of the third-party binaries: the laws and structure are written
+  down in our own words (docs/analise/REA_*.md) and LYNX's code is written from that description. No third-party code,
+  tables, presets or other content is copied, and licence protections are never bypassed. Static analysis of a
+  third-party binary is not something a contributor starts on their own: it needs the owner's decision.
 - Unknown meaning → no map (the default preset). Mark unconfirmed readings as such in the table comment.
 - New LYNX SHARE modules that play a third-party role (pitch correction, de-esser, noise suppressor, doubler, exciter…)
   add their entry to `builtInTable` (or call `registerPluginSubstitutes` at start-up) when they land.
@@ -132,7 +137,7 @@ matches by name).
 | Waves Doubler (2 / 4 voices) | Gemini Doubler (round 119) | Waves name | every control of voices 1–2, direct, align, shelves, feedback cut, range [EXEC] (round 119 §4) |
 | Soundtoys EchoBoy / PrimalTap | Echoform (round 129; tape / lo-fi echo, 1/4 note, 25 % feedback, 25 % mix; was Fruity Delay 3) | VST2 ID [DATA] (EchoBoy), names | — |
 | Waves SuperTap | Echoform (round 190jh; was Fruity Delay 3; no state: the dry signal, as SuperTap's default) | Waves name | taps 1–2 (on, gain, pan, delay at its BPM), feedback, tap filter → Echoform's clean Single / Dual echo, dry at unity [EXEC] (refcap182) |
-| FabFilter Timeless | Fruity Delay 3 | names | — |
+| FabFilter Timeless | Echoform (round 190kw; was Fruity Delay 3; no readable state: Timeless 3's default, 350 ms, no feedback, mix 50 %) | names | Timeless 3 (FFBS, 1007 values): delay time / sync / time pan, feedback (ping pong, pan, cross mix), mix, width, wet level / pan, filters in use, drive, diffuse, freeze → Echoform's Clean mode with the hidden line law (the reference's dry / wet law, read filter, limit) [EXEC] (refcap030 / refcap182) |
 | ValhallaDelay | Echoform (round 101) | VST3 class ID [derived], name | every setting but Era / taps / repeat-swell: mix, style, sync, times, feedback, filters, modulation, shift, pitch, ducking; the 17 modes onto Echoform's 12 characters |
 | ValhallaFreqEcho | Spiral Echo (round 101) | VST3 class ID [derived], name | all 8 settings |
 | ValhallaSpaceModulator | Orbit (round 101) | VST3 class ID [derived], name | all 6 settings |

+ 429 - 0
docs/analise/REA_rodada190kw.md

@@ -0,0 +1,429 @@
+# Round 190kw: static REA of the FabFilter / Valhalla references (0.1.30 parity)
+
+2026-11-17. Owner's permission (this round's brief): static reverse-engineering of third-party plug-in binaries for sound
+parity, clean-room only — the laws are understood and re-written in LYNX's own code; no code, tables, presets or content
+of the references are copied; nothing is bypassed; no debugger, no patching, static analysis only (Ghidra 12.1.4 headless,
+objdump, a small RTTI reader). Evidence markers: [STATIC] read in the decompiled / disassembled binary (addresses are the
+image's virtual addresses, image base 0x180000000), [EXEC] measured on renders (refcap030 bank, LYNX's fxrender),
+[CODE] LYNX source.
+
+Binaries (Windows x64 VST3, copied read-only to /mnt/e/lynx-work/rea190kw/bin/): FabFilter Pro-C 3 (sha256 03029eff…),
+Pro-L 2, Pro-MB, Pro-G, Pro-Q 4, Pro-R 2, Saturn 2, Timeless 3; ValhallaVintageVerb. Lab and raw decompiler output:
+/mnt/e/lynx-work/rea190kw/rea/ (out/*.c are working files, not shipped).
+
+Method. The binaries are stripped but keep MSVC RTTI: `rea/rtti.py` walks type descriptors → complete-object locators →
+vtables, which names every DSP class (e.g. `CleanStyle`, `Capacitor`, `Detector`, `SmoothCompressor_MainCompressorAlgorithm`).
+Constructors are the functions that store a vtable address; per-style constants are stored there as raw doubles. Each
+DSP object is a node of a small signal graph; nodes hold "smoothed parameter" objects whose value is set through one helper.
+
+## 1. Pro-C 3 → Crest: the V1 styles (Clean, Classic, Opto) [STATIC] → built (revision 1)
+
+Classes: `ProCCompressor` (vtable 0x1802237f8; constructor 0x1801696d0; per-block process 0x18016a640; parameter update
+0x18016b520; graph wiring 0x18016b990), the style objects `CleanStyle` / `ClassicStyle` / `OptoStyle` (base `ProCV1Style`,
+constructed together at 0x180169220). Internal style order (the `CompressorStyle` enum): 0 Clean, 1 Classic, 2 Opto,
+3 Vocal, 4 Mastering, 5 Bus, 6 Punch, 7 Pumping, 8 … 13 the Pro-C 3 styles (the UI order differs: "Clean, Versatile,
+Smooth, Punch, Upward, TTM, Op-El, Vari-Mu, Classic, Opto, Vocal, Mastering, Bus, Pumping", string at 0x18022afa0).
+
+Per sample (0x18016a640, styles 0 … 2):
+- level L = 20·log10 |side chain| (vectorised log at 0x18012cf30, floor −180 dB); overshoot d = L − threshold.
+- Classic is a feedback design (style slot 5 returns 1 at 0x1800175a0): d ← (min(d, range) − GR) × ratio.
+- target = knee(d) (slot 1, 0x18016c870); × (1 − 1/ratio) when ratio < 100 (0x18022cb30); ≤ range (not Classic); ≥ 0.
+- the style's follower (slot 6) updates the reduction GR (dB): Clean 0x18016cd90, Classic 0x18016cfd0, Opto 0x18016d150.
+- every follower step is c = 1 − exp(−ln 10 / T) (0x180169640; −ln 10 = float at 0x18020f64c), T in samples (attack and
+  release seconds × the sample rate read at context+0x90): the time to cover 90 % of a step.
+
+Knob laws (0x18016b520): attack position a (0 … 1) → a³; release position r → rel = tan(1.2 r²) / tan(1.2) (the odd CRT
+function at 0x1801e0820 with ×0.38878 = 1 / tan 1.2 at 0x18022c4b8). The display's laws follow: attack 0.005 + 250 a³ ms,
+release 10 + 2490 · rel ms (LYNX's translator table matches these exactly). Style constants (doubles written by the
+constructor; base class 0x18016c7f0):
+
+| | attack lo / min / span (s) | release base / dip / scale (s) | knee shape P1, P2, offset, scale |
+|---|---|---|---|
+| Clean | 0.0001 / 0.0002 / 0.2499 | 0.025 / 0.09 / 1.975 | (0.093, 0.287), (0.52, 0.822), −11, 0.83 |
+| Classic | 0.003 / 0.003 / 0.997 | 0.04 / 0.13 / 2.46 | (0, 1.492), (0.541, 1.0), −3, 0.9 |
+| Opto | 0.001 / 0.004 / 0.249 | 0.005 / 0.02 / 1.195 | (0.022, 0.284), (0.76, 0.943), −13.3, 0.7338 |
+
+attack = lo + span·a³ (slot 2, 0x18016ca20); release = rel·scale + base − 0.9·dip·√((clamp(attack, min, lo + span) − min) /
+(lo + span − min)), at least base / 10 (slot 3, 0x18016ca30).
+
+Followers (A, R attack / release in samples, P the sample rate, x the target):
+- Clean: slow stage s1 → x with T = R + 0.2 P falling, 100 A + 2 P rising; y = max(s1, x); main stage GR → y with T = R
+  falling, else A + e^(max(GR − y, −25)) · (0.05 P − 0.2 A) (a fixed exp table over −25 … 0, `ProCV1Style::ExpFunction`,
+  built at 0x18000a180; its functor is exp, 0x18010c350).
+- Classic: s1 → x with T = 2 P − 1.8 A falling, 0.43 P + 100 A rising; y = max(s1, x); s2 → y with T = R falling, else
+  A + 10 (2 P − A) e^(max(s2 − y, −25)); GR = s1 + s2.
+- Opto: rising GR → x with T = A + e^(max(GR − x, −25)) (0.05 P − 0.2 A) and the auxiliary state set to GR; falling: the
+  auxiliary state moves by c(R) · v, v = x − aux, compressed to −√(−v) past −1 dB; GR follows it with T = 4 ms.
+
+Knee (slot 1): K = knob width. K = 0 → d; K = 24 → the style's shape S(d); else the quadratic knee q = ((K/2 + d)/K)² · K/2
+inside ±K/2 (d outside) blended: K < 24: (S(d/s) · s − q) · s² + q, s = K/24; K ≥ 24: (K/72 − 1/3) · 1.5 · (q − S(d)) + S(d).
+S(d) = B((d − offset)/48) · (d − offset) · scale for d > offset (else 0), B a cubic Bézier (0,0) → P1 → P2 → (1,1) solved
+for x by bisection (0x18001afc0), straight past its ends (0x18001b320); sampled 8192 points over −20 … 100 dB and
+extended linearly past 100 (0x18016cb40, 0x18016c990). LYNX recomputes the shape itself (`V1Knee`).
+
+Not built: auto release for these styles (slot 4 0x18016cae0, a per-style table; every bank capture has it off): with
+Auto release on, Clean / Classic / Opto keep LYNX's fitted law. Hold uses LYNX's own reduction hold (the reference's
+`HoldProcessor` was not read; Hold is 0 in every capture).
+
+## 2. Pro-C 3 → Crest: the V2 styles (Vocal, Mastering, Bus, Punch, Pumping) [STATIC] → built (revision 1)
+
+These five styles are wired at run time out of FabFilter's generic DSP elements (the same classes exist in Pro-MB, Pro-G,
+Pro-L 2, Pro-Q 4, Pro-R 2, Saturn 2: one shared library). `ProCCompressor`'s constructor (0x1801696d0) creates three
+`Capacitor` followers (constructor 0x18010e5b0, process 0x18010eba0), one `Detector` gain computer (constructor 0x18010d210,
+process 0x18010d7d0), a `DBConverter`, two `Mixer`s (0x18011f950), a `PeakHold`, an `EQFilter`, a `TransferCurveProcessor`
+(0x180119440), a `VolumeFilter` and a `FloatParameterSource`; 0x18016b990 wires them per style and 0x18016b520 sets their
+times from the knobs.
+
+Elements (LYNX's own code: `v2Step`, `v2Knee`, `SlidingMax` in core/DynamicsSuite.cpp):
+- Detector, dB domain: overshoot over the threshold through the quadratic knee of the knob's width, × (1 − 1/ratio) under
+  100 : 1, a soft range (its knee is 0 here), ≤ range, ≥ 0; in the linear domain the output is the reduction share
+  1 − 10^(−GR/20) (0x18010d7d0's tail). Vocal sets the detector's own mode (flag at +0x288): GR = 20 log10 (1 + |x| ·
+  (10^(−threshold/20) − 1)) — no ratio, no knee.
+- Capacitor: y += (x − y)(1 − exp(−ln 10 / (T · rate))), T in seconds. Rising: T = attack, blended with 0.1 · T · step by
+  (1 − p1), plus p2 · e^(−step) for steps under 10. Falling: T = release (or k / (√y + 1) with auto release, k = 3.6 r² + 0.1),
+  blended with −0.1 · T · step by (1 − p5), plus p6 · e^(step) for steps above −10 (exp table over −25 … 0,
+  `Capacitor::Style::ExpFunction`, built at 0x1801989e0).
+- Mixer mode 2: max of the inputs' magnitudes; mode 0: sum. TransferCurveProcessor mode 1: x^(15 p + 1). DBConverter mode 0:
+  20 log10 |x| (floor −180); mode 2: −20 log10 |1 − x|. PeakHold: the maximum over the last 10 ms.
+
+Knob laws: attack a³ · 0.25 s, release 2.5 · tan(1.2 r²)/tan(1.2) s ("relS"). Graphs (D = detector, Cn = followers):
+
+| style | graph | constants |
+|---|---|---|
+| Vocal | D (linear, Vocal mode) → C0; C1 ← max(D, C0); GR = −20 log10 (1 − C1) | C0 0.25 / 0.5 s; C1 attack 0.4 a³, p5 0.25, release = min(0.5 √a³, 10) + rel + 0.005 + 10 · C0^5.5 |
+| Mastering | D (linear) → PeakHold 10 ms → EQFilter (10 Hz) → C0; C1 ← max(D, C0); GR from C1 | C0 attack max(0, 0.025 − 0.1 relS) + 0.25 a³ + 0.025, release 0, p6 1; C1 0.25 a³ + 5e−5 / relS + 0.1 |
+| Bus | D (dB) → C0; C1 ← max(D, C0); C2 ← max(D, C1) | C0 0.35 / 0.8 s; C1 release 0.1 relS + 0.015, p5 0; C2 0.25 a³ + 0.0003 / relS + 0.015, p1 0.5, p5 0.75, p6 0.3 |
+| Punch | D (dB) → C0 | C0 0.25 a³ + 0.0001 / relS + 0.05, p1 0.9 |
+| Pumping | level → C0 → C1 → dB → D → C2 | C0 release 0.5 relS + 0.025; C1 0.25 a³ / 0.5 relS + 0.025; C2 5e−5 / 0.5 relS + 0.005, p5 0.25 |
+
+[EXEC] Two details were settled on renders: Pumping's first followers read the linked level (magnitude), not the signed
+sample (the signed sample scored 6.73 → 6.73 on its 26 files, the magnitude 6.73 → 9.31, all up); Mastering's `EQFilter`
+(shape enum not resolved) is modelled as a 10 Hz two-pole Butterworth low-pass (the frequency parameter is log2 Hz =
+3.3219 → 10 Hz) — its 9 files 8.0 on the styles block.
+
+## 3. What LYNX keeps out of the revision
+
+- Old projects / presets: `crest::revision` is hidden (index = the info's size, no control, no string, saved while non-zero);
+  `upgradeLoadedEffectParams` sets 0 for anything saved before. Revision 0 is the base commit bit for bit.
+- Live's Compressor / Glue / Drum Buss / Channel EQ maps (AlsDevices*.cpp) and the plug-in substitutes' Crest entries
+  (PluginSubstitutes.cpp) keep revision 0: they were measured on the fitted laws. The Pro-C 3 translator sets 1.
+- Clean / Classic / Opto with Auto release on keep the fitted law (the reference's per-style auto-release table was not
+  rebuilt). Versatile (Allround), Smooth, Upward, TTM (Two-way), Op-El and Vari-Mu are generated graph classes
+  (`VersatileCompressor_MainCompressorAlgorithm`, `SmoothCompressor_MainCompressorAlgorithm_FeedbackAlgorithm`, …; their
+  constructors are 2.7 … 9.5 KB of wiring): not rebuilt this round; they keep their fitted laws. Versatile is the
+  reference's DEFAULT style (tp172b's D setting): rebuilding `VersatileCompressor_MainCompressorAlgorithm` (constructor
+  0x180164ae0, 9.5 KB of node wiring; parameter update 0x1801673c0) is the next round's best Crest target.
+
+## 4. Other targets: findings this round did not build
+
+- **Pro-L 2 → Apex, 96 kHz block** [EXEC]: Dense / Loud / Safe report 6 057 samples of latency at 96 kHz (63 ms; 3 115 at
+  48 kHz), Clean 1 033. Apex has one constant latency (329 samples at 48 kHz), so the reference's output lags LYNX's by
+  5 476 samples at 96 kHz — more than `scripts/flref_compare.py`'s ±4 096-sample alignment search (`find_lag`), which is
+  why those files score 3 … 5 at 96 kHz while the same settings at 44.1 / 48 kHz are bit-for-bit or 8+. The sound is not
+  the cause; the window is in samples, not in time. [EXEC] The same base binary with the window at ±8 192 samples (85 ms
+  at 96 kHz; lab copy of the scorer only) scores the sr96 block 6.21 → 7.54 (10 files up, 0 down). Not changed (a scorer
+  change re-scores every bank: owner decision).
+- **Pro-Q 4's dynamic auto threshold** [STATIC, read, not built]: `BandCompander` (vtable 0x1802403c0, process
+  0x18014e820) with auto threshold on runs an object at +0x3f8 (0x180116530): the band signal's magnitude feeds a follower
+  (and a second one while a start-up count runs); the detector then reads the band level RELATIVE to that follower
+  (|x| / envelope, or a constant / envelope in its other mode), converted to dB, through the usual quadratic knee and ratio;
+  three more followers smooth the reduction (0x3e0 / 0x3e8 / 0x3f0, their times set from the band's frequency and Q in
+  0x18014ee20). Facet's fitted AutoLaw stays; the next round can rebuild it from this structure.
+- **Pro-MB / Pro-G / Pro-DS / Pro-L 2** share the elements read in §2 (`Detector`, `Capacitor`, `PeakHold`; `Capacitor`
+  vtables: Pro-G 0x1801d8690, Pro-R 2 0x1802082e0, Saturn 2 0x18020e628, Pro-Q 4 0x18023d5c8). Prism and Sentry were not
+  re-modelled this round.
+- **ValhallaVintageVerb** [STATIC + EXEC] (analysis: /mnt/e/lynx-work/rea190kw/rea/vv/; implementation: §9): knob laws
+  (parameter table 0x180376f30, conversions 0x1803aba00: skewed controls min + (max − min)·v^(1/k), k = ln 0.5 /
+  ln((mid − min)/(max − min)); Decay 0.2 … 70 s, 7 s at mid) and the equal-power Mix already match LYNX. Every mode's loop
+  gain is the RT60 law 10^(−3 L / (fs T)) split over its N gain stages (0x1803a9670 and siblings; N = 2 halls, 5 Plate, 6
+  most rooms, 16 Palace; per line with RT = 1.2 × Decay in Chamber1979 / Hall1984); the input enters after the gain stage,
+  so the first half-lap never sees Decay. Size scales each mode's loop length by its own law (size functions
+  0x1803a8590 … 0x18039aaf0). There is no per-mode output gain: the level follows the loop, E(T, s) = E0 / (1 −
+  10^(−6 ℓ(s)/T)), and the early part (first 80 ms) does not change with Decay (Epoch's rises ~3 dB). 1970s runs the engine
+  at half the host rate (a quarter at ≥ 60 kHz).
+- **Timeless 3**: no state translator existed (the substitute ran Fruity Delay 3 at its defaults); see §10.
+
+## 5. Saturn 2 → Ember: the recovered laws [STATIC] (analyst's report; implementation: §7)
+
+Style factory 0x18017cb90 builds the 28 styles in UI order, each from one helper (0x180113ed0) taking a curve type, a power
+P, a negative-side scale B, the drive range lo … hi (dB), a reference level and a trim. Curves (scalar reference 0x180113600;
+SIMD twins e.g. 0x180141e40), on t ≥ 0: ArcTan (2/π)·atan(πt/2); DivAbs t/(1 + t); Tanh; Sine sin(π/2·min(t, 1)); Poly2
+2t − t² (t ≤ 1); Poly3 1.5t − 0.5t³ (t ≤ 1); Rectify (Poly2, full wave); Tube — asymmetric and piecewise (a hard ceiling
+above u = 0.32002, a quadratic between −0.08905 and 0.32002 with slope 3.9375 at 0, an exponential-like negative branch,
+a floor below −1.75482; C¹ joins). Asymmetry and softness: y = sign(x) · f((β|x|)^P)^(1/P) / β with β = 1 above zero, B
+below. The transformer styles and Breakdown add a level-dependent linear knee k = 0.5 − 0.49 (2z − z²), z = min(|v|/4, 1),
+v the shaper input band-limited 70 Hz … 5 kHz (0x180113500, 0x180112f10).
+Drive and auto gain (0x180114090, 0x1801140d0): pre-gain G = 10^((lo + (hi − lo)·d)/20), d the Drive knob 0 … 1; post-gain
+10^(trim/20) · 2C / (f(G·C) − min(f(−G·C), 0)), C = 10^(ref/20): a sine at the style's reference level keeps its
+peak-to-peak level ("increases the input gain and corrects the output gain correspondingly", the plug-in's own help).
+Per-style pre / post EQ (emphasis / de-emphasis pairs; the amps' 4 … 8 shaping filters), the band tone stack (low shelf
+120 Hz, bell 600 Hz, high shelf 2.5 kHz, high shelf 7 kHz; the four amp models 170 / 500 / 1500 / 4500 Hz), High Quality
+(Off 1×, Good 8×, Superb 32× for the shaper), FoldBack y = (1 + d²)² / (1 + 99d²) · sin((1 + 99d²) x), BitCrusher (sample
+and hold for d²·500 samples). Not recovered: the Dynamics curve's meaning, the exact feedback law, the crossover design,
+the Smudge / Breakdown pitch internals.
+
+## 6. Pro-R 2 → LuxeVerb's Space engine: the recovered laws [STATIC + EXEC] (analyst's report; implementation: §8)
+
+True stereo (Channel constructor 0x1801539b0): each channel has a 16-line FDN (Hadamard 16), a 2-line FDN (Hadamard 2), a
+16-line early network, early reflections, a Thickner, six tone filters; a CrossInput feeds each channel's input to the
+other. Line gain 10^(−3 · len / T) (0x180119f20).
+- Stereo Width (0x18017ce10; the state value is the raw knob 0 … 1.2, default 0.7): v = √|W − 1|; input M/S: side gain
+  min((2·min(W, 1) − 0.8)² + 0.21, 1); output M/S: W < 0.7: Y = W/0.7, X = 1 + 0.8 (√(2 − Y²) − 1); W ≥ 0.7: X = 1 −
+  1.25e, Y = 1 + 0.5e, e = max(W − 1, 0); the two channels' 16-line networks are linked by an orthogonal rotation
+  √(1 − v²/2) / ±v/√2 around their Hadamard outputs (0x180154f20). Checked tap by tap on the irL captures: output side /
+  mid 0 / .335 / .779 / 1 / 1.466 predicted and measured at W = 0 / .3 / .6 / .9 / 1.2.
+- Space: displayed time 0.2 … 10 s; the network runs T = 1.15 × displayed × 4^DecayRate (0x180156940); the early network
+  decays at T without the rate; the 2-line network at ≈ (200 + 0.00088 (T − 200))·rate ms; line lengths 5.18 ms ×
+  1.12402^(k + n0 + j), k = floor(14 sin(π/2 · S^0.8)), n0 = 9 / 10 / 11 by Distance (0x180156d20); late level
+  ((250/T_ms)^0.7 + 1.3) × (1 + 0.5 d) × a Distance / Character term (0x180157290).
+- Brightness (0x1801564e0): darkness d = 1 − min(B/0.7, 1); four tone stages at 2^(14.136 − 4d) Hz, one at 2^(13.873 −
+  2d) Hz, a 200 Hz stage of −8 (2.5 (B − 0.6))₊² dB (less a width term), in-loop absorption moved down d octaves.
+
+## 7. Saturn 2 → Ember: implementation [EXEC] (branch rea190kw-sat, NOT merged: 33 files down — owner decision)
+
+### Saturn 2 → Ember: the styles' own laws (round 190kw, implementation part)
+
+Branch `rea190kw-sat` (off `origin/parity190js` d9bfc68ce). Work folder `/mnt/e/lynx-work/rea190kw/sat/`.
+
+### What the static analysis gave (sat2/, written as LYNX's own code)
+
+- Each of the 28 styles = a curve type with a power P and a negative-side scale B (styles_table.txt):
+  `y = sign(x) · f((β|x|)^P)^(1/P) / β`, β = 1 for x > 0, B for x < 0. Curve types (the factory that builds the
+  shapers names them): 0 arctan `(2/π)·atan(πt/2)`, 2 `t/(1+t)`, 4 tanh (with a "LL" variant taking a second input:
+  the transformer / Breakdown styles), 6 sine `sin(π/2·min(t,1))`, 7 `2t − t²` (t ≤ 1), 8 `1.5t − 0.5t³` (t ≤ 1),
+  11 the asymmetric tube curve (hard ceiling 0.62993, parabola 3.9375u − 6.153u², 12th-power negative knee, floor
+  −1.17545), 12 triode (unused), 13 rectifier.
+- Drive: the pre-gain is a 256-point table over the normalised drive d of `exp((lo + (hi − lo)·d) · ln10/20)`
+  (constants read from the binary: ln10/20 = 0.115129, 1/ln2 for the filter frequencies).
+- Level compensation (the post-gain table): `10^(trim/20) · 2C / (F(G·C) − min(F(−G·C), 0))`, C = 10^(ref/20).
+- Per-style EQ before / after the shaper (style_setup.txt: `(bank, log2 Hz, dB, Q, type, slope index)` calls), the
+  default band tone stack (low shelf 120 Hz Q 0.4159, bell 600 Hz Q 0.4714, high shelves 2.5 kHz Q 0.6034 and 7 kHz
+  Q 1.0; the amps: 170 / 500 / 1500 / 4500 Hz) — Qs read from the binary's constants.
+- High Quality: state index 698 (0 off, 1 good, 2 superb), read back from the refcap030 grid states.
+
+### What LYNX runs (revision 1, hidden `ember::revision` = index 163; `lawRate` = 164)
+
+- `core/EmberSaturnStyles.inc` (generated by `py/geninc.py` from the two analysis tables), `saturnCurve`,
+  `saturnPreDb`, `saturnPostGain`, `lawCharacter` (MixSuite.h / .cpp).
+- A band whose character is a law style: pre-EQ (base rate) → × G → the curve (oversampled by Ember's Oversampling, or
+  at the base rate with `lawRate` = the reference's HQ off, delayed by the oversampler's latency so the PDC does not
+  move) → Ember's DC blocker → × post-gain → post-EQ → the reference's tone stack (bass / mid / treble / presence) →
+  Ember's band mix / level / pan, global tone, cuts, mix, output (unchanged).
+- Filters: RBJ sections at the reference's Q (shelves with the Q form); cuts of slope index n = 6, 12, 18, 24, 30, 36,
+  48 dB/oct as Butterworth sections with the most resonant pair's Q × q/√½ [model: the analysis gives the index, not the
+  section layout].
+- `fromSaturn2` sets the revision and `lawRate` (HQ off); Drive keeps its mapping (Ember's parameter = 30/36 × the
+  reference's normalised drive; `referenceDrive (driveDb (v))` gives it back exactly).
+- A new Ember gets revision 1; `upgradeLoadedEffectParams` sets 0 for anything saved before (savedCount ≤ 163).
+
+### Lab (refcap030 grid subset: 28 styles × HQ off / superb at drive 25 %, 28 styles at 75 % / 96 kHz; 168 files)
+
+| variant | mean | up / down vs base |
+|---|---|---|
+| base (round 150 characters) | 3.375 | — |
+| law, all styles | 3.643 | 56 / 27 |
+| law without the style EQ | 3.190 | 18 / 44 |
+| law with B as 1/B | 3.625 | 56 / 26 |
+
+The style EQ is clearly part of the law (without it 18 up / 44 down); B as given beats its inverse. Per style the law
+scored up with no file down on the lab for styles 0 – 4, 6 – 9, 11, 14 – 17 and 24; on the whole bank Power Amp (16:
+3 up / 2 down) and Breakdown (24: 3 / 6) were net level / down and went back to round 150's. The law scored
+down for 5 / 18 / 19 (a steady −0.7 … −1.0 dB level offset — the "base" style set-up function may add a gain the
+analysis did not show), 10 / 12 / 13 / 26 (Brit Rock, Smooth / Crunchy Amp: a 5.6 kHz segment +16 dB too loud — their
+low-pass Q of 3.1 / the high-shelf Q convention; the rectifier saturates in the reference: it is not a plain |x|), 20 –
+22 (the transformers: ESR −11 → −15 dB but the IMD spectrum 4 … 8 dB off: the dynamic "LL" knee is missing). Those
+keep round 150 / 152's measured characters (`lawCharacter`). Smudge, Foldback and Destroy were never switched (their
+extra stages were not recovered).
+
+### Unrecovered / open
+
+- The "LL" tanh's second input (the transformers' dynamic knee); the rectifier's curve; the base-style level offset;
+  the filter Q convention of the amps' resonant low-passes; Dynamics, feedback, crossover design, Smudger / Breakdown
+  pitch internals (LYNX's behaviour kept, as briefed); Superb's 32× (Ember stays at its 4×: 8× scored no better).
+
+### refcap030 bank (819 files; base = parity190js fxr4; the law = 13 styles)
+
+| block | files | mean before → after | up / same / down |
+|---|---|---|---|
+| grid | 588 | 3.55 → 3.93 | 158 / 428 / 2 |
+| mode | 33 | 4.67 → 4.88 | 18 / 4 / 11 |
+| pairs | 54 | 3.78 → 4.41 | 28 / 23 / 3 |
+| sr44 | 20 | 5.55 → 6.10 | 9 / 8 / 3 |
+| sr48 | 20 | 5.60 → 6.10 | 8 / 8 / 4 |
+| sr96 | 20 | 5.60 → 6.10 | 8 / 10 / 2 |
+| prog | 84 | 4.31 → 4.38 | 13 / 63 / 8 |
+| **all** | 819 | 3.84 → **4.20** | 242 / 544 / 33 |
+
+The 33 files down are 6 → 5 steps on broadband signals (25 × `mix`) of the tube / tape styles: ESR −3 … −11 → −17 …
+−23 dB but the third-octave balance 0.4 → 0.8 dB (limit 0.6) — a steady −0.5 … −0.9 dB level offset (the reference's
+small-signal gain is ~1 dB above the recovered compensation; Clean Tape at 25 %: ref +1.1 dB, LYNX +0.1 dB at −39 dBFS)
+and +1.4 / +3.5 dB at 12.7 / 16 kHz. Finding where that ~1 dB comes from (a gain in the style base set-up or the output
+stage not in the decompiles) would turn these into ups: worth a targeted REA look.
+(Grid column "after": the bank binary with a series pow, identical to the shipped table curve within −100 dB; the
+other blocks: the shipped binary; styles 16 / 24 now render byte-identical to the base, their base scores used.)
+
+## 8. Pro-R 2 → LuxeVerb Space: implementation [EXEC] (branch rea190kw-r2, NOT merged: 43 files down — owner decision)
+
+### Pro-R 2 → LuxeVerb Space (round 190kw, part r2)
+
+Branch `rea190kw-r2` (off `parity190js` d9bfc68ce). Evidence: `/mnt/e/lynx-work/rea190kw/rea/pror2/` (d1.c, d2.c, dis.txt,
+the constructors' listings, wav/ with the analyst's grid renders); lab: `/mnt/e/lynx-work/rea190kw/r2/` (lab/, gold/, mini/,
+runs/, runs2/). LYNX's code was written from the laws below, not from the decompiled text.
+
+### Laws recovered (static analysis) and how LYNX uses them
+
+| Law (reference) | LYNX revision 1 (`core/SpaceVerb.h`, `Engine::set1 / process1`) |
+| --- | --- |
+| True stereo: each channel its own 16-line FDN (Hadamard 16) + 2-line FDN (Hadamard 2) + 16-line early network without a feedback matrix + early reflections + 6 tone filters; a CrossInput feeds each input into the other | Per channel: an 8-line FDN (Hadamard 8 — the law's 16 lengths split even / odd between the channels: 2 × 16 lines measured 2× the CPU), a 2-line FDN, an 8-line early network (each line feeds itself back), its own half of the early-reflection taps, its own diffusers and pre-delay; CrossInput gain 0.5477 · x · min (v / 0.5477, 1)² |
+| Stereo Width W (raw 0 … 1.2): v = √\|W − 1\|; s_in = min ((2 min (W, 1) − 0.8)² + 0.21, 1); l_in = M + s_in S, r_in = M − s_in S; out X / Y (W < 0.7: u = W / 0.7, Y = u, X = 1 + 0.8 (√(2 − u²) − 1); else e = max (W − 1, 0), X = 1 − 1.25 e, Y = 1 + 0.5 e); feedback rotation √(1 − v²/2) / ± v / √2 (16-line) and √(1 − v/2) / ± √v / √2 (2-line) | As stated. The translator now passes W raw: `width` = min (W, 1), hidden `luxeVerbSpaceWidthExt` = (W − 1) / 0.2 |
+| Space: displayed 0.2 … 10 s; network T = 1.15 × displayed × 4^DecayRate; early network at T without the rate; 2-line network (200 + 0.00088 (T − 200)) × rate ms | Space 0 knot 0.2 s (other knots unchanged); main network keeps tp172b's per-style RT scale (1.07 / 0.95 / 1.12 ≈ the measured RT); early network decays at 1.15 × displayed (no rate); 2-line network as stated |
+| Line lengths L_j = 5.18 ms × 1.12402^(k + n0 + j), k = ⌊14 sin (π/2 · S^0.8)⌋, n0 = 9 / 10 / 11 by Distance, channel 1 + 0.5 | Left lines j = 0, 2, … 14, right lines 1, 3, … 15 (the same 16 lengths); early network 5.18 ms × 1.12402^(k + 2j + c) |
+| Late level G = ((250 / T_ms)^0.7 + 1.3) (1 + 0.5 d) f10 (f4 / f10 from Character and Distance) | As stated, times a fitted factor 0.0761 · T^−0.944 (the reference's energy grows slower with T than an FDN's) and per-style trims |
+| Brightness: d = 1 − min (B / 0.7, 1), e = max (2.5 (B − 0.6), 0); filters at 2^(14.136 − 4d) Hz, 2^(13.873 − 2d) Hz, 200 Hz shelf −8e² − 6 · (width term) dB; in-loop cuts moved down d octaves | Low shelf 200 Hz −8e² − 6 · 0.5 min (1.25x, 1.5) v dB; one-pole low pass at 2^(14.136 − 4d − 0.75); high shelf at 2^(13.873 − 2d) (Q 0.5) −18 d dB; a fixed 2.5 kHz shelf −3 dB. The unresolved shape enum was fitted: a one-pole low pass (the measured B = 0 curve flattens at −27 … −31 dB above 8 kHz; a biquad's keeps falling) |
+
+Fitted where the law left a constant open (lab: the bank's component spectra, `lab/comp.py` + `lab/fit.py`): the late /
+early / 2-line / early-reflection levels, Thickness on the whole body (−15.6 / +6.75 dB per unit), CrossInput x = 1
+(left-only impulses across Stereo Width: x = 0 / 0.5 / 1 / 1.5 → 2.92 / 3.32 / 3.40 / 3.20), per-style colour (Vintage
+low shelf −2 dB at 500 Hz, Plate −1 dB / −3 dB at 2.5 kHz / one pole at 9 kHz). The early reflections' extra level at
+small Spaces fitted to zero (the early network carries it). Not used: the in-loop filters on the even lines (their
+per-pass cuts would shorten the top far more than measured if read as per-pass gains; folded into the output shelf),
+the early network's own tone filters.
+
+### Hidden revision
+
+`luxeVerbSpaceRevision` (= ducking + 1) and `luxeVerbSpaceWidthExt` (+ 2), saved while non-zero, no control. New
+LuxeVerb instances (makeEffectSlot, FL state import) and translated Pro-R 2 states get revision 1; a project saved before
+(`upgradeLoadedEffectParams`, saved count ≤ the revision's index) gets 0 and renders bit for bit as d9bfc68ce: 15 gold
+renders (5 settings × 44.1 / 48 / 96 kHz) identical from the base objects and from the round's objects with revision 0
+(`gold/gold_base.txt` = `gold/gold_new.txt`), now in `tests/Parity190kwR2Tests.inc`.
+
+### Result (refcap030 bank, fxparity; base = d9bfc68ce)
+
+All blocks 323 files 3.30 → 3.51 (89 up / 191 same / 43 down): grid 3.43 → 3.50, grid2 2.81 → 3.30 (Space × Width
+2.16 → 3.32, Brightness 2.72 → 3.20, Space × Rate 3.12 → 3.48), mode 3.72 → 3.78, pairs 3.38 → 3.43, prog = 3.50,
+sr44 4.44 → 4.12, sr48 4.12 → 3.94, sr96 4.06 → 4.19, styles = 4.00; refcap182 programme = 3.95; tp172b 3.83 → 3.75.
+The downs (default D state 6 → 4, Ducking at long rates, Distance ≥ 0.75) are an owner decision (HANDOFF.md).
+
+## 9. VintageVerb → Epoch: implementation [EXEC] (merged)
+
+### 11. VintageVerb → Epoch Verb: the loop law built (implementation round, branch `rea190kw-vv`)
+
+Built from §4's ValhallaVintageVerb laws, clean-room (LYNX's own code and tables; no reference code or data copied).
+
+**What is built.** A hidden step past round 190it's revision: `verbs::epoch::loopLaw` (index 19 = paramCount + 1; no
+control, no string, saved while non-zero). It is read only with the Measured law and revision 1. A new instance and the
+VintageVerb translator (through `makeEffectSlot`) get 1; a project or preset saved before loads 0 (`upgradeLoadedEffectParams`:
+saved count ≤ 19), so revision 0 and revision 1 render bit for bit as the base commit did.
+
+With it on:
+1. **The early part holds over Decay**: the early taps run at their long-decay level (×1.6) at every Decay. Before, they
+   rose 3 dB from 2 s to 4 s (round 183b's `min(1.6, 1.13·√(decay/2))`). The reference's first 80 ms read −10.65 dB at
+   0.51, 7 and 33 s.
+2. **The level follows the reference's loop**: E(T, s) = E0 / (1 − 10^(−6 ℓ_k(s)/T)), with ℓ_k = c·L_k(1)/N_k per mode
+   (§4's table; Sanctuary, Dirty / Chaotic Hall as halls, N = 2; Smooth Plate N = 5; Nonlin has no loop law, its gate sets
+   the level) and the size law L_k(s)/L_k(1) = a + b·s^e. The trim is `levelDb_k(0.513 s) + [reference growth from
+   (0.513 s, 100 %) to (T, s)] − [Epoch's own growth]`. Epoch's own growth over Decay was measured once per mode (impulse,
+   60 s renders, knots 0.513 / 1 / 2 / 4 / 7 / 15 / 33 / 70 s, Size 100 %, the law's level off). Its own growth over Size
+   was measured too: +1.2 / +2.0 dB at Size 50 / 25 % at any Decay, so (0.3 + 0.7 s)^−0.64. The base level per mode is
+   the reference's impulse energy at 0.513 s (refcap030's mode sweep). The tone trims of revision 1 still fade out by
+   1.41 s.
+3. **Score-fitted offsets on top** (the stand-ins' spectra differ, so the best-scoring level is not always the energy
+   match): Concert Hall +0.3 dB. Its own-growth knots are 0.1 / 0.6 / 0.2 / 0.9 dB lower at 2 / 4 / 7 / 15 s and 0.3 / 0.3 dB
+   higher at 33 / 70 s, from the pairs / sr / programme / tp172d captures at 0.51 … 33 s. Room is −0.4 dB (its 1.41 s
+   captures) and
+   Bright Hall +1.25 dB. Grit Plate is −3.25 dB and Gated −2 dB. Drift Chamber keeps revision 1: under the law its test
+   signal lost a step at every level.
+
+**Scores** (refcap030, 154 files): mode 2.16 → 2.74 (56 up / 0 down), pairs 3.44 → 3.89 (8 / 0), sr48 3.50 → 3.70 (4 / 0),
+sr96 3.60 → 3.70 (3 / 1: S1 impulse at 96 kHz 4 → 3). All: 2.67 → **3.12** (71 up / 82 same / 1 down). Other banks:
+tp172d 3.73 = (0 / 0), verb183b captures 3.56 → 3.89 (6 / 0), refcap182 programme 3.48 → 3.64 (4 / 0). Gold 72 / 72
+identical (revisions 0 and 1 at 44.1 / 48 / 96 kHz). CPU unchanged within noise. Mini runner (round 190it's test set +
+Parity190kwVvTests): 0 failures.
+
+**Not built (skipped):** the per-mode Size law in the DSP itself. Only the level follows it; Epoch's lines still scale by
+0.3 + 0.7·Size. There is no capture to check the other modes at Size ≠ 100 %, and Palace's law shortens its loop 32×
+at Size 0. RT = Decay with the first lap free of Decay, as a DSP change (Epoch's RT tables of round 183b / 190bz stay).
+1970s at half the host rate and the mod-depth ×0.64. The early level at long decays: ours is 1.5 … 2 dB under the
+reference's −10.65 dB at 7 … 33 s, because the law scales the whole wet path.
+
+Evidence: `/mnt/e/lynx-work/rea190kw/vvimpl/` (lab/eg.py the growth measurement, lab/fit.py the table fit, lab/opt.py the
+score-vs-offset scan, gold/, cpu/, runs/, runs2/, logs/).
+
+## 10. Timeless 3 → Echoform: the state translator [EXEC + STATIC names] (merged)
+
+
+Lab: /mnt/e/lynx-work/rea190kw/tl3 (py/ analysis scripts, rea/ static notes, base/ r*/ bank runs, cpu/ bench, mini/ tests).
+Branch rea190kw-tl3 (off origin/parity190js d9bfc68ce).
+
+### 1. State layout (FFBS v1, 1007 float values)
+
+[EXEC] = read off refcap030 / refcap182 states whose settings were set through the trial's own parameters (capture logs
+`get <Name> = <norm> (<text>)`), correlated value by value (py/st.py):
+
+| index | parameter | stored as | evidence |
+|---|---|---|---|
+| 0 | Delay Time | the normalised knob (0 … 1 = 5 ms … 5 s) | [EXEC] equal to the `get` value in every setting |
+| 4 | Delay Read Mode | 0 Tape / 1 Stretch | [EXEC] mode block |
+| 6 | Ping Pong | 0 off / 1 L-R / 2 R-L | [EXEC] S2, G1 |
+| 85 | Feedback | fraction 0 … 2 (= 0 … 200 %; norm × 2) | [EXEC] grid2 / pairs / sr |
+| 90 | Filter 1 Freq | log2 Hz (norm 0 / 1 = 4.812 / 75616 Hz) | [EXEC] grid / pairs |
+| 94 | Filter 1 Style | index 0 … 10 (Classic … Clean) | [EXEC] mode / grid |
+| 157 | Stereo Width | 0 … 1 | [EXEC] S3 |
+| 160 | Mix | −1 … 1 (= 0 … 100 %) | [EXEC] S2 (30 % → −0.4), S3 (40 % → −0.2) |
+| 752 | Channel Mode | 0 L/R / 1 M/S | [EXEC] mode |
+
+The rest by ORDER: the plug-in's parameter-set constructor (Ghidra, project `tl3kw`, function at 0x1801a8160, reached
+from the "Delay Time" string; `rea/xref1.c`, `rea/filt.c`, `rea/filt2.c`) declares the parameters in this order, and the
+[EXEC] indices land exactly on it (Delay Read Mode 4, Ping Pong 6, Feedback 85, Filter 1 at 90, Stereo Width 157, Mix 160):
+0 Delay Time, 1 Delay Time Pan (range −2 … 2), 2 Delay Offset, 3 Delay Sync (Free, 1/2, 1/4, 1/8, 1/16 Note), 4 Read
+Mode, 5 Freeze, 6 Ping Pong, 7 … 81 fifteen taps × 5, 82 / 83 / 84 main tap enabled / level / pan, 85 Feedback, 86 Feedback
+Pan, 87 Feedback Cross Mix, 88 / 89 Feedback Invert L / R, 90 + 9 k filter k = 0 … 5 (Freq, Gain, Pan, Peak, Style,
+Shape, Slope, Enabled, Used — the last two told apart by the captures: every capture's Filter 1 has Used = 0 and is not
+heard), 144 Filter Routing, 145 / 146 Drive / on, 147 / 148 Lo-Fi / on, 149 / 150 Diffuse / on, 151 / 152 Dynamics / on,
+153 … 156 Pitch Shift / on / mirroring / routing, 157 Stereo Width, 158 Wet Level, 159 Wet Pan, 160 Mix. The enumerations'
+labels are the plug-in's own strings (Shape: Low Pass, High Pass, Band Pass, Bell, Low Shelf, High Shelf, Notch; Slope:
+6 / 12 / 24 / 48 dB/oct; Style: Classic, Gentle, Raw, Tube, Metal, Easy Going, Smooth, Hard, Hollow, Extreme, Clean).
+Only names, order and ranges were read; no code, table or coefficient was taken over.
+
+### 2. What the reference does (black-box, refcap030 / refcap182 renders)
+
+- **Filter 1 in the captures is inert**: grid (11 styles × 5 frequencies, ir / irlv) — all 55 responses identical to
+  ±0.05 dB (the filter is not "used"). The grid block is 125 renders of S1.
+- **Delay time law**: echo sample positions (48 / 96 kHz) and display texts: 0 → 5.000, 0.2 → 174.81, 0.247028 → 249.979,
+  0.25 → 254.75, 0.29334 (default) → 350.0, 0.304714 → 375.0, 0.361589 → 500.0, 0.5 → 804.19, 0.75 → 2490, 0.8 → 3176.81,
+  1 → 5000 ms. No simple closed form fits (power, exp + offset, log-polynomials ≥ 1 % off); LYNX uses a monotone cubic in
+  log ms through these points. The echoes land on whole samples (804.19 ms = 38601 samples at 48 kHz, 77203 at 96 kHz).
+- **Mix law**: dry at unity up to 50 %, wet = 2 × mix (S1 50 % → echo/impulse 0.914; S2 30 % → 0.548; S3 40 % → 0.731).
+- **The echo**: flat to 15 kHz, a linear-phase low-pass on the read (−0.73 / −2.29 / −4.65 / −6.0 dB at 18 / 20 / 22 /
+  24 kHz at 48 kHz; symmetric ringing) once per pass, and a one-pole low cut at 15.5 Hz in the loop (the echo's DC tail
+  decays 0.99794 per sample at 48 kHz). The read filter fitted as a Kaiser-windowed sinc per rate (py/fitk2.py, the low
+  cut in the model): 44.1 kHz half 12, cutoff 0.94 Nyquist, β 11; 48 kHz 8 / 0.9175 / 9.5; 96 kHz 4 / 0.8625 / 6.5;
+  residual −44 … −49 dB under the echo.
+- **Feedback**: per pass = the stored fraction (50 % → −6.04 dB at 1 kHz). Level-dependent only slightly (a 0 dBFS
+  impulse's echo 0.08 dB lower than a −20 dBFS one); above 100 % the loop grows and settles at about ±6 (+15.6 dBFS):
+  modelled as 5.5 tanh (x / 5.5).
+- **Ping pong**: only the start side's own input enters (programme regression, S2 mix: left echo = 0.60 × left input,
+  −0.03 × right), then each hop × feedback (S2: 0.274 / 0.103 / 0.040 for the L / R / L echoes at 40 %).
+
+Confirmation without static help: refcap182/par/FabFilter_Timeless_3_*.tsv (the plug-in's own exposed VST3 parameter
+list, 1144 entries) names every state index 0 … 1006 in the same order (e.g. 90 Filter 1 Freq, 95 Shape "Low Pass",
+96 Slope "12 dB/oct", 98 Used "Unused", 158 Wet Level "0.00 dB", 160 Mix, 752 Channel Mode).
+
+### 3. Built (branch rea190kw-tl3)
+
+- Echoform hidden `lineLaw` (index 109): dry / wet law, per-rate read filter, whole-sample delays, 5.5 tanh limit, ping
+  pong start side's own input. Off = bit-identical (6 Echoform settings + Fruity Delay 3 byte-compared, fxr4 vs fxr1).
+- `fabfilter::fromTimeless3` + `timeless3DelayMs`, `translatorNamed ("timeless3")`; `[fabfilter-timeless]` → Echoform,
+  `translate = timeless3`, preset = Timeless 3's default with `#109=1`.
+- tests/Parity190kwTl3Tests.inc (5 tests); mini runner (64 test files, FxAudit173d left out for time): 545342 checks, 0 failures.
+
+### 4. Gate
+
+refcap030 bank (cmp_r2.txt): 2.37 → 6.93, up 274 / same 5 / down 0 (grid 1.94 → 7.68, grid2 2.16 → 5.88, mode 3.00 → 6.00,
+pairs 1.75 → 5.03, sr44 3.38 → 7.94, sr48 3.44 → 7.94, sr96 3.56 → 7.56). refcap182 programme (prog_base.log /
+prog_r2.log): 3.45 → 7.25, 20 / 0 / 0. CPU (cpu/bench.log): FD3 default 0.68 … 0.84 %, Echoform D / S1 / S2 1.50 … 2.12 %
+(without the law 1.32 … 1.68 %).
+
+Old projects: a .lynx saved with the old substitute holds kind = Fruity Delay 3 + its params + substituteFor; only slots
+of kind `plugin` are substituted on load (PluginHost.cpp, the loop over `fx.kind != EffectKind::plugin`), so they keep
+Fruity Delay 3 as saved. A .flp (or a .lynx saved with the real plug-in) opened without Timeless gets the new Echoform.

+ 357 - 0
docs/analise/REA_rodada190lg.md

@@ -0,0 +1,357 @@
+# Round 190lg: the scorer's alignment window, Saturn 2's small-signal offset, Pro-R 2's late level, Crest Versatile (0.1.30 parity)
+
+2026-11-18. Continues round 190kw (docs/analise/REA_rodada190kw.md). Owner's permission as there: static analysis of
+third-party plug-in binaries for sound parity, clean-room only — laws and structure written down in our own words and
+re-written as LYNX's code; no code, tables, presets or content of the references copied; no protection bypassed. Evidence
+markers as in 190kw: [STATIC] read in the decompiled / disassembled binary, [EXEC] measured on renders, [CODE] LYNX source.
+
+## 1. The parity scorer's alignment window is now in time (owner decision 1) [CODE + EXEC]
+
+`scripts/flref_compare.py` `find_lag` searched ±4 096 samples at every rate: 85 ms at 48 kHz but only 42.7 ms at 96 kHz,
+so a reference with more latency than that (Pro-L 2's Dense / Loud / Safe report 6 057 samples = 63 ms at 96 kHz) could
+not be aligned there. The window is now `lag_window()` = max (4 096, ⌈(4 096 / 48 000) · rate⌉) samples: 85.3 ms at 48,
+88.2 and 96 kHz (8 192 at 96 kHz), 92.9 ms at 44.1 kHz (never narrower than the old 4 096). The search span keeps its old
+default of 1 764 000 samples at every rate. Consequence: every result at 44.1 / 48 kHz is bit-identical to the old
+scorer; only files above 48 kHz can change. All scoring from this round on uses the new window.
+
+Re-baseline, SAME binary (rea190kw's fxrender `fxrG`) scored by the old and the new scorer:
+- refcap030, every block of Pro-L 2 / Pro-Q 4 / Pro-MB / Pro-G at all rates: 966 files 7.94 → 7.98 (10 up / 956 same /
+  0 down); every 44.1 / 48 kHz row byte-identical. The other banks (refcap182 programme, tp172b, tp172d, verb183b) are
+  48 kHz only, so their baselines are unchanged by construction.
+- refcap030, every 96 kHz file of every tag with 96 kHz captures (29 tag / block rows, 801 files): 4.53 → 4.57
+  (10 up / 788 same / 3 down). Per row:
+
+| bank (tag) | block | files | old window | new window | up / same / down | rows identical |
+|---|---|---|---|---|---|---|
+| Decapitator | sr96 | 24 | 4.46 | 4.46 | 0 / 24 / 0 | 12 |
+| EchoBoy | sr96 | 20 | 4.90 | 4.90 | 0 / 20 / 0 | 15 |
+| EchoBoyJr | sr96 | 20 | 4.15 | 4.15 | 0 / 20 / 0 | 15 |
+| FabFilter_Pro_C_3 | sr96 | 20 | 7.65 | 7.65 | 0 / 20 / 0 | 8 |
+| FabFilter_Pro_DS | sr96 | 15 | 7.13 | 7.13 | 0 / 15 / 0 | 10 |
+| FabFilter_Pro_G | sr96 | 24 | 7.58 | 7.58 | 0 / 24 / 0 | 13 |
+| FabFilter_Pro_L_2 | sr96 | 24 | 6.21 | 7.54 | 10 / 14 / 0 | 6 |
+| FabFilter_Pro_MB | sr96 | 20 | 7.90 | 7.90 | 0 / 20 / 0 | 11 |
+| FabFilter_Pro_Q_4 | sr96 | 15 | 9.73 | 9.73 | 0 / 15 / 0 | 10 |
+| FabFilter_Pro_R_2 | grid2 | 15 | 3.53 | 3.53 | 0 / 15 / 0 | 12 |
+| FabFilter_Pro_R_2 | sr96 | 16 | 4.06 | 4.06 | 0 / 16 / 0 | 10 |
+| FabFilter_Saturn_2 | grid | 280 | 3.45 | 3.45 | 0 / 280 / 0 | 134 |
+| FabFilter_Saturn_2 | sr96 | 20 | 5.60 | 5.60 | 0 / 20 / 0 | 10 |
+| FabFilter_Timeless_3 | grid2 | 25 | 5.88 | 5.88 | 0 / 25 / 0 | 22 |
+| FabFilter_Timeless_3 | sr96 | 16 | 7.56 | 7.56 | 0 / 16 / 0 | 12 |
+| LittleAlterBoy | sr96 | 12 | 3.25 | 3.25 | 0 / 12 / 0 | 8 |
+| LittlePlate | sr96 | 16 | 3.88 | 3.88 | 0 / 16 / 0 | 7 |
+| LittlePrimalTap | sr96 | 20 | 3.90 | 3.90 | 0 / 20 / 0 | 15 |
+| PanMan | sr96 | 15 | 5.20 | 5.20 | 0 / 15 / 0 | 10 |
+| PrimalTap | sr96 | 20 | 3.15 | 3.15 | 0 / 20 / 0 | 15 |
+| ValhallaDelay | sr96 | 16 | 4.06 | 4.06 | 0 / 16 / 0 | 12 |
+| ValhallaFreqEcho | sr96 | 16 | 3.31 | 3.31 | 0 / 16 / 0 | 12 |
+| ValhallaPlate | sr96 | 20 | 3.90 | 3.85 | 0 / 19 / 1 | 6 |
+| ValhallaRoom | sr96 | 16 | 3.44 | 3.38 | 0 / 15 / 1 | 9 |
+| ValhallaShimmer | sr96 | 16 | 3.69 | 3.69 | 0 / 16 / 0 | 11 |
+| ValhallaSpaceModulator | sr96 | 20 | 4.40 | 4.40 | 0 / 20 / 0 | 15 |
+| ValhallaSupermassive | sr96 | 20 | 5.70 | 5.70 | 0 / 20 / 0 | 14 |
+| ValhallaUberMod | sr96 | 20 | 3.95 | 3.85 | 0 / 19 / 1 | 15 |
+| ValhallaVintageVerb | sr96 | 20 | 3.70 | 3.70 | 0 / 20 / 0 | 12 |
+| **all** | | 801 | 4.53 | 4.57 | 10 / 788 / 3 | 461 |
+
+The ups are Pro-L 2's Dense / Loud / Safe states (sr96 6.21 → 7.54: D_mix 4 → 10, D_stim 4 → 8, S4_stim 4 → 8 …; the lag
+found is now the reference's real 4 796 … 5 476 samples). The three downs are reverb / modulation tails whose
+cross-correlation peak at a lag beyond the old window is spurious: ValhallaPlate sr96 S1_stim 4 → 3 (lag 3 724 → 8 141),
+ValhallaRoom sr96 S2_stim 4 → 3 (327 → −8 103), ValhallaUberMod sr96 S1_stim 4 → 2 (0 → −7 013). They are scorer
+artefacts of the wider search on diffuse material, not sound changes; listed for the owner.
+
+## 2. Documentation: what the stand-ins were informed by (owner decision 2) [CODE]
+
+`src/core/PluginSubstitutes.h` said the parameter maps never used decompiled third-party code; CONTRIBUTING.md,
+docs/PLUGIN_FALLBACK.md, docs/PLUGINS.md ("Fitted") and docs/PARITY.md (round 128's sources) said the same. Since 2026-11,
+by the project owner's decision, some stand-ins and translators (the FabFilter roles from round 190kw on) were also informed
+by clean-room static analysis of the third-party binaries. All five now say so: laws and structure in our own words, no
+third-party code / tables / presets / content copied, licence protections never bypassed, evidence in docs/analise/REA_*.md;
+static analysis of a third-party binary only by the owner's decision. Statements about round 101's four delay /
+modulation effects ("nothing in them was decompiled") and README's "studied from the outside" (FL Studio / Live) were left
+as they are: still true for what they describe.
+
+## 3. Saturn 2 → Ember: the ~1 dB small-signal offset found [STATIC + EXEC] → landed (merged)
+
+Branch `rea2_190lg-sat` (off `origin/rea190kw-sat` 751779be4). Work folder `/mnt/e/lynx-work/rea2_190lg/sat/`.
+Clean-room: static reading of the plug-in's code for its structure and laws, level probes on the refcap030 captures;
+LYNX's code is written from the laws below, nothing copied.
+
+### Method
+
+- `probe/refbank.py`: the level-sweep response of every refcap030 Saturn 2 reference render (`lvsweep`: five 2 s log
+  sweeps at −39 … −3 dBFS) per third octave and level (496 renders: grid / styles / mode / pairs / sr blocks).
+- `py/law.py`: a Python mirror of LYNX's revision-1 law (curves, drive range, compensation, the style EQ sections); its
+  analytic small-signal response matches LYNX's own render within 0.02 dB (Warm Tube 25 %, every band below 16 kHz).
+- `py/sim.py`: the same law as a nonlinear model on the sweep (4× FFT oversampling), to test where a gain sits
+  (`hyp.py`, `fitdrv.py`, `cliptest.py`); `py/qtest.py` compares the cut-filter Q conventions.
+
+### Finding 1: the offset is the reference's channel soft clipper [STATIC + EXEC]
+
+- The reference minus the law, at −39 dBFS, 150 Hz … 3 kHz: **+1.023 dB for Clean / Warm / Broken Tube, Clean / Warm /
+  Old Tape, Gentle / Heavy Saturation, Tweed and the FX styles at drive 0** (coherent gain, cross-spectrum = power ratio,
+  residual ESR −84 dB), identical at 44.1 / 48 / 96 kHz and High Quality off / good / superb; the ratio is 1.1249
+  (Clean Tape, Gentle Saturation, Breakdown, Destroy) = **9/8**. **0.00 dB for the four Subtle styles and Gentle / Warm
+  Transformer** (Subtle Tape: 1.0121 = its trim of +0.1 dB alone).
+- A post gain of 9/8 alone fits Clean Tape at drive ≥ 0.5 at every level, but at low drive the reference also compresses
+  more near 0 dBFS (a "drive shift" of +4.1 dB at drive 0, +0.6 dB at 25 %, 0 from 50 % on): a stage after the curve
+  that saturates near full scale.
+- Statically: `SaturnProcessor::SaturnChannel` (constructor 0x180179820) ends with a `SoftClipper` (constructor
+  0x1801164b0, process 0x180116720, threshold listener 0x180116910): `u = clamp (k·x, ±1)`, `y = T · (1.5u − 0.5u³)`,
+  `k = (1 / (12T²) + 2/3) / T`, T = 10^(threshold / 20), threshold 0 dB by default (constants 1.0 / 0.5 at 0x1801f8550 /
+  0x1801f8560, 12 at 0x180216a0c, 2/3 at 0x180216620). Its small-signal gain is 1.5·k·T = **1 + 1 / (8T²) = 9/8** at
+  T = 1, its ceiling T (0 dBFS) from |x| ≥ 4/3. (It runs oversampled when the channel's oversampler factor is ≥ 2.)
+- With this clipper after the law the nonlinear model fits the reference's sweeps at **every level and drive within
+  0.03 dB** (mid-band median per level, −39 … −3 dBFS): Clean / Warm Tube, Clean / Warm Tape, Gentle / Heavy Saturation at
+  drive 0 / 25 / 50 % (`probe/clip_g0.txt`, `cliptest.py` runs in HANDOFF); Old Tape within 0.12 (0.44 at −27 dBFS),
+  Tweed 0.2 … 0.26.
+- The Subtle styles and the transformers fit with no clipper at all (with it they would be 1 dB louder and compress near
+  0 dBFS). Why the channel's clipper does not act on them was not found in the static analysis (the style set-ups differ
+  only in their EQ, the noise level of the NoiseFilter and the effect switches); LYNX applies it by style
+  (`saturnClipStyle`) as measured.
+- Not the cause (checked): the NoiseFilter (0x180115490: input + triangular noise × a signal-following level, −110 dB,
+  −144 dB for the Subtle styles: additive and incoherent), the Compander (0x18011a200: gain 1 at Dynamics 0), the drive /
+  compensation tables (0x180113ed0 / 0x180114090 / 0x1801140d0 / 0x180117090: 256 points over 0 … 1, exactly the
+  recovered formulas), the curve implementations (the same curve object serves the compensation and the processing; Subtle
+  Tape and Clean Tape share the sine path but differ), the style controller (0x180167300: set-up, cabinet, the Compander's
+  cabinet flag only for the four amps).
+
+### Finding 2: the +1.4 / +3.5 dB at 12.7 / 16 kHz is the cut filters' Q convention [EXEC]
+
+- The reference's cut filters (low / high pass of slope index n) at Q 1 are Butterworth: LYNX's sections scaled the most
+  resonant pair by q / √½ (Q 1 → a resonant 1.0), which gave +1.3 dB around 31 Hz (the 24 Hz high passes) and +1 … +5 dB
+  at 12.7 … 16 kHz (the 18 / 20 kHz low passes of Warm Tube / Warm Tape, Old Tape's 7 kHz). With the pair × q (Q 1 =
+  Butterworth) the small-signal residual of Clean / Warm Tube and Warm Tape is within 0.1 dB from 40 Hz to 16 kHz at
+  44.1, 48 and 96 kHz (rms over the bands 1.00 → 0.13, 0.70 → 0.12, 0.55 → 0.08).
+
+### Finding 3: the DC blocker [EXEC]
+
+- After a loud Warm Tube passage the reference's output DC decays with τ ≈ 0.106 s (≈ 1.5 Hz one-pole: 0.0546 → 0.0213
+  → 0.0083 → 0.0013 over 0 / 0.1 / 0.2 / 0.4 s); Ember's 8 Hz blocker (τ 20 ms) also took 0.3 dB off the 31 Hz band of
+  every law style. The law bands now use a 1.5 Hz blocker.
+
+### Still open
+
+- The amps (Tweed … Power Amp): the clipper removes 1 dB of their offset, but their 4 … 8-filter EQs still miss by up to
+  30 dB above 5 kHz (the bell / shelf Q conventions and slope indices of the amp sections); the transformers' dynamic knee;
+  Broken Tube's level above −15 dBFS (−1.6 dB); why the Subtle / transformer styles skip the channel clipper.
+
+Gate (time-based scorer before and after; base = rea190kw, Ember revision 0): refcap030 819 files 3.84 → 5.14 (439 up /
+380 same / 0 down; round 190kw's law alone: 4.20, 33 down), refcap182 programme 6.16 → 7.88 (19 up / 0 down), tp172b 5.1 →
+7.75 (20 up / 0 down). Old projects 48 / 48 byte-identical. Per block: docs/PARITY.md "Round 190lg: the ~1 dB small-signal
+offset found".
+
+## 4. Pro-R 2 → LuxeVerb Space revision 1: the levels refitted on time windows [STATIC + EXEC] → NOT merged (17 files down: owner decision)
+
+Branch `rea2_190lg-r2` (off `rea190kw-r2` 435966430). Lab: `/mnt/e/lynx-work/rea2_190lg/r2/` (lab/svlab.cpp = core/SpaceVerb.h
+alone, equal to fxrender; lab/tw.py time windows × bands; lab/comp3.py + lab/fit4.py component fit; lab/lab2.py real-score
+bank runs; labruns/*.json). Scorer: round 190lg's time-based alignment window (63b3ce513) for before and after. Static
+evidence: `/mnt/e/lynx-work/rea190kw/rea/pror2/` (d1.c) and this round's `th.c` (the Thickner's helpers, copy of the
+ProR_2 Ghidra project). LYNX's code is written from the laws below, not from decompiled text.
+
+### What was wrong in 190kw-r2 [EXEC]
+
+Energy per time window (dB, mono sum, from the reference's onset; Space 50 %, Modern, 100 % wet), LYNX − reference:
+
+| window (s) | 0.05–0.1 | 0.2–0.4 | 0.4–0.8 | 0.8–1.6 | 1.6–3.2 | 3.2–6.4 |
+|---|---|---|---|---|---|---|
+| rate × 0.25, 190kw-r2 | −1.5 | +8.9 | +26.1 | +53.0 | +104.8 | . |
+| rate × 4, 190kw-r2 | +9.9 | −2.5 | −7.4 | −14.0 | −22.3 | −23.7 |
+| rate × 0.25, this round | +1.4 | −0.2 | +5.3 | +11.5 | +24.3 | . |
+| rate × 4, this round | +2.4 | −2.1 | −2.3 | −2.1 | −1.6 | −1.1 |
+
+(At rate × 0.25 the remaining excess sits 70 … 125 dB under the peak window.)
+
+Rendering the components alone showed why: the early network (1.15 × displayed time, no rate) carried the whole tail and
+the late network sat 6 / 14 / 25 dB under the reference at rate × 0.25 / 1 / 4 (the fitted factor 0.0761 · T^−0.944 had
+pushed it down; the fit only saw the total level and the spectrum, where the two networks trade freely). With the tail
+in the wrong network a long rate died early, a short one rang 2.9 s, and Ducking (which dips the wet while the input
+plays) left almost nothing after the dip at long rates (−8 … −16 dB).
+
+### Laws used
+
+- **Late level** [STATIC, re-read]: 0x180157290 sets the late gain from T at +0x2748, which 0x180156940 writes as
+  rate × 1.15 × displayed (fVar3 · fVar5); the 2-line T (+0x668) is ((T − 200) · c + 200) × rate. The value at +0x39d8
+  (1.15 × displayed, no rate) has a consumer that was not traced: the analyst's "early network decays at T without the
+  rate" is not confirmed, and the captures show no rate-independent tail (rate × 0.25: −81.5 dB at 0.8–1.6 s, −150 dB
+  at 1.6–3.2 s). LYNX keeps the law's form and shortens the early network to 0.3 × 1.15 × displayed (a build-up over the
+  first ~100 ms, the windows the late network has not reached yet).
+- **Distance** [EXEC]: the reference's early windows by Distance (Space 25 %, dB): 0–5 ms −11.7 / −18.2 / −23.4 / −52.6 /
+  −41.0 at D = 0 / ¼ / ½ / ¾ / 1; 5–20 ms −10.6 … −33.2; 20–50 ms −16.5 … −27.0; 50–100 ms −17.2 … −19.9; the tail
+  (0.1 s on) within 1.6 dB. LYNX's early network and 2-line network did not depend on Distance at all; they now fall
+  with it (fitted dB polynomials), the early reflections more steeply, and the whole wet gets a fitted trim by Distance.
+- **Thickness = the Thickner** [STATIC + EXEC]: class `Thickner` (vtable 0x18020c078; process 0x180152fe0, parameter
+  update 0x1801532d0, constructor 0x180152c80). Amount u = max (t, 0): pre gain (20u − 12) dB (0x1802133d8 = 20,
+  0x180213334 = 12, exp at 0x1801c9850 with ln 10 / 20), saturation (2/π) · atan (π/2 · x) (0x180121b30: vectorised atan,
+  scale 1.5708, output × 0.63662), post gain −(1 + 0.1u)(20u − 12) dB, × the gain of a `Compander` (constructor
+  0x1800ffbd0: two Detector / Capacitor pairs, one at −6 dB ratio 2 (12 / 36) with 0.5 s / 0.2 ms, one at −48 dB ratio 4
+  (0 / 24) with 0.25 s / 5 ms; its amount = t × 0.5). Measured: an impulse's response moves uniformly by −13.2 dB per
+  unit below 0 (every window, the early reflections included) and by about 6.8 (1 − (1 − t)²) dB above, while a music wet
+  (median −25.8 dBFS short-term) moves by −0.2 dB at t = −0.6 and −1.4 dB at t = +0.6: the gain acts on a quiet wet only.
+  LYNX: the measured gains on the body (late, 2-line, early; the reflections too below 0), applied in full while the wet's
+  (l² + r²) / 2 envelope (20 ms / 300 ms) is under −38 dBFS and not at all above −28 dBFS. The Compander's detector
+  semantics (knee / range fields) were not resolved, so this is a level gate fitted on the captures, not its circuit.
+
+### Findings not built (for the next round)
+
+- **The reference's early reflections are fixed taps** [EXEC]: at 44.1 / 48 / 96 kHz and every Space / Distance the
+  impulse captures put single-sample reflections at L 6.69, 11.33, 18.35, 25.42 ms and R 8.31, 12.50, 21.15, 32.40 ms
+  (levels change with Space and Distance, the times do not). LYNX's taps (tp172b's 12) do not line up, so fxparity's
+  alignment (`find_lag`, cross-correlation of the mono sums) often locks onto a wrong lag (e.g. +1238 samples = LYNX's
+  first 26 ms cut on most Space-25 % files), which moves rms / spectrum by 1 … 3 dB at random. Matching these taps should
+  stabilise the alignment and the waveform match (ESR).
+- **Steady 1 kHz tones are a modal lottery**: the stim and noise-burst signals end with a long 1 kHz sine that dominates
+  their rms. A static FDN's response at one frequency is Rayleigh-distributed (±5 dB); the reference itself varies
+  ±1.5 dB between identical captures (its modulation). 190kw-r2 had L / R +3.0 / −4.8 dB on that tone, this round
+  +6.4 / −2.4, revision 0 −0.5 / −1.5: G4 (Rate × Ducking), the mode stims and S1 / D stims move with it.
+
+## 5. Pro-C 3 → Crest: Versatile (the reference's default style) rebuilt as Allround under revision 1 [STATIC + EXEC] → landed (merged)
+
+Branch `rea2_190lg-vers` (off `rea2_190lg`). Evidence: the coordinator's notes `vers/NOTES.md`, the decompiled files
+`/mnt/e/lynx-work/rea190kw/rea/out/proc3_vers*.c`, `proc3_det.c`, `proc3_cap.c`, this round's `lin.c` (LinearCapacitor,
+RandomModulationProducer, RangeLimiter; Ghidra project copy), `proc3_rtti.txt`. LYNX's code is written from the laws
+below, not from decompiled text; the reference's piecewise-linear knob curves are not copied (LYNX fits its own smooth
+laws to their shape).
+
+### The graph [STATIC] (VersatileCompressor_MainCompressorAlgorithm: constructor 0x180164ae0, wiring 0x180167a00,
+### parameter update 0x1801673c0, outer → inner 0x1801688b0)
+
+x = the linked side-chain magnitude (as for round 190kw's V2 styles).
+- slow: sA = 0.979424 x + mA · max (EQ204 (x), 0) (Mixer ac; RangeLimiter b0 = clamp (0, 10000); mA = Mixer b5 =
+  0.020348 + 0.015089 · a RandomModulationProducer) → Detector a6 → Capacitor a5 (attack 0.0008 + 0.2492 a³ s, release
+  0.01 + 0.968061 tan (1.2 r²) s, auto-release constant 2.049379 r² + 0.0905348, two step terms from the attack knob).
+- fast: sB = 0.91 x + mB · min (x, 0) (Mixer ad, RangeLimiter ae = clamp (−10000, 0); mB = 0.09 + random) → EQFilter a9
+  (2^12.64 ≈ 6.39 kHz) → Detector a7 → LinearCapacitor a8. With x a magnitude, min (x, 0) = 0: the random term never
+  reaches the fast path.
+- reduction = max (S, w · F) (Mixer aa, mode max), w = clamp (0.9 + 0.0397797 · F, 0.7, 1.06) (Mixer ab + RangeLimiter b3).
+- LinearCapacitor (vtable 0x18021fe08, process 0x18010fd90): a slew limiter. Per sample the output moves toward its
+  input by at most unit / (rate · T) — T = the attack time rising, the release time falling (each ≥ 0.1 sample),
+  unit = 1 (24 in its other mode). Its two times come from the knob times through two piecewise-linear curves.
+- RandomModulationProducer (process 0x18011b0d0, next value 0x18011b360): a 24-bit LFSR (taps 0x11d872b) drawing values,
+  joined linearly or by a cubic (2t³ − 3t² form) at the node's rate (fields 0.011 / 7.822 and 0.008 / 9.059).
+
+### [EXEC] what the bank settled (refcap030 Versatile files, new scorer; lab: env-overridable law in a lab build)
+- Domain: the detectors' output read as dB of reduction compressed every file by 1.5 … 4 dB (36 of 38 down); read as
+  the reduction share 1 − 10^(−GR / 20) (as round 190kw's Mastering / Vocal) the steady files reach ESR −42 … −50 dB.
+- The attack knob's two step-dependent Capacitor terms (LYNX's p1 / p2 or p5 / p6 readings of the two curves, every
+  assignment tried): all scored lower than leaving them neutral (6.50 / 5.55 / 7.13 against 7.87): not built.
+- Release of the fast path: with LYNX's fit of the reference's curve the fast path held the reduction up on music
+  (−0.3 … −0.6 dB, 4 files down); at half of it round 108's measured burst (attack 10 / release 200 ms, the gain back
+  half-way after 61.6 ms on the reference) reads 59.5 ms (full curve 120 ms, no fast path 28 ms) and the bank is
+  7.82 with no file down — taken.
+- Random modulators: their mean (mA = 0.020348).
+- EQ shapes (enum 0, the second value 0.12 / 0.16 unresolved): two-pole low-passes at 204 Hz / 6.39 kHz.
+
+### LYNX's own smooth knob laws (fitted to the curves' shape, not their points)
+- T3 (attack s): 0.08 · s / 0.02 up to 0.02 s, then 0.15 · (s / 0.2)^0.273.
+- T4 (release s): 0.19 + 0.55 s + 0.03 s² (half of the fitted 0.38 + 1.1 s + 0.06 s²).
+
+## 6. Pro-Q 4 → Facet EQ: the dynamic band's auto threshold on the reference's own detector [STATIC + EXEC] → landed (merged)
+
+Branch `rea2_190lg-q4` (off `rea2_190lg` e821c2616). Evidence: `/mnt/e/lynx-work/rea190kw/rea/out/q4_bc.c`,
+`q4_bcctor.c`, `q4_f.c` and this round's decompiles (copy of the ProQ_4 Ghidra project): `auto.c` (0x180116380 /
+0x180116100 / 0x18012fda0 / 0x18012be30), `xref_bc.c` (the band that builds the compander), `k.c` (0x180129710).
+LYNX's code is written from the laws below; the one knob table (0x180129710) is not copied — LYNX fits its own curve.
+
+### The structure [STATIC]
+- BandCompander (vtable 0x1802403c0, process 0x18014e820). With Auto on ([0x35], default 1) it runs a `NormalizerStub`
+  (constructor 0x180116380, process 0x180116530): two followers (0x180116100: one-pole, coefficient
+  1 − exp(−ln 10 / (T · rate)), attack T when rising, release when falling: 0x18012bfe0) with attack 0 and release 10 s,
+  the output type 0 (|x| / envelope) and the dB flag on. Per sample: env = follower (|x|); out = |x| / max (env, 0.01)
+  in dB (floor −40 dB). The second follower runs only while a start-up count is positive and then hands its state to
+  the first (the count's setter was not traced: not built).
+- The level then goes through the usual gain computer 0x18012fda0 (threshold, quadratic knee, ratio, range). The
+  threshold / knee buses' values in Auto mode were not traced: LYNX keeps round 190js's fitted mapping (threshold
+  = the peak level − |range|, knee = 1.53 |range|), which the captures confirm with the reference's own detector.
+- Three more followers smooth the reduction ([0x7c] f0, [0x7d] f1, [0x7e] f2): y0 = f0 (GR), y1 = f1 (y0),
+  y = f2 (max (y0, y1)). Their times (0x18014ee20) come from the compander's region (state values 17 / 18 of the band:
+  its detection range in log2 Hz, 10 Hz … 20 kHz by default) and two knobs (BC +0x50 = attack %, +0x2d8 = release %):
+  rel = 0.005 + 2.495 K (release % / 100) s (K: a 6-point table); u = 1 − 0.1 clamp (lo − 4.5, 0, 10);
+  atk = (A² ((3.6e-5 u² + 6e-5) u² + 6e-5 u² + 1e-4))² · 0.59975 + 0.00025 s; centre = 2^((lo + hi) / 2);
+  low = 100 / max (centre, 100); wide = (clamp (hi − lo, 2, 8) − 2) / 6.
+  f0: attack 0, release (min (1, wide + low) · 0.02 + 0.015) s; f1: attack max (0.12, 0.3 − 30 atk), release
+  1.29 rel + 0.25; f2: attack 0.01 wide + atk, release (0.25 low + 0.45) rel.
+
+### [EXEC] what the bank settled (refcap030 grid2 = the auto sweep; gain trajectories in 50 ms frames)
+- Envelope 10 s, floor −40 dB, knee 1.53 |range|: the minimum of the trajectory error (8 s / 12 s and knee 1.4 / 1.7
+  all worse).
+- With the reference's times at scale 1 the band released ~3× too slowly and attacked over 250 ms where the captures
+  reach the whole range within 100 ms. Fitted scales: f1 × 0.65, f2 attack × 0.05, f2 release × 0.6 (mean trajectory
+  error 0.33 dB → 0.16 dB). The uncertain link is the knob percent: LYNX holds attack / release in ms and maps them back
+  (50 % = 9.22 / 268 ms, the translator's law).
+- LYNX's release curve: K (x) = (e^(3.32 x) − 1) / (e^3.32 − 1) (own smooth fit, not the table's points).
+
+## 7. Pro-MB → Prism Multiband: the band compander's own graph [STATIC + EXEC] → built (revision 1, branch `rea2_190lg-mb`, 0 files down)
+
+Branch `rea2_190lg-mb` (off `rea2_190lg` 2fbced9c7). Evidence: this round's decompiles of a copy of the ProMB Ghidra
+project (`/mnt/e/lynx-work/rea2_190lg/mb/out/`: `xref_bcvt.c` = the BandCompander constructor 0x1800f5210, `bc_proc.c`
+= its process 0x1800f6210 and its updates 0x1800f6b20 / 0x1800f6820 / 0x1800f67d0 / listener 0x1800f6640, `nodes.c` =
+the node constructors, `procs.c` = the node processes, `ph.c` = PeakHold), constants read with `rd.py`. LYNX's code is
+written from the laws below; the one knob table (0x1800d8b50, 7 points) is not copied: LYNX fits its own smooth curve
+to the shape of the composite release law.
+
+### The graph [STATIC] (constructor 0x1800f5210)
+Nodes (BandCompander offsets): DelayFilter +0x198 → DBConverter +0x188 → Detector +0x190 → Router +0x590 → PeakHold
++0x3a8 → EQFilter +0x5a0 → Capacitor A +0x170; Mixer +0x298 (mode 2 = max) of (A, EQFilter) → Capacitor B +0x178 →
+Router +0x598 → × two parameter sources (+0x2a8: a 0 … 2 amount, default 1; +0x3b0: the output sign / scale) → 10^(x/20)
+(the vectorised exp in 0x1800f6210). Capacitor B's release bus is driven by a Mixer +0x2a0 (sum): the release time
+(+0x4d8) + w · Capacitor A (w = 0, or 0.007 s per dB in the inverted modes). Two StaticMixers (+0x5a8 / +0x5b0) give
+36 − x for the Routers' second inputs.
+
+Modes (0x1800f6820; DynamicsMode +0x60, range +0x120):
+- compress with range < 0 (downward compression) or expand with range > 0 (upward expansion): Detector purpose 0
+  (the compressor curve: overshoot over the threshold through the quadratic knee, × (1 − 1/ratio) under 100 : 1),
+  its range = |range|, its soft-range width = 0.6 · knee + 12 dB; Routers straight; output sign −1 / +1. **Built.**
+- the other two (upward compression, downward expansion): Detector purpose 1 (below the threshold, a one-sided knee,
+  × (ratio − 1), with a hysteresis flag), range 36, soft width = knee; Routers take 36 − x; output × range / 36; B's
+  release + 0.007 · A. **Built** (see [EXEC]).
+
+Detector (process 0x1800c09a0, general path) [STATIC]: dB domain (GainChangeDomain 1); then the soft range: with
+v = R − GR inside ± S/2, GR = R − ((S/2 + v) / S)² · S/2; GR ≤ R, ≥ 0. Purpose 1 (the inverted modes): under = threshold −
+level; ≤ 0 → 0 (a flag that compares the overshoot with an unconnected bus, value 0: no hysteresis in this graph); inside
+the knee (under / K)² · K/2, past it under − K/2; × (ratio − 1). The plug-in binds the band's ratio / range parameters to
+the compander's properties directly (ProMBBand constructor 0x1801194a0), so the ratio is the plain ratio.
+
+Times (0x1800f6b20; a = attack %, r = release %, 0 … 100):
+- rel = 0.005 + 2.495 K'(r / 100) s; K = a 7-point knob curve, K' = K up to 0.7, then 0.7 + 4.333 (K − 0.7).
+- Capacitor A: attack (1 − min (1, 0.05 a)) · 0.5 + 0.12 s, release (rel + 1) · 0.25 s.
+- Capacitor B: attack 6e−9 a⁴ + 0.00025 s, release = rel (the bus), p5 = 1 − 0.7 (1 − min (1, 0.05 a)), p6 = 0.1 rel
+  (the Capacitor class is byte-identical to Pro-C 3's: REA_rodada190kw §2's v2Step).
+- Look-ahead switch on (+0xc8): lead = clamp (500 / max (centre, 100) + the band's look-ahead ms, 0.1, 20) ms, centre
+  = 2^((lo + hi) / 2) of the band's edges (log2 Hz); the detector input is delayed by 20 − lead ms while the plug-in's
+  latency is 20 ms (refcap030 manifest: 960 samples at 48 kHz; 0 with the switch off). Off: no delay, lead 0.1 ms.
+- PeakHold (process 0x1800c32d0 / 0x1800c33b0: a sliding maximum, time in ms × 0.001 × rate): hold = 1.1 · lead +
+  (r + 2) (1 − min (1, 0.05 a)) ms (switch off: 0.11 + the same knob term).
+- EQFilter (shape 0, order property 1): frequency log2 (650 / lead) → 650 / lead Hz (switch off: 6.5 kHz). LYNX models
+  it as a two-pole Butterworth low pass (the lab compared one pole).
+
+Constants (rd.py, FabFilter_ProMB.dll): 0x1801a3124 6e−9, 0x1801a3154 0.00025, 0x1801a3670 2.495, 0x1801a3174 0.005,
+0x1801a32e0 0.7, 0x1801a3700 4.333, 0x1801a31cc 0.05, 0x1801a32b4 0.5, 0x1801a3214 0.12, 0x1801a3250 0.25,
+0x1801a33d8 0.1, 0x1801a38b0 500, 0x1801a3868 100, 0x1801a3540 1.1, 0x1801a3204 0.1, 0x1801a38bc 650,
+0x1801a3388 0.02 (s, the delay line), 0x1801a380c 36, 0x1801a32c8 0.6, 0x1801a3768 12, 0x1801a317c 0.007,
+0x1801a31a4 1/36, 0x1801a33f8 0.12 (s, PeakHold's buffer), 0x1801a3870 120 (ms, PeakHold's maximum).
+
+### LYNX's own release law (fitted to the curve's shape, not its points)
+rel (x) = 0.005 + 1.76 x² + 3.235 · (σ (x) − σ (0)) / (σ (1) − σ (0)) s, σ (x) = 1 / (1 + e^(−(x − 0.86) / 0.035)).
+
+### [EXEC] what the bank settled (refcap030 Pro-MB, new scorer; band gain trajectories in 50 / 100 ms frames)
+- The reference's laws at scale 1 match: the default bass band (S1: 30 – 200 Hz, −12 dB, 4 : 1, 20 / 20 %, knee 24 dB)
+  on the mix: mean |band gain error| 1.11 dB (fxrG) → 0.02 … 0.05 dB; attack / release 20 … 80 % (PT pairs) 0.02 … 0.05 dB;
+  look-ahead off 1.81 → 0.07 dB; S2's two bands 0.50 / 0.87 → 0.09 / 0.06 dB.
+- The soft range is the main term: with round 150's 12 dB knee (lab `oldSoft`) the S1 mix error stays 0.96 dB.
+- Inverted modes: the raw structural slope (ratio − 1) · |range| / 36 matches (S3 downward expansion stairs 4.97 → 0.04 dB,
+  M_DynamicsMode 1 0.47 → 0.003, upward compression +18 dB 3.33 → 0.02 dB); reading the slope as the gain's own
+  (ratio − 1 per dB) was 1.33 / 1.19 dB off.
+- The EQFilter as a two-pole Butterworth low pass; no time scale was needed (unlike Pro-Q 4's round).
+
+## 8. Pro-L 2 and Pro-G: not read (their styles are embedded presets) — owner decision
+
+[STATIC, names only] Pro-L 2's style list is the strings `transparent.limiter`, `punchy.limiter` … `safe.limiter`; the
+function at 0x180133d30 hands each name to 0x1800e4f10, which builds a `PresetPreloader` that loads the style from the
+plug-in's internal preset store: each style is a preset (parameter set) of its generic `DynamicsEngine` (Detector /
+Capacitor / PeakHold / AveragingFilter / TransferCurve / Saturator). Pro-G's `algo1.expander` … `algo6.expander` are built
+the same way. Reading them would be reading the reference's presets, which the clean-room rule excludes, so they were not
+read. Options for the owner: (a) allow reading only their structure (which elements, wired how) while every number stays
+fitted black-box on the bank; (b) black-box fitting only on the weak spots (Pro-L 2: Style 0.571 stairs, S3, the pairs
+block's Gain 0.8; recommended now); (c) leave them. Pro-L 2's sr96 block already moved 6.21 → 7.54 from the scorer
+window alone (§1).

+ 230 - 0
docs/analise/REA_rodada190lp.md

@@ -0,0 +1,230 @@
+# Round 190lp: Crest's Smooth / Op-El on Pro-C 3's graphs, Pro-L 2 / Pro-G black-box style fits, Pro-R 2's fixed early taps (0.1.30 parity)
+
+2026-11-18. Continues round 190lg (docs/analise/REA_rodada190lg.md). Owner's permission as there: static analysis of
+third-party plug-in binaries for sound parity, clean-room only. Laws and structure are written down in our own words and
+re-written as LYNX's code. No code, tables, piecewise curve points or presets (embedded presets included) are copied, and
+no protection is bypassed. Evidence markers as in 190kw: [STATIC] read in the decompiled / disassembled binary, [EXEC]
+measured on renders, [CODE] LYNX source. Every score uses the time-based alignment window (190lg §1); "before" is
+rea2_190lg's final fxrender (fxr_m4).
+
+Owner decisions on 190lg's open items, recommended options taken: (1) Pro-R 2: build the early-reflection taps first,
+then refit and re-gate, merge only with no file down (or listed one-step drops with a clearly better waveform match);
+(2) Pro-L 2 / Pro-G: black-box fitting only (their styles are embedded presets, not read); (3) Crest's remaining Pro-C 3
+styles by the Versatile method.
+
+Status: §1 Crest Smooth / Op-El landed (Upward / Vari-Mu / TTM read, not built); §2 Apex / Sentry revision 1 landed;
+§3 Pro-R 2 taps built on branch `rea3_190lp-r2`, NOT merged (26 refcap030 files + 1 programme file down; owner decision).
+
+## 1. Pro-C 3 → Crest: Smooth and Op-El rebuilt (revision 1); Upward, Vari-Mu, TTM read, not built [STATIC + EXEC] (round 190lp, part crest)
+
+Branch `rea3_190lp-crest` (off `rea2_190lg` 2e04775e5). Evidence: the existing decompiles in
+`/mnt/e/lynx-work/rea190kw/rea/out/proc3_{smooth,smctor,opel,opel2,vmu,vmctor,styles,det,cap,e5b0,nodes}.c`, this round's
+headless Ghidra output on its own copy of the proc3 project (`crest/rea/eq*.c`: EQFilter / CustomTransformFilter / VolumeFilter /
+analog prototype; `up.c`: UpwardCompressor; `ttm.c`: TTMCompressor; kept in crest/rea/), objdump disassembly where the decompiler dropped float
+arguments, constants read with `rea/rd.py` on bin/FabFilter_ProC_3.dll. Everything below is written in LYNX's own words;
+LYNX's code is written from these laws. The reference's piecewise-linear knob curves are not copied: LYNX fits its own
+smooth curves to their shape. Addresses are image virtual addresses (base 0x180000000).
+
+### Where the styles live [STATIC]
+`ProCCompressor`'s constructor (0x1801696d0) creates one object per Pro-C 3 style and keeps it: +0x270 Smooth
+(`SmoothCompressor`, 0x18015a8f0), +0x290 Versatile (0x180167ce0), +0x288 Vari-Mu (`VariableMuCompressor`, 0x180163780),
++0x278 Op-El (`OpElCompressor`, 0x180153e30), +0x280 Upward (`UpwardCompressor`, 0x180161af0). The internal style enum
+(`CompressorStyle`) numbers them 8 Smooth, 9 Versatile, 10 Vari-Mu, 11 Op-El, 12 Upward, 13 TTM. The per-style wiring is
+in the compressor's graph function (0x18016b990, cases 8 … 13). TTM (13) has no detector object there: its side chain only
+passes through, and the work is done by a separate multiband object (`TTMCompressor`, created at 0x18015eb40 from the
+plug-in's audio graph, 0x180194627) with a crossover and per-band processors.
+
+Generic elements met here (in addition to round 190kw's Detector / Capacitor / Mixer / DBConverter):
+- `Mixer` operation 3 = product of (input × its gain) (0x18011f950); operation 0 sum, 2 maximum of magnitudes.
+- `TransformFilter` (0x1801199f0): a linear map of the clamped input, out = (clamp (x, lo, hi) − lo) · (b − a) / (hi − lo) + a;
+  with (lo, hi, a, b) = (0, 1, 1, 0) it is 1 − clamp (x, 0, 1) (a reduction share → a gain).
+- `VolumeFilter` (0x180133b30): the input × a gain taken from a bus.
+- `CustomTransformFilter` (0x18011b860): mode 1 = x · |x| (signed square), mode 2 = sign (x) · √|x|.
+- `EQFilter`: parameters frequency (log2 Hz, clamped ≤ 20), gain (dB, ±30), Q; a shape enum (0x490) whose family table
+  (0x18020c870) groups 0 … 2 and 12 as "low side", 3 … 6 as their mirrored "high side", 7 … 9 band, 10, 11 others; shapes
+  1, 2, 4, 5, 6, 7, 12 use the gain. The exact pole / zero prototype (0x180103140) was not decoded this round.
+- `RandomModulationProducer`: in every style here its output reaches the graph through a mixer gain set from one boolean
+  style property (+0xa8 / +0xb0 / +0xf0, default false); not built (LYNX runs the default).
+
+### Smooth [STATIC] (outer 0x18015a8f0, update 0x18015b510; main algorithm 0x180158270, update 0x18015a110; feedback
+### algorithm 0x180155e00, update 0x180157e60)
+Knob → property laws (outer update): attack = 0.25 · a³ s; release = 0.02 + 0.96417 · tan (1.2 r²) s (= 0.02 + 2.48 s ·
+tan (1.2 r²) / tan (1.2)); auto-release constant k = K (3.6 r² + 0.1) · 0.846823, K a piecewise-linear curve equal to its
+input up to 1.6 and rising faster above (5.1 at 3.7). Ratio, knee, range and the auto-release switch pass through.
+
+Graph (x = the side chain):
+- Feedback part: gain computer E (threshold + 0.2149 dB, ratio R_E = the knob's ratio up to 10 : 1, then easing to 16 : 1
+  at 40 : 1 and above (a piecewise-linear curve), the knob's knee and range) on x (after an EQFilter of shape 6 at
+  2^9.78 ≈ 880 Hz, gain −0.116 dB, Q 0.25: a 0.1 dB tilt, negligible); followers F0 (attack × 0.99909, release × 0.43484 ·
+  1.00869, falling step term p5 0.98669, auto constant × 1.0905) and F1 (attack × 8.99406, release × 2.25011 · 1.00229,
+  p6 0.0042, auto × 1.2350); G = max (0.760859 F0, 0.768633 F1) (mixer, maximum) → TransformFilter → 1 − G →
+  VolumeFilter: the side chain x · (1 − G) is the main gain computer's input. Outputs: that signal and F0.
+- Main part: gain computer D (threshold × P (ratio) — a product mixer with a parameter that is a piecewise-linear curve of
+  ratio / 10, 1.0 at 1 : 1, about 1.15 at 10 : 1, 1.187 at 20 : 1, 1.13 from 50 : 1; ratio, knee, range from the knobs) →
+  followers C0 (the knob's attack, release × 0.43484, auto constant × 0.85185) and C1 (attack × 9, release × 2.25011,
+  rising step term p1 0.904, p6 0.0042, auto constant × 1);
+  B = 0.610426 · C0 · F0 (product mixer); A = 1.008093 − 0.012346 · B (sum mixer);
+  reduction share = max (A · C0, C1) (maximum mixer, A as C0's gain) → DBConverter mode 2 (−20 log10 |1 − x|).
+- The outer adds a random drift to the threshold, gated by a style property that is off by default.
+LYNX builds all of it except the 0.1 dB EQ and the random drift. Read as the reduction share (like Versatile, round 190lg): the "feedback" is a feed-forward stand-in — the main detector
+measures a signal already turned down by its own copy of the gain computer, so the effective ratio is softer.
+
+### Op-El [STATIC] (OpElCompressor 0x180153e30, update 0x1801559b0; wiring case 11 of 0x18016b990)
+Knob laws: attack attS = 0.25 a³ s (≤ 0.25); release relS = min (2.5, 0.97195 · tan (1.2 r²)) s (= 2.5 · tan (1.2 r²) /
+tan (1.2)). Graph:
+- D1: gain computer with the knobs' threshold, ratio, knee, range, on the side chain after an EQFilter (shape 5, frequency
+  2^14.70 ≈ 26.7 kHz, gain −10 … −11 dB, Q 0.245: a wide high-side shelf) → signed square → follower A (attack 0.998 attS
+  + 0.5 ms, release 0.596 relS + 10 ms) and follower B (9.992 attS + 2 ms, 1.788 relS + 30 ms);
+- D2: gain computer with the knob's threshold and ratio but a fixed knee 30 dB and range 60 dB, on the side chain →
+  signed square → follower C (149.94 attS + 15 ms, 4.768 relS + 80 ms);
+- sum 0.8 A + 0.15 B + 0.05 C → signed square root → DBConverter mode 2 → VolumeFilter × a style property (1.0).
+  No auto release (the followers' switch is never set). Threshold random drift: off by default.
+  LYNX builds all of it, the shelf as its own second-order high shelf (−11 dB, Q 0.245) on the signed side chain per
+  channel, linked like the level (see [EXEC] below for its placement).
+
+### Upward [STATIC] (UpwardCompressor 0x180161af0, update 0x1801632d0; wiring case 12)
+Knob laws: attack 0.25 a³ s; release 0.2 + 2.3 · F (r) s, F a piecewise-linear curve of the release knob position r
+(linear 0 → 0.5 over r 0 … 0.8, then to 1.0 at r = 1); auto-release constant 9 r² + 1. Graph: side chain → rectifier →
+follower (attack 0, release 5 ms) → DBConverter mode 0 (20 log10) → detector E1 (dB input, the expansion "purpose":
+threshold, ratio' = 2 − 1 / ratio, the knobs' knee and range) and detector E2 (same settings) on a constant −180 dB;
+mixer: −E1 + E2 → follower (the knob times) → the style's output. E2 is the lift at silence; the output smooths
+"E (silence) − E (level)" so that the lift comes back at the release time and goes away at the attack time.
+
+### [EXEC] what the bank settled (refcap030 files of each style, time-window scorer; lab: env-overridable law)
+(quick set = 8 files of the style: styles stairs / tc at three thresholds, grid knee 0 / 72, prog drums / mix / vocal.)
+- Smooth: read as the reduction share (like Versatile) the static stairs reach ESR −35 … −54 dB. The threshold factor of
+  the ratio is load-bearing: without it every file drops (quick set 7.62 → 4.50); LYNX's first smooth fit of it was 0.011
+  high near 4 : 1 (−0.2 dB on the stairs), a closer fit (max error 0.013 over 1 … 50 : 1, 0.003 near 4 : 1) took the stairs
+  to ESR −39 … −54 dB. The followers' step terms (p1 / p5 / p6) change nothing measurable (kept, as read). E's +0.21 dB
+  threshold offset: kept as read (dropping it moved nothing above 0.05 dB).
+- Op-El: without D1's shelf the 8 kHz part of the threshold −48 dB stairs read up to 6 dB too little reduction: on an
+  8 kHz tone sampled at 48 kHz every third sample is near zero, which pulls the reduction share's followers down near
+  full scale; the reference's shelf (a phase shift as well as a cut) takes those dips off. LYNX's own second-order shelf
+  (−11 dB, Q 0.245) placed at 20 kHz at 48 kHz (= 0.4167 × the rate; 26.7 kHz cap) matches it (that file 5 → 8, the
+  quick set 7.25 → 8.25; at 26.7 kHz → Nyquist cap it was 7.62, at 14 kHz 7.75).
+- Upward (built in the lab, not kept): "lift = E (silence) − follower (E (silence) − E (level))" read 5 dB too loud on
+  every file but the threshold −48 dB stairs (quick set 6.50 → 2.38). The reference's static curve (stairs at threshold
+  −48 / −30 / −12 dB, ratio 4 : 1, knee 18, range 60) has a level-independent cut on loud signals of 0 / 2.6 / 10.5 dB
+  and a 0.75 slope (1 − 1 / ratio) below a corner 0.4 / 7.7 / 8.9 dB under the threshold: neither the expansion detector's
+  "upward" mode nor that cut was decoded this round (the detector's purpose-1 branch needs a full read). Upward keeps its
+  fitted law (rounds tp172b / trial187b), which already holds that cut (−11.1 against −10.5 dB).
+
+### Vari-Mu [STATIC, not built] (VariableMuCompressor 0x180163780, update 0x1801647f0; node VariMuCompressor 0x1801170f0 /
+### process 0x1801172a0)
+Knob laws: an attack-like time 0.249 (a² + a³ − a⁴) + 0.001 s (0.001 … 0.25), release 0.005 + 0.97 · tan (1.2 r²) s,
+auto-release constant 3.6 r² + 0.1, a "ratio" property from a piecewise-linear curve of ratio / 10 (1 at 1 : 1, 40 at
+10 : 1, 80 at 100 : 1), the knee and range. The node is a feedback tube model, not a graph of generic elements: a follower
+(attack / release) on the output level above the threshold, a bias from it scaled by (r' − 1), r' = (1 − 0.5 √(knee / 60)) ·
+ratio property, and the reduction read as the slope of a fixed polynomial tube curve at that bias (a central difference),
+with the output fed back to the detector; the side chain enters the tube at −6 dB, and each side of the central difference
+also passes a second shaper object (a transfer of type 4, created by 0x180109cf0) driven by the bias. Rebuilding it needs the tube curve's constants and the node's own state handling
+read in full: not done this round (time); it keeps round 190v's measured law.
+
+### TTM [STATIC, not built]
+A multiband object (`TTMCompressor`: crossover, per-band processors with their own detector, followers, a hold and a
+look-ahead smoother). LYNX already runs a measured three-band law (rounds 190v / 190al). Not rebuilt this round (time).
+
+## 2. Round 190lp, sub-round lg: Pro-L 2 → Apex Limiter and Pro-G → Sentry Gate, black-box only (owner decision 2)
+
+No static analysis of Pro-L 2 or Pro-G in this sub-round (no Ghidra, no REA session, no preset read): every law below
+was measured on the reference renders already in the banks (refcap030 Pro-L 2 359 files / Pro-G 204 files, refcap182
+programme, tp172b) and LYNX's own smooth laws were fitted to those measurements. Tools (folder
+/mnt/e/lynx-work/rea3_190lp/lg/lab): `gtraj.py` / `trj.py` (gain trajectories, output − input energy per 1 … 100 ms
+frame after cross-correlation alignment), `genv.py` / `stepdn.py` / `hc.py` / `inst.py` (sample-resolution gain from the
+analytic envelope, per half cycle, and per sample on the 1 kHz / 100 Hz stairs and on drums), `harm.py` / `xs.py`
+(fundamental and harmonics per stair step), `lab.py` / `opt.py` (the bank files of one style rendered through a lab
+fxrender whose revision-1 table is overridden by LYNX_LGLAB, scored with the time-window scorer, coordinate search with
+"no file down" as a hard penalty).
+
+### Pro-L 2 [EXEC]
+1. **Output level is a gain after a 0 dB limiter.** S3 (Aggressive, gain 8 dB, output level −1 dB): the −40 dBFS tc
+   carrier comes out at +7.00 dB (8 − 1), the bursts' peaks at −1 dB. LYNX (ceiling −1 dB) left the quiet part at +8.
+2. **Ripple / harmonics on steady tones by style** (stairs, gain 6 dB, 6 dB over the ceiling): Transparent, Punchy,
+   Dynamic and Allround ride the waveform as LYNX does (H3 −30 … −50 dB at 1 kHz); Aggressive, Bus and Safe hold one
+   gain through the cycle (H3 under −150 dB, at 1 kHz and at 100 Hz); Modern nearly (−87 / −57 dB). LYNX's Loud / Bus /
+   Safe / Dense rode it (H3 −32 / −55 / −75 / −37 dB).
+3. **Aggressive holds about one half period, not a window.** At a 1 kHz step down the gain changes within the half
+   cycle in which the level drops (−6.04 → −4.24 dB, then the slow stage); on drums it follows the waveform inside a
+   half cycle; on a 100 Hz tone it stays at −6.04 dB through the trough. A fixed 5 ms detection window reproduces the
+   tones but takes drums 1.5 … 3 dB too deep (prog drums 8 → 5); a hold of ~0.75 × the mean time between the detected
+   signal's zero crossings reproduces both (stairs THD −32 → −150 dB, drums error 0.06 → 0.09 dB).
+4. **Programme-dependent release (Transparent).** At 15 / 24 dB of gain on the mix the reference recovers faster the
+   deeper it limits: LYNX sat 0.5 … 2 dB lower in the troughs (pairs mix, 100 ms frames: mean error −0.89 dB). A slow
+   stage whose speed grows with the reduction it holds (× (1 + 0.15 per dB)) brings it to −0.25 dB (Allround 0.05 per dB;
+   Dynamic's fit took a programme file down and was not kept).
+5. Reference latency per style (refcap030 manifest, 48 kHz): Transparent / Punchy 731 samples, Dynamic + 4x 866, Safe
+   (true peak off) 2640, Modern 3115, Aggressive 3131 — the smooth styles look ~50 ms further ahead (their gain starts
+   to fall 15 … 30 ms before a loud tone). LYNX's latency is not changed (329 samples, constant).
+6. Not modelled: Aggressive takes ~1.2 dB more than the ceiling needs on a tone held 15 … 18 dB over (not at 9 or 24 dB);
+   the smooth styles' long look-ahead (it would need their latency).
+
+### Pro-G [EXEC]
+1. **The closing runs in dB.** After the tc burst (−6 dBFS → −40 dBFS carrier): Classic (release 100 ms, hold 20 ms,
+   range 40 dB) waits ~25 ms and falls along an S-curve that is straight in dB in its middle; at release 27 ms it waits
+   ~20 ms then falls 0.45 dB/ms; at the longest release it waits ~165 ms (wait ≈ 20 ms + 0.08 × release). Guitar waits
+   ~2.4 × release (+ ~20 ms) then falls ~30 dB per release time (0.6 dB/ms at 50 ms, 0.35 at 100 ms) whatever the
+   range. Clean falls ~0.085 dB/ms toward its expansion target; Vocal accelerates slowly (an S-curve over ~0.4 s).
+   LYNX's revision 0 closed exponentially in the linear domain (up to 10 dB off mid-way).
+2. **The opening**: Classic / Clean open as a linear-domain one-pole (≤ 2 ms at attack 1.6 ms); Guitar (attack 5 ms)
+   rises −100 → −12 dB in 4 ms like two cascaded poles in dB; Vocal approaches 0 dB exponentially in dB (τ ≈ 6 ms).
+3. Upward's lift already matches on the tones (revision 0, scores 10); on the mix LYNX lifts 1 … 2 dB more in the
+   quieter passages (S5 mix): a mean-square detector fixed the mix but broke the tones — left as it is.
+
+(numbers of the fit and the gate: docs/PARITY.md "Round 190lp (Pro-L 2 → Apex, Pro-G → Sentry)")
+
+## 3. Pro-R 2 → LuxeVerb Space revision 1: the reference's fixed early taps (round 190lp, part r2) → NOT merged (owner decision)
+
+Branch `rea3_190lp-r2` (off `rea2_190lg` 2e04775e5 + merge of `rea2_190lg-r2`). Lab: `/mnt/e/lynx-work/rea3_190lp/r2/`
+(taps/: peek.py, cluster.py, onsets.py, amp2.py, calib.py, fitall.py, early.py; lab/: svlab.cpp = core/SpaceVerb.h alone,
+comp4.py + fit5.py component refit, tone.py). Black-box only (renders of the refcap030 impulse captures); no static
+analysis this round. LYNX's code is written from the measurements and laws below.
+
+### The early field of the reference [EXEC]
+
+- Until the late network's first line returns (pre-delay + 5.18 ms × 1.12402^(k + n0), e.g. ≈ 38 ms at Space ¼, ≈ 22 ms at
+  Space 0, ≈ 90 ms at Space 1) the reference's output is **only discrete single-sample arrivals with exact silence
+  between them** (1-ms bins at −200 dB). Each arrival is one sample through the output tone filters (its shape follows
+  Brightness: a sharp click at 100 %, a slow low pass at 0 %).
+- The arrivals sit at **fixed times**: the same onset sample at every Space, Decay Rate, Character ≤ ½ and Distance ≤ ½,
+  and the same ms at 44.1 / 48 / 96 kHz. Clustering every Modern impulse capture (Distance ≤ ½, Character ≤ ½, 81 files
+  at 48 kHz, an arrival = a sample 12 dB over the local diffuse level, onset = first sample of its shape) gives 42 left and
+  36 right arrivals within 105 ms present in ≥ 40 % of the files, each with a fixed polarity (left 6.667 +, 8.958 +,
+  11.313 −, 14.354 −, 14.604 −, 18.125 +, 18.333 −, …; right 8.292 +, 10.958 −, 12.479 +, 15.896 +, 16.146 +, …), plus the
+  left 25.417 ms one at Space 0 only. 190lg's 4 + 4 are the loudest of them.
+- They are not comb echoes of a few lines (no t → 2t − P pattern, no repeated spacing) and they do not move with k: a
+  fixed sparse tap set.
+- **Levels** (the energy of each arrival over 0.27 ms, + the LYNX output filters' unit-tap energy 11.92 dB at 48 kHz /
+  Brightness ½, = the tap's gain; peaks first, but near Distances the reference's arrivals are sharper, so a peak match
+  gave LYNX +3 dB of early energy): a per-tap level, then −2.8 dB per unit Space, −0.54 dB per octave of Decay Rate,
+  −5.9 dB per unit Distance, −3.2 dB × (t / T) (T the decay time: late taps of short spaces fade); fifteen taps stand out
+  by 8 … 25 dB at some Spaces and **switch with the integer k = ⌊14 sin (π/2 S^0.8)⌋ of the line-length law** (Space ⅕ /
+  k 5 and ¼ / k 6 differ, ¾ and ⅘ / k 13 are identical, 1 / k 14 differs again): k 0: left 6.67, 11.31, 18.33, 25.42,
+  right 8.29, 12.48, 21.13, 32.40; k 5: left 11.31, 28.44, right 12.48; k 6: left 11.31, 49.08, 50.96, right 21.13; k 10 …
+  13: left 18.33, right 32.40; k 14: left 18.33, right 55.33 (32.40 drops 20 dB). The early standing-out ones fall
+  ~17 dB per unit Distance more than the rest (the late ones at 49 … 98 ms hardly move), and they rise 2.2 dB from
+  Character ¼ to ½ from Distance ¼ on (at Distance 0 they do not move). Fit: robust sd 0.7 dB over 4 413 readings.
+- **Character ≥ ¾**: the arrivals move between captures (their times differ per file: modulated); in 20 … 40 ms the
+  reference is 4 … 8 dB quieter than at Character ½, the first ones stay. LYNX keeps the taps static and drops the lift of
+  the standing-out ones after 20 ms from Character 0.55 to 0.75.
+- **Distance ≥ ¾**: none of the taps; the early field starts at ~1 ms instead and is dense (no arrival set consistent
+  across captures): LYNX fades the taps out from Distance ½ to ¾ and its early / 2-line networks in.
+
+### LYNX (revision 1, hidden; revision 0 untouched)
+
+`detail::tapsL / tapsR` (times, polarities, per-tap levels as measured) read the channel's input before the network's
+pre-delay (the user's pre-delay moves them); the level law above in `Engine::setTaps` (smooth terms in Space, rate,
+Distance, t / T; Gaussian bumps over k for the standing-out taps, their own Distance slope; a smoothstep fade from
+Distance ½ to ¾; Character smoothsteps). They replace tp172b's twelve taps × the old spread in revision 1. Near (Distance
+≤ ½) the early and 2-line networks are silent and not run (the reference has nothing but the taps before its late network);
+they fade in as the taps fade out. Late / 2-line / early levels refitted with the taps (lab/comp4.py + fit5.py; real bank
+lab/lab2.py: variants with the taps 1.9 dB lower or a −1 dB bell at 800 Hz scored worse, 30 / 32 downs against 26).
+With the taps fxparity aligns at lag 0: |lag| ≤ 3 samples on 3 % → 72 % of the 193 impulse files, median xcorr 0.057 →
+0.206, median ESR +2.55 → +1.56 dB.
+
+### The 1 kHz tone (stim / nburst) [EXEC]
+
+On the nburst 3 s 1 kHz sine (G4, Space ¼, rate × 1) the reference's wet sits at −16.5 / −13.4 dB (L / R, 100 ms frames,
+sd 2.8 / 1.3 dB), LYNX's (190lg law) at −7.9 / −10.7 (sd 2.0 / 1.0): the frame-to-frame movement is alike (both modulate),
+so the gap is the level of a single-frequency response. LYNX's impulse responses carry +2 … +3 dB in 0.5 … 2 kHz against
+the reference (fixed by the level refit) and the rest is the draw of a static network's modal response (the reference's
+own left / right differ by 3 dB). Adding modulation only to move that draw would be tuning to the scorer: not done.

+ 19 - 3
scripts/flref_compare.py

@@ -8,7 +8,8 @@ Usage:
                                                                residual (LYNX - FL) after alignment
 
 Metrics (after the alignment search, over the overlapping part):
-  lag       samples LYNX is late (+) / early (-) relative to FL (cross-correlation of the mono sums, +-4096)
+  lag       samples LYNX is late (+) / early (-) relative to FL (cross-correlation of the mono sums; search window
+            +-LAG_WINDOW_S seconds, never fewer than 4096 samples: +-4096 at 44.1 / 48 kHz, +-8192 at 96 kHz)
   peak_db   20log10(peak LYNX / peak FL)
   rms_db    20log10(rms LYNX / rms FL)
   esr_db    error-to-signal ratio 20log10(rms(L-F)/rms(F)); <= -40 dB is close, >= 0 dB is unrelated
@@ -29,6 +30,16 @@ import wave
 import numpy as np
 
 SR = 44100
+# Alignment search window in time (round 190lg): 4096 samples at 48 kHz (85.3 ms) at every rate. A fixed 4096-sample
+# window was only 42.7 ms at 96 kHz, so a reference with ~63 ms of latency (Pro-L 2 Dense / Loud / Safe) failed alignment
+# there. Never narrower than the old 4096 samples, so 44.1 / 48 kHz results are bit-identical to the old scorer.
+LAG_WINDOW_S = 4096 / 48000.0
+LAG_MIN = 4096
+
+
+def lag_window(sr=None):
+    sr = SR if sr is None else sr
+    return max(LAG_MIN, int(np.ceil(LAG_WINDOW_S * sr - 1e-9)))
 
 
 def read_fl(path):
@@ -66,8 +77,13 @@ def rms(x):
     return float(np.sqrt(np.mean(x * x))) if len(x) else 0.0
 
 
-def find_lag(f, l, maxlag=4096, span=40 * SR):
-    """Lag (LYNX later = +) maximizing the cross-correlation of the mono sums over the first `span` samples."""
+def find_lag(f, l, maxlag=None, span=None):
+    """Lag (LYNX later = +) maximizing the cross-correlation of the mono sums over the first `span` samples (default
+    1 764 000 = 40 s at 44.1 kHz at every rate, as before) within +-maxlag samples (default lag_window(): +-85 ms at the current SR, at least 4096 samples)."""
+    if maxlag is None:
+        maxlag = lag_window()
+    if span is None:
+        span = 40 * 44100
     fm = f[:span].sum(axis=1)
     lm = l[:span + maxlag].sum(axis=1)
     if rms(fm) < 1e-7 or rms(lm) < 1e-7:

+ 2 - 0
src/core/AlsDevices.cpp

@@ -285,6 +285,7 @@ bool compressorToCrest (const Element& device, EffectSlot& slot, Notes& notes, S
         return false;
     slot = makeEffectSlot (EffectKind::crestCompressor);
     auto& p = slot.params;
+    p[revision] = 0.0f; // round 190kw: this map was measured on the fitted laws (revision 0)
     p[style] = styleValue (Style::clean);
     p[voicing] = 0.0f;
     if (model == 1)
@@ -333,6 +334,7 @@ bool glueToCrest (const Element& device, EffectSlot& slot, Notes& notes, SideInp
         return false;
     slot = makeEffectSlot (EffectKind::crestCompressor);
     auto& p = slot.params;
+    p[revision] = 0.0f; // round 190kw: this map was measured on the fitted laws (revision 0)
     p[style] = styleValue (Style::bus);
     p[voicing] = 0.0f;
     p[threshold] = linValue (manual (device, "Threshold", 0.0), -60.0, 0.0); // [DATA: −40 … 0 dB]

+ 3 - 0
src/core/AlsDevicesLot2.cpp

@@ -657,6 +657,7 @@ bool limiterToApex (const Element& device, Translated& out)
         return false;
     out.slot = makeEffectSlot (EffectKind::apexLimiter);
     auto& p = out.slot.params;
+    p[(std::size_t) pRevision] = 0.0f; // round 190lp: the map was measured on the laws before the styles' refit
     const Put put { device, out };
     const auto gain = manual (device, "Gain", 0.0);
     put ("Gain", pGain, [] (double db) { return linValue (db, 0.0, 30.0); }, 0.0);           // [DATA −24 … 24 dB]
@@ -694,6 +695,7 @@ bool gateToSentry (const Element& device, Translated& out)
         return false;
     out.slot = makeEffectSlot (EffectKind::sentryGate);
     auto& p = out.slot.params;
+    p[(std::size_t) revision] = 0.0f; // round 190lp: the map was measured on the gate before the level gate's refit
     const Put put { device, out };
     p[style] = styleValue (Style::classic);
     // Threshold: a linear gain [DATA 0.000316 … 1.995] → −60 … 0 dB
@@ -728,6 +730,7 @@ bool expanderToSentry (const Element& device, Translated& out)
         return false;
     out.slot = makeEffectSlot (EffectKind::sentryGate);
     auto& p = out.slot.params;
+    p[(std::size_t) revision] = 0.0f; // round 190lp: (as above)
     const Put put { device, out };
     // Expand [DOC]: what is over the threshold comes out (ratio) dB louder per dB — Sentry's Upward style lifts by
     // (ratio − 1) dB per dB over its upward threshold, the same curve

+ 1 - 0
src/core/AlsDevicesLot3.cpp

@@ -247,6 +247,7 @@ bool drumBussToRack (const Element& device, Translated& out)
     {
         comp = makeEffectSlot (EffectKind::crestCompressor);
         auto& k = comp.params;
+        k[cr::revision] = 0.0f; // round 190kw: this map was measured on the fitted laws (revision 0)
         k[cr::style] = cr::styleValue (cr::Style::clean);
         k[cr::voicing] = 0.0f;
         k[cr::threshold] = linValue (drumbuss::compThresholdDb, -60.0, 0.0);

+ 1 - 0
src/core/AlsDevicesLot4.cpp

@@ -1008,6 +1008,7 @@ bool roarToRack (const Element& device, Translated& out)
     {
         auto c = makeEffectSlot (EffectKind::crestCompressor);
         auto& k = c.params;
+        k[cr::revision] = 0.0f; // round 190kw: this map was measured on the fitted laws (revision 0)
         k[cr::style] = cr::styleValue (cr::Style::clean);
         k[cr::threshold] = linValue (roarCompThresholdDb (comp), -60.0, 0.0);
         k[cr::ratio] = cr::ratioValue (roarCompRatio (comp));

+ 158 - 12
src/core/ApexLimiter.cpp

@@ -4,6 +4,8 @@
 #include <atomic>
 #include <cmath>
 #include <cstdio>
+#include <cstdlib>
+#include <string>
 
 #include "core/Loudness.h"
 #include "core/MixSuite.h"
@@ -64,6 +66,71 @@ constexpr StyleLaw laws[styleCount] = {
     { 0.0115, 0.642, 73.9, 0.165, 0.52 }, // Safe: a slow fast stage — the least distortion
 };
 
+// round 190lp, revision 1 (hidden pRevision): the styles refitted black-box on the reference's renders (refcap030 /
+// refcap182 / tp172b; gain trajectories from the analytic envelope of the 1 kHz / 100 Hz stairs and 10 … 100 ms
+// frames of the music). Besides the table above per style:
+//  - minLookMs: the detection window the style uses at least, whatever the Look-ahead knob says (within the fixed
+//    5 ms buffer, so the latency is unchanged). The smooth styles hold a steady tone's gain without riding its
+//    waveform (no ripple, hence no added harmonics, down to 100 Hz) and dip before a peak over a few ms;
+//  - depthSlow / depthFast: how much faster a stage recovers per 10 dB of reduction it holds (programme-dependent
+//    release: deep limiting recovers faster, as a linear-domain release does);
+//  - postHoldMs: how long the required gain is held after the peak before the stages release it.
+//  - zcHold: the required gain is held for zcHold × the signal's half period (the mean time between its zero
+//    crossings, so a steady tone keeps one gain through its cycles while a transient's crossings come fast and its
+//    peaks are taken one by one).
+struct StyleLaw1 { double attackFactor, releaseFactor, fastMs, holdRelease, rampDb, minLookMs, depthSlow, depthFast, postHoldMs, zcHold = 0.0; };
+#ifdef LYNX_LGLAB
+StyleLaw1 laws1[styleCount] = {
+#else
+constexpr StyleLaw1 laws1[styleCount] = {
+#endif
+    // attack × , release × , fast ms, hold release, ramp dB | min look-ahead ms, depth slow / fast, hold after ms, zero-crossing hold
+    { 0.214, 0.436, 0.080, 1.0, 0.0, 0.0, 1.5, 0.0, 0.0, 0.0 },       // Clean (Transparent): faster out of deep limiting
+    { 0.325, 0.958, 0.0365, 0.365, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0 },    // Glue (Allround): a quicker fast stage, a little depth
+    { 0.178, 0.876, 0.512, 0.522, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 },     // Punch (Punchy): as revision 0 (no fit beat it)
+    { 0.086, 0.191, 0.183, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 },       // Dynamic: as revision 0 (its fits took a programme file down)
+    { 0.251, 0.684, 0.327, 0.008, 5.74, 0.0, 0.0, 0.0, 0.0, 0.5 },    // Dense (Modern): holds half a half period
+    { 1.81, 0.795, 0.024, 0.378, 0.0, 0.0, 0.0, 0.0, 0.0, 0.875 },    // Loud (Aggressive): one gain through a tone's cycle, slow stage
+    { 0.056, 0.224, 0.108, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.75 },      // Bus: the same hold, a faster slow stage
+    { 0.023, 0.642, 73.9, 0.365, 0.52, 0.0, 0.0, 0.0, 0.0, 1.0 },     // Safe: a full half-period hold
+};
+constexpr double maxPostHoldMs = 20.0;
+#ifdef LYNX_LGLAB
+// lab only: LYNX_LGLAB="s4.minLookMs=5,all.depthSlow=1,..." overrides the revision-1 table
+struct LgLab
+{
+    LgLab()
+    {
+        const char* e = std::getenv ("LYNX_LGLAB");
+        if (e == nullptr) return;
+        std::string str (e);
+        std::size_t pos = 0;
+        while (pos < str.size())
+        {
+            auto end = str.find (',', pos);
+            if (end == std::string::npos) end = str.size();
+            const auto item = str.substr (pos, end - pos);
+            pos = end + 1;
+            const auto dot = item.find ('.'), eq = item.find ('=');
+            if (dot == std::string::npos || eq == std::string::npos) continue;
+            const auto who = item.substr (0, dot), field = item.substr (dot + 1, eq - dot - 1);
+            const double v = std::atof (item.c_str() + eq + 1);
+            for (int k = 0; k < styleCount; ++k)
+            {
+                if (who != "all" && who != "s" + std::to_string (k)) continue;
+                auto& l = laws1[k];
+                if (field == "att") l.attackFactor = v; else if (field == "rel") l.releaseFactor = v;
+                else if (field == "fast") l.fastMs = v; else if (field == "hold") l.holdRelease = v;
+                else if (field == "ramp") l.rampDb = v; else if (field == "look") l.minLookMs = v;
+                else if (field == "dslow") l.depthSlow = v; else if (field == "dfast") l.depthFast = v;
+                else if (field == "post") l.postHoldMs = v; else if (field == "zc") l.zcHold = v;
+            }
+        }
+    }
+};
+const LgLab lgLab;
+#endif
+
 // the slow stage's release speed (0 … 1) at the detected peak level `peak` (round tp172b3)
 double holdSpeed (double peak, double ceiling, const StyleLaw& law) noexcept
 {
@@ -113,7 +180,9 @@ struct Core
         outL.assign (ring, 0.0f); outR.assign (ring, 0.0f);
         limL.assign (ring, 0.0f); limR.assign (ring, 0.0f);
         boxL.assign ((std::size_t) maxLook + 1, 1.0); boxR.assign ((std::size_t) maxLook + 1, 1.0);
-        minAll.setCapacity (maxLook + 1); minL.setCapacity (maxLook + 1); minR.setCapacity (maxLook + 1);
+        // (round 190lp: room for revision 1's hold after the peak; the queue's result does not depend on its capacity)
+        const int holdCap = maxLook + 1 + (int) std::ceil (maxPostHoldMs * 0.001 * sr);
+        minAll.setCapacity (holdCap); minL.setCapacity (holdCap); minR.setCapacity (holdCap);
         reset();
     }
     int latency() const noexcept { return maxLook + interpDelay + extraDelay; }
@@ -128,6 +197,7 @@ struct Core
         fastL = fastR = slowL = slowR = 0.0; // dB
         levelDb = 0.0;
         peakL = peakR = 0.0;
+        zcPositive = true; zcCount = holdLeftL = holdLeftR = 0; zcMean = 0.0; heldL = heldR = 1.0;
         dcXL = dcXR = dcYL = dcYR = 0.0;
         err = {};
         rng = 0x9e3779b97f4a7c15ull;
@@ -145,15 +215,26 @@ struct Core
     {
         const double gain = std::pow (10.0, gainDb (p[0]) / 20.0);
         const double ceiling = std::pow (10.0, ceilingDb (p[1]) / 20.0);
-        const int newLook = std::clamp ((int) std::lround (lookaheadMs (p[2]) * 0.001 * sampleRate), 1, maxLook);
-        if (newLook != look)
+        // round 190lp: revision 1 (hidden) — the style's own detection window, release depth and hold (laws1)
+        const bool rev1 = p[pRevision] >= 0.5f;
+        const int styleIndex = (int) style (p[4]);
+        const auto& law1 = laws1[styleIndex];
+        const double lookMs = rev1 ? std::max (lookaheadMs (p[2]), law1.minLookMs) : lookaheadMs (p[2]);
+        const int newLook = std::clamp ((int) std::lround (lookMs * 0.001 * sampleRate), 1, maxLook);
+        const int newPost = rev1 ? (int) std::lround (std::min (law1.postHoldMs, maxPostHoldMs) * 0.001 * sampleRate) : 0;
+        if (newLook != look || newPost != postHold)
         {
             look = newLook;
-            minAll.setLength (look + 1); minL.setLength (look + 1); minR.setLength (look + 1);
+            postHold = newPost;
+            minAll.setLength (look + 1 + postHold); minL.setLength (look + 1 + postHold); minR.setLength (look + 1 + postHold);
             std::fill (boxL.begin(), boxL.end(), 1.0); std::fill (boxR.begin(), boxR.end(), 1.0);
             boxSumL = boxSumR = (double) look; boxPos = 0;
         }
-        const auto law = laws[(int) style (p[4])];
+        const auto law = rev1 ? StyleLaw { law1.attackFactor, law1.releaseFactor, law1.fastMs, law1.holdRelease, law1.rampDb }
+                              : laws[styleIndex];
+        const double dSlow = rev1 ? law1.depthSlow * 0.1 : 0.0, dFast = rev1 ? law1.depthFast * 0.1 : 0.0;
+        const bool zcOn = rev1 && law1.zcHold > 0.0;
+        const double zcMax = 0.02 * sampleRate; // (the half period of 25 Hz)
         const double rel = releaseMs (p[3]) * 0.001 * sampleRate;
         const double kFast = 1.0 - std::exp (-1.0 / std::max (1.0, law.fastMs * 0.001 * sampleRate));
         const double kSlow = 1.0 - std::exp (-1.0 / std::max (1.0, rel * law.releaseFactor + 0.012 * sampleRate));
@@ -248,17 +329,44 @@ struct Core
             boxSumL += tL - boxL[(std::size_t) boxPos]; boxL[(std::size_t) boxPos] = tL;
             boxSumR += tR - boxR[(std::size_t) boxPos]; boxR[(std::size_t) boxPos] = tR;
             boxPos = (boxPos + 1) % look;
-            const double aL = std::min (1.0, boxSumL / look), aR = std::min (1.0, boxSumR / look);
+            double aL = std::min (1.0, boxSumL / look), aR = std::min (1.0, boxSumR / look);
+            if (zcOn) // round 190lp, revision 1: the hold of about one half period (zero crossings of the detected mid)
+            {
+                const double mid = cl + cr;
+                const bool positive = mid >= 0.0;
+                if (positive != zcPositive && std::abs (mid) > 1.0e-6)
+                {
+                    zcPositive = positive;
+                    zcMean += (std::min ((double) zcCount, zcMax) - zcMean) * 0.3;
+                    zcCount = 0;
+                }
+                else if (zcCount < 1 << 30)
+                    ++zcCount;
+                const int holdN = (int) std::min (zcMax, law1.zcHold * zcMean);
+                if (aL <= heldL) { heldL = aL; holdLeftL = holdN; } else if (holdLeftL > 0) --holdLeftL; else heldL = aL;
+                if (aR <= heldR) { heldR = aR; holdLeftR = holdN; } else if (holdLeftR > 0) --holdLeftR; else heldR = aR;
+                aL = heldL; aR = heldR;
+            }
 
             // release: the gain follows a drop at once and recovers on a fast and a slow stage (mixed by style)
             // release: both stages in dB; the gain is the deeper of the requirement and the two stages
             const double dL = 20.0 * std::log10 (std::max (aL, 1e-9)), dR = 20.0 * std::log10 (std::max (aR, 1e-9));
-            fastL = dL < fastL ? dL : fastL + (dL - fastL) * kFast;
-            fastR = dR < fastR ? dR : fastR + (dR - fastR) * kFast;
             peakL = std::max (pl, peakL * kPeak); peakR = std::max (pr, peakR * kPeak);
             const double tLink = link * std::max (peakL, peakR);
-            slowL += (dL - slowL) * (dL < slowL ? kAttack : kSlow * holdSpeed (tLink + (1.0 - link) * peakL, ceiling, law));
-            slowR += (dR - slowR) * (dR < slowR ? kAttack : kSlow * holdSpeed (tLink + (1.0 - link) * peakR, ceiling, law));
+            if (! rev1)
+            {
+                fastL = dL < fastL ? dL : fastL + (dL - fastL) * kFast;
+                fastR = dR < fastR ? dR : fastR + (dR - fastR) * kFast;
+                slowL += (dL - slowL) * (dL < slowL ? kAttack : kSlow * holdSpeed (tLink + (1.0 - link) * peakL, ceiling, law));
+                slowR += (dR - slowR) * (dR < slowR ? kAttack : kSlow * holdSpeed (tLink + (1.0 - link) * peakR, ceiling, law));
+            }
+            else // round 190lp: a stage holding a deep reduction recovers faster (dSlow / dFast per dB)
+            {
+                fastL = dL < fastL ? dL : fastL + (dL - fastL) * std::min (1.0, kFast * (1.0 - dFast * fastL));
+                fastR = dR < fastR ? dR : fastR + (dR - fastR) * std::min (1.0, kFast * (1.0 - dFast * fastR));
+                slowL += (dL - slowL) * (dL < slowL ? kAttack : std::min (1.0, kSlow * (1.0 - dSlow * slowL)) * holdSpeed (tLink + (1.0 - link) * peakL, ceiling, law));
+                slowR += (dR - slowR) * (dR < slowR ? kAttack : std::min (1.0, kSlow * (1.0 - dSlow * slowR)) * holdSpeed (tLink + (1.0 - link) * peakR, ceiling, law));
+            }
             double gL = std::min (aL, std::pow (10.0, std::min (fastL, slowL) / 20.0));
             double gR = std::min (aR, std::pow (10.0, std::min (fastR, slowR) / 20.0));
             if (linkRelease > link) // the release stage linked further than the transients (round 128)
@@ -306,7 +414,7 @@ struct Core
     }
 
     double sampleRate = 48000.0;
-    int maxLook = 240, look = -1, extraDelay = 0;
+    int maxLook = 240, look = -1, extraDelay = 0, postHold = 0; // (postHold: round 190lp, samples)
     int bits = 0, shaping = 0;
     std::array<std::array<double, 3>, 2> err {};
     unsigned long long rng = 0x9e3779b97f4a7c15ull;
@@ -320,6 +428,11 @@ struct Core
     double fastL = 0.0, fastR = 0.0, slowL = 0.0, slowR = 0.0; // release stages, dB
     double peakL = 0.0, peakR = 0.0; // round tp172b3: the detected peaks over ~10 ms (the headroom under the ceiling)
     double levelDb = 0.0; // round 190ar: the levelling stage's reduction, dB
+    // round 190lp, revision 1: the zero-crossing hold (the detected mid's sign, samples since its last crossing, the
+    // mean half period, the held gains and what is left of their holds)
+    bool zcPositive = true;
+    int zcCount = 0, holdLeftL = 0, holdLeftR = 0;
+    double zcMean = 0.0, heldL = 1.0, heldR = 1.0;
 };
 
 
@@ -531,7 +644,26 @@ public:
         metersShown = shown;
     }
 
-    void process (float* left, float* right, int n, const EffectParams& p, double) noexcept override
+    void process (float* left, float* right, int n, const EffectParams& pIn, double) noexcept override
+    {
+        // round 190lp, revision 1: the reference's output level is a gain after a limiter that holds 0 dB (measured: a
+        // ceiling of −1 dB plays everything under the limit 1 dB lower too, its peaks at −1 dB). The chain runs at a
+        // 0 dB ceiling without dither, then the level, then the dither
+        const bool levelAfter = pIn[pRevision] >= 0.5f && pIn[pCeiling] < 1.0f;
+        if (levelAfter)
+        {
+            shifted = pIn;
+            shifted[pCeiling] = 1.0f;
+            shifted[pDither] = 0.0f;
+        }
+        processChain (left, right, n, levelAfter ? shifted : pIn, levelAfter ? &pIn : nullptr);
+    }
+
+private:
+    EffectParams shifted {}; // (revision 1: the parameters with the ceiling at 0 dB)
+
+    // `levelFrom` (revision 1, a ceiling under 0 dB): the parameters whose output level and dither follow the chain
+    void processChain (float* left, float* right, int n, const EffectParams& p, const EffectParams* levelFrom) noexcept
     {
         if (base.inL.empty()) prepare (sampleRate);
         const auto factor = oversamplingFactor (p[pOversampling]);
@@ -612,6 +744,20 @@ public:
                 left[i] = (float) yl; right[i] = (float) yr;
             }
         }
+        if (levelFrom != nullptr) // round 190lp: the output level after the limiter, then the dither
+        {
+            // (Unity gain monitors at the input's level: it leaves the output level out as well as the gain)
+            const auto level = (*levelFrom)[pUnity] >= 0.5f ? 1.0 : std::pow (10.0, ceilingDb ((*levelFrom)[pCeiling]) / 20.0);
+            const int bits = ditherBits ((*levelFrom)[pDither]);
+            base.bits = bits;
+            base.shaping = noiseShaping ((*levelFrom)[pShaping]);
+            for (int i = 0; i < n; ++i)
+            {
+                double yl = left[i] * level, yr = right[i] * level;
+                if (bits > 0) { yl = base.dither (yl, 0); yr = base.dither (yr, 1); }
+                left[i] = (float) yl; right[i] = (float) yr;
+            }
+        }
         scL = scR = nullptr; // a side chain is given again before every block that has one
 
         if (! metersShown)

+ 4 - 0
src/core/ApexLimiter.h

@@ -44,6 +44,10 @@ enum Param { pGain, pCeiling, pLookahead, pRelease, pStyle, pTruePeak, pLink, pA
              // round 190ar: the levelling stage before the limiter (off at 0 dB: nothing changes for existing projects)
              pLevelThreshold, pLevelAttack };
 constexpr double maxLookaheadMs = 5.0;
+// round 190lp, hidden (not in the info: no control, no text; saved while non-zero): revision 1 runs the styles' laws
+// refitted black-box on the reference limiter's renders (docs/PARITY.md "Round 190lp"). A new Apex and a translated
+// Pro-L 2 state get 1; a project or preset saved before (and the Live / substitute maps) keep 0, bit for bit.
+constexpr int pRevision = paramCount;
 
 // Round 128: 8 styles. The four original styles keep the positions their saved values round to (0, 1/3, 2/3, 1 of
 // the old 4-step list → 0, 2, 5, 7 of 8), the new ones sit between them.

+ 2 - 0
src/core/CleanVoice.h

@@ -86,6 +86,7 @@ inline std::vector<EffectSlot> chain (const Options& options = {})
     {
         namespace s = dyn::sentry;
         auto gate = makeEffectSlot (EffectKind::sentryGate);
+        gate.params[(std::size_t) s::revision] = 0.0f; // round 190lp: the chain was tuned on the gate before its refit
         gate.params[s::style] = s::styleValue (s::Style::clean);
         gate.params[s::threshold] = valueFor ([] (float v) { return s::thresholdDb (v); }, expanderThresholdDb);
         gate.params[s::ratio] = valueFor ([] (float v) { return s::ratioOf (v); }, expanderRatio);
@@ -108,6 +109,7 @@ inline std::vector<EffectSlot> chain (const Options& options = {})
     {
         namespace c = dyn::crest;
         auto comp = makeEffectSlot (EffectKind::crestCompressor);
+        comp.params[c::revision] = 0.0f; // round 190kw: this chain was tuned on the fitted laws (revision 0)
         comp.params[c::style] = c::styleValue (c::Style::clean);
         comp.params[c::threshold] = valueFor ([] (float v) { return c::thresholdDb (v); }, compThresholdDb);
         comp.params[c::ratio] = c::ratioValue (compRatio);

+ 1 - 0
src/core/DemoSongs.h

@@ -196,6 +196,7 @@ inline void finish (Song& song, int look, float intensity, float inputDb, float
     m.inputDb = inputDb;
     looks::apply (song, m);
     auto limiter = makeEffectSlot (EffectKind::apexLimiter);
+    limiter.params[(std::size_t) apex::pRevision] = 0.0f; // round 190lp: the demo keeps the master it was tuned on
     limiter.params[(std::size_t) apex::pGain] = limiterGainDb / 30.0f;      // (0 … 30 dB)
     limiter.params[(std::size_t) apex::pCeiling] = (30.0f + demoCeilingDb) / 30.0f; // (−30 … 0 dB)
     limiter.params[(std::size_t) apex::pTruePeak] = 1.0f;

Fișier diff suprimat deoarece este prea mare
+ 971 - 2
src/core/DynamicsSuite.cpp


+ 21 - 3
src/core/DynamicsSuite.h

@@ -71,7 +71,13 @@ enum Param
     // translators (Waves SSLComp) set it. Threshold / ratio / knee / attack / release keep their ranges and mean, in
     // this law: the detector's threshold, 1 + the loop gain, the knee's width (dB), and the RC time constants (ms);
     // Auto release adds a slow second capacitor (consoleAuto* in DynamicsSuite.cpp)
-    busLaw = count
+    busLaw = count,
+    // round 190kw, hidden (not in the info: no control, no text; saved while non-zero; after busLaw, as the 0.1.30 rollup
+    // orders it; busLaw, when on, takes precedence): revision 1 runs the reference's
+    // own law for Clean, Classic and Opto (REA_rodada190kw §1: the reduction smoothed by each style's two-stage follower,
+    // its knee shape, its attack / release scaling). A new Crest and a translated Pro-C 3 state get 1; a project or
+    // preset saved before keeps 0 (the fitted laws, bit for bit)
+    revision
 };
 enum class Trigger { off, hostSync, midi };
 Trigger triggerOf (float v) noexcept;
@@ -184,7 +190,14 @@ enum Global { xover1 = legacyBands * fieldsPerBand, xover2, xover3, slope, looka
               // round tp172b6 [EXEC] (Pro-MB's Audition, Expert panel): the output becomes what the band's detector hears (0 off,
               // k / 6 band k): level, range, threshold and mix don't touch it, the Output does, a switched-off band still sounds
               audition = rev152 + 1,
-              count = audition + 1 };
+              count = audition + 1,
+              // round 190lg, hidden (not in the info: no control, no text; saved while non-zero): revision 1 runs the
+              // reference's own band compander graph (REA_rodada190lg §7: the detector with its soft range, a peak hold
+              // and a low pass timed by the look-ahead, two followers joined by a max) for the bands that compress
+              // downward or expand upward; `lookaheadSwitch` is the reference's look-ahead switch under revision 1
+              // (1 on: each band's detector leads by 500 / its centre frequency + its own look-ahead, the audio waits
+              // 20 ms). Only the Pro-MB translator sets them; a project saved before keeps 0 (bit for bit)
+              revision = count, lookaheadSwitch = count + 1 };
 inline int param (int band, int field) noexcept
 {
     return band < legacyBands ? band * fieldsPerBand + field : band5 + (band - legacyBands) * fieldsPerBand + field;
@@ -286,7 +299,12 @@ enum Param
     // over Release, whatever the level does meanwhile (the style's level curve, ratio and knee are not used). Measured
     // black-box on a drum-gate reference's probes (docs/PARITY.md "Round 190dm").
     trigger, sensitivity, releaseShape,
-    count
+    count,
+    // round 190lp, hidden (not in the info: no control, no text; saved while non-zero): revision 1 runs the level gate's
+    // algorithms refitted black-box on the reference gate's renders (the gain moves in dB: opening, a wait, a smooth
+    // closing curve per style). A new Sentry and a translated Pro-G state get 1; a project or preset saved before (and
+    // the Live maps / substitutes) keep 0, bit for bit
+    revision
 };
 enum class Shape { smooth, mid, sharp };
 bool transientTrigger (const EffectParams& p) noexcept;

+ 83 - 4
src/core/EchoSuite.cpp

@@ -779,6 +779,43 @@ double pitchSemis (float v) noexcept { return 24.0 * bipolar (v); }
 double lowCutHz (float v) noexcept { return 10.0 + 1990.0 * clamp01 (v); }
 double highCutHz (float v) noexcept { return 200.0 + 19800.0 * clamp01 (v); }
 double outputDb (float v) noexcept { return -18.0 + 36.0 * clamp01 (v); }
+
+// round 190kw: the line law's read filter. A Kaiser-windowed sinc per rate, its half length, cutoff (of Nyquist) and
+// window fitted [EXEC] on the first echo of refcap030 / refcap182's Timeless 3 impulse renders (D, 350 ms, feedback 0),
+// with the line's 15.5 Hz low cut in the model; the residual is 44 … 49 dB under the echo. Other rates take the nearest.
+int lineLawKernel (double rate, std::array<float, 33>& taps) noexcept
+{
+    struct Fit { double sr; int half; double cutoff, beta; };
+    static constexpr Fit fits[] { { 44100.0, 12, 0.94, 11.0 }, { 48000.0, 8, 0.9175, 9.5 }, { 96000.0, 4, 0.8625, 6.5 } };
+    const Fit* f = &fits[0];
+    for (const auto& c : fits)
+        if (std::abs (std::log (rate / c.sr)) < std::abs (std::log (rate / f->sr)))
+            f = &c;
+    const auto bessel0 = [] (double x) {
+        double sum = 1.0, term = 1.0;
+        for (int k = 1; k < 32; ++k)
+        {
+            term *= (x * 0.5 / k) * (x * 0.5 / k);
+            sum += term;
+        }
+        return sum;
+    };
+    taps.fill (0.0f);
+    double total = 0.0;
+    std::array<double, 33> h {};
+    for (int k = -f->half; k <= f->half; ++k)
+    {
+        const double x = f->cutoff * k;
+        const double sinc = k == 0 ? 1.0 : std::sin (pi * x) / (pi * x);
+        const double r = (double) k / f->half;
+        const double w = bessel0 (f->beta * std::sqrt (std::max (0.0, 1.0 - r * r))) / bessel0 (f->beta);
+        h[(std::size_t) (k + f->half)] = sinc * w;
+        total += sinc * w;
+    }
+    for (int k = 0; k <= 2 * f->half; ++k)
+        taps[(std::size_t) k] = (float) (h[(std::size_t) k] / total);
+    return f->half;
+}
 int hybridOf (float v) noexcept { return v < 0.25f ? 0 : (v < 0.75f ? 1 : 2); }
 int tapeVoicingOf (float v) noexcept { return std::clamp ((int) std::lround (clamp01 (v) * tapeVoicingCount), 0, tapeVoicingCount); }
 float tapeVoicingValue (int k) noexcept { return (float) std::clamp (k, 0, tapeVoicingCount) / (float) tapeVoicingCount; }
@@ -1081,6 +1118,9 @@ public:
         for (auto& w : wetBuf) // round 190is
             w.fill (0.0f);
         wetPos = 0;
+        for (auto& h : lawHist) // round 190kw
+            h.fill (0.0f);
+        lawPos[0] = lawPos[1] = 0;
         std::uint32_t seed = 0x1234567u;
         for (auto& c : ch)
         {
@@ -1217,6 +1257,19 @@ private:
         const auto st = rhythmOn ? Style::single : styleOf (p[style]);
         float dryGain = 1.0f, wetGain = 0.0f;
         equalPowerMix (p[mix], dryGain, wetGain);
+        // round 190kw: the line law (hidden; a translated Timeless 3 state): the reference's dry / wet law, its read filter
+        const bool lineLawOn = vd == nullptr && p[lineLaw] >= 0.5f;
+        if (lineLawOn)
+        {
+            const auto m = clamp01 (p[mix]);
+            dryGain = std::min (1.0f, 2.0f * (1.0f - m));
+            wetGain = std::min (1.0f, 2.0f * m);
+            if (sr != lawSr)
+            {
+                lawHalf = lineLawKernel (sr, lawTaps);
+                lawSr = sr;
+            }
+        }
 
         // times: sync / ms, spread (±¼ of the spread on each side), style
         auto tL = sideMs (p, false, bpm);
@@ -1451,6 +1504,9 @@ private:
             if (primesOn)
                 for (auto& t : target)
                     t = (double) nearestPrime ((int) std::lround (t));
+            if (lineLawOn) // round 190kw: the reference reads whole samples (its echoes land on them at 44.1 / 48 / 96 kHz)
+                for (auto& t : target)
+                    t = std::round (t);
             double d[2];
             for (int c = 0; c < 2; ++c)
             {
@@ -1531,7 +1587,10 @@ private:
                 {
                     // the pitch shifter's window delays the echo by half a window: read that much earlier
                     const auto early = (md == Mode::pitch || md == Mode::detune) ? s.pitch.window * 0.5 : 0.0;
-                    y = s.line.at (std::max (2.0, d[c] - early));
+                    if (lineLawOn) // round 190kw: read the filter's half length early, through the linear-phase low-pass
+                        y = lawRead (c, s.line.at (std::max (2.0, d[c] - early - (double) lawHalf)));
+                    else
+                        y = s.line.at (std::max (2.0, d[c] - early));
                     fbSig[c] = y;
                 }
                 const auto sign = c == 0 ? 1.0 : -1.0;
@@ -1609,8 +1668,10 @@ private:
             }
             else if (st == Style::pingPong)
             {
+                // round 190kw: the line law feeds the start side its own input only (the reference's ping pong, measured on
+                // refcap030's programme: the left echo is the left input's, the right input is not heard)
                 const auto half = (float) std::sqrt (loopG);
-                loopIn[first] = feed * mono + half * fbSig[second];
+                loopIn[first] = feed * (lineLawOn ? in[first] : mono) + half * fbSig[second];
                 loopIn[second] = half * fbSig[first];
             }
             else
@@ -1655,7 +1716,7 @@ private:
                     for (int k = 0; k < loopN; ++k)
                         u = loopQ[(std::size_t) k].process (u, c);
                 }
-                else
+                else if (! (lineLawOn && md == Mode::clean && ageV <= 0.0f && driveGain <= 1.0f)) // round 190kw: a clean line
                     u = character (s, c, u, md, ageV, driveGain);
                 u = s.highCut.lp (s.lowCut.hp (u));
                 if (loopEq) // round 144: the loop EQ shapes every repeat again
@@ -1664,7 +1725,7 @@ private:
                     u = lofiLp.process (u, c);
                 if (mult > 1) // round 147: Multiply's band
                     u = multLp2.process (multLp1.process (u, c), c);
-                s.line.push (softLimit (u));
+                s.line.push (lineLawOn ? (float) (lineLawLimit * std::tanh ((double) u / lineLawLimit)) : softLimit (u));
             }
             // round 150: the L/R offset's second loop gets the odd repeats (one more pass: gain, diffusion, colour, cuts)
             for (int c = 0; c < 2; ++c)
@@ -2330,6 +2391,24 @@ private:
         return (float) ((satLoopUnity ? 1.0 : satGain) * y / satDrive);
     }
 
+    // round 190kw: the line law's read filter (taps, half length, the rate they were made for) and its history per side
+    std::array<float, 33> lawTaps {};
+    int lawHalf = 0;
+    double lawSr = 0.0;
+    std::array<std::array<float, 64>, 2> lawHist {};
+    int lawPos[2] {};
+    float lawRead (int c, float x) noexcept
+    {
+        auto& hst = lawHist[(std::size_t) c];
+        auto& pos = lawPos[c];
+        pos = (pos + 1) & 63;
+        hst[(std::size_t) pos] = x;
+        float y = 0.0f;
+        for (int k = 0; k <= 2 * lawHalf; ++k)
+            y += lawTaps[(std::size_t) k] * hst[(std::size_t) ((pos - k) & 63)];
+        return y;
+    }
+
     const VoicingData* satCurve = nullptr;
     std::array<std::array<float, 32>, 2> wetBuf {};
     int wetPos = 0, wetLag = 8;

+ 12 - 1
src/core/EchoSuite.h

@@ -128,12 +128,23 @@ enum Param
     // measured 1/6 ms behind the dry. 0 = rounds 147 / 150 (a project or preset saved before loads without it, so it
     // keeps that sound bit for bit). Read only with an echo voicing
     revision = paramCount,
+    // round 190kw, hidden (not in the info: no control, no string; saved while non-zero): the line law. 1 = the clean
+    // digital line measured on refcap030's Timeless 3 captures (only a translated Timeless 3 state sets it): the dry / wet
+    // law dry = min (1, 2 (1 − mix)), wet = min (1, 2 mix); the delay read at whole samples through a short linear-phase
+    // low-pass (a Kaiser-windowed sinc fitted per rate, see lineLawKernel) and the line bounded by a wide soft limit
+    // (lineLawLimit · tanh (x / lineLawLimit)) instead of the Clean character's shaper and the 2 tanh (x / 2). Without a
+    // voicing only. 0 (the default: every project and preset saved before) = the engine as it was, bit for bit
+    lineLaw,
     // round 190ly, hidden (no control, no string; saved while non-zero): the ValhallaDelay role's loop laws, set only by the
     // ValhallaDelay translator (the substitute table's `replaced` items): the loop diffusion inside the echo time (the
     // reference keeps the time and smears around it) with its measured spread, and the loop gain over Feedback measured on
     // refcap030's captures (40 / 70 / 100 / 160 %). Without a voicing; 0 = as before (every other Echoform)
-    valhallaLaw
+    valhallaLaw // (round 190mb merge: after round 190kw's lineLaw, as the 0.1.30 rollup orders 190kw first)
 };
+// round 190kw: the line law's read filter at `rate` — the taps of a linear-phase low-pass (2 · half + 1 of them, half ≤ 16)
+// fitted on the reference's echoes at 44.1 / 48 / 96 kHz (the nearest of those rates is used)
+int lineLawKernel (double rate, std::array<float, 33>& taps) noexcept;
+constexpr double lineLawLimit = 5.5;
 enum class Style { single, ratio, quad, dual, pingPong }; // the two-time styles last (the panel shows the right time for both)
 // in the panel's order: the modulation section shows wow / flutter (tape), rate / depth (lo-fi … phaser), shift / detune
 // (shifter) or pitch / detune (pitch, reverse, detune) — contiguous ranges of the Mode value

+ 34 - 0
src/core/Effects.cpp

@@ -4630,10 +4630,20 @@ EffectSlot makeEffectSlot (EffectKind kind)
         slot.params[(std::size_t) mixsuite::hush::vocalRevision] = 1.0f;
     if (kind == EffectKind::echoform) // round 190is: a new Echoform runs the echo voicings' revision 1 (hidden parameter)
         slot.params[(std::size_t) echosuite::echoform::revision] = 1.0f;
+    if (kind == EffectKind::crestCompressor) // round 190kw: a new Crest runs the V1 styles' revision 1 (hidden parameter)
+        slot.params[(std::size_t) dyn::crest::revision] = 1.0f;
+    if (kind == EffectKind::apexLimiter) // round 190lp: a new Apex runs the styles' refit, revision 1 (hidden parameter)
+        slot.params[(std::size_t) apex::pRevision] = 1.0f;
+    if (kind == EffectKind::sentryGate) // round 190lp: … and a new Sentry the level gate's refit (hidden parameter)
+        slot.params[(std::size_t) dyn::sentry::revision] = 1.0f;
+    if (kind == EffectKind::ember) // round 190kw: a new Ember runs the Saturn styles' own laws (hidden parameter)
+        slot.params[(std::size_t) mixsuite::ember::revision] = 1.0f;
     // round 190it: a new Epoch Verb / Atrium / Foil Plate / Halo runs the 0.1.30 revision of the Measured law (hidden)
     if (kind == EffectKind::epochVerb) slot.params[(std::size_t) verbs::epoch::revision] = 1.0f;
     if (kind == EffectKind::epochVerb) // round 190ly: … and Epoch Verb Concert Hall's short-decay trim (hidden)
         slot.params[(std::size_t) verbs::epoch::shortTrim] = 1.0f;
+    if (kind == EffectKind::epochVerb) // round 190kw: … and Epoch's level the reference's loop law (hidden)
+        slot.params[(std::size_t) verbs::epoch::loopLaw] = 1.0f;
     if (kind == EffectKind::atrium) slot.params[(std::size_t) verbs::atrium::revision] = 1.0f;
     if (kind == EffectKind::foilPlate) slot.params[(std::size_t) verbs::foil::revision] = 1.0f;
     if (kind == EffectKind::foilPlate) // round 190ln: … and Foil Plate the reference's EQ / bass-decay laws (hidden)
@@ -4714,10 +4724,25 @@ void upgradeLoadedEffectParams (EffectSlot& slot, std::size_t savedCount) noexce
     // round 152: … and before the gain-stage attack keeps round 150's level-follower attack
     if (slot.kind == EffectKind::prismMultiband && savedCount <= (std::size_t) dyn::prism::rev152)
         slot.params[(std::size_t) dyn::prism::rev152] = 0.0f;
+    // round 190lg: … and before revision 1 (Pro-MB's own band compander graph) keeps the measured detector (bit for bit)
+    if (slot.kind == EffectKind::prismMultiband && savedCount <= (std::size_t) dyn::prism::revision)
+        slot.params[(std::size_t) dyn::prism::revision] = slot.params[(std::size_t) dyn::prism::lookaheadSwitch] = 0.0f;
     // round 190v: Crest saved before its two-way / vari-mu refit keeps round 108's laws, Sentry saved before its Vocal
     // noise reduction has none
     if (slot.kind == EffectKind::crestCompressor && savedCount <= (std::size_t) dyn::crest::law)
         slot.params[(std::size_t) dyn::crest::law] = 0.0f;
+    // round 190kw: … and one saved before the V1 styles' revision keeps the fitted Clean / Classic / Opto (bit for bit)
+    if (slot.kind == EffectKind::crestCompressor && savedCount <= (std::size_t) dyn::crest::revision)
+        slot.params[(std::size_t) dyn::crest::revision] = 0.0f;
+    // round 190lp: an Apex saved before the styles' refit keeps the fitted laws of rounds tp172b … 190co (bit for bit)
+    if (slot.kind == EffectKind::apexLimiter && savedCount <= (std::size_t) apex::pRevision)
+        slot.params[(std::size_t) apex::pRevision] = 0.0f;
+    // round 190lp: … and a Sentry saved before the level gate's refit keeps the measured gate of rounds tp172b … 190dm
+    if (slot.kind == EffectKind::sentryGate && savedCount <= (std::size_t) dyn::sentry::revision)
+        slot.params[(std::size_t) dyn::sentry::revision] = 0.0f;
+    // round 190lg: a Facet saved before keeps round 190jh / 190js's automatic-threshold law (bit for bit)
+    if (slot.kind == EffectKind::facetEq && savedCount <= (std::size_t) facet::autoRevisionParam)
+        slot.params[(std::size_t) facet::autoRevisionParam] = 0.0f;
     if (slot.kind == EffectKind::sentryGate && savedCount <= (std::size_t) dyn::sentry::law)
         slot.params[(std::size_t) dyn::sentry::law] = 0.0f;
     // round 150: Auto-pan saved before the Tweak block keeps the Rhythm voicing's clipped angle
@@ -4804,6 +4829,9 @@ void upgradeLoadedEffectParams (EffectSlot& slot, std::size_t savedCount) noexce
         // round 190ls: an Atrium saved before the dense tank keeps revision 1 as it was, bit for bit
         if (slot.kind == EffectKind::atrium && savedCount <= (std::size_t) verbs::atrium::reaLaw)
             slot.params[(std::size_t) verbs::atrium::reaLaw] = 0.0f;
+        // round 190kw: an Epoch Verb saved before the loop law keeps revision 1 as it was (or revision 0), bit for bit
+        if (slot.kind == EffectKind::epochVerb && savedCount <= (std::size_t) verbs::epoch::loopLaw)
+            slot.params[(std::size_t) verbs::epoch::loopLaw] = 0.0f;
     }
     // round 152: a Compressor saved before the measured vintage curve keeps the round-150 curve
     if (slot.kind == EffectKind::compressor && savedCount <= 18 && slot.params.size() > 18)
@@ -4835,12 +4863,18 @@ void upgradeLoadedEffectParams (EffectSlot& slot, std::size_t savedCount) noexce
     // round 190js: … and one saved before Single Vocal's revision keeps round 148's Single Vocal (bit for bit)
     if (slot.kind == EffectKind::hushDeEsser && savedCount <= (std::size_t) mixsuite::hush::vocalRevision)
         slot.params[(std::size_t) mixsuite::hush::vocalRevision] = 0.0f;
+    // round 190kw: an Ember saved before the Saturn styles' laws keeps round 150's measured characters (bit for bit)
+    if (slot.kind == EffectKind::ember && savedCount <= (std::size_t) mixsuite::ember::revision)
+        slot.params[(std::size_t) mixsuite::ember::revision] = 0.0f;
     // round 190is: an Echoform saved before the voicings' revision keeps rounds 147 / 150's voicings
     if (slot.kind == EffectKind::echoform && savedCount <= (std::size_t) echosuite::echoform::revision)
         slot.params[(std::size_t) echosuite::echoform::revision] = 0.0f;
     // round 190ly: the ValhallaDelay role's loop laws are only ever saved with it (a translated ValhallaDelay)
     if (slot.kind == EffectKind::echoform && savedCount <= (std::size_t) echosuite::echoform::valhallaLaw)
         slot.params[(std::size_t) echosuite::echoform::valhallaLaw] = 0.0f;
+    // round 190kw: … and one saved before the line law (hidden, set only by a translated Timeless 3 state) keeps the engine
+    if (slot.kind == EffectKind::echoform && savedCount <= (std::size_t) echosuite::echoform::lineLaw)
+        slot.params[(std::size_t) echosuite::echoform::lineLaw] = 0.0f;
     // round 190ca: a Nebula saved before the cloud law keeps the classic engine in every mode
     if (slot.kind == EffectKind::nebula && savedCount <= (std::size_t) verbs::nebula::law)
         slot.params[(std::size_t) verbs::nebula::law] = 0.0f;

+ 31 - 0
src/core/EmberSaturnStyles.inc

@@ -0,0 +1,31 @@
+// GENERATED by /mnt/e/lynx-work/rea190kw/sat/py/geninc.py from round 190kw's static analysis of the reference (style
+// table and style set-up; docs/PARITY.md "Round 190kw"). Row k = the reference's style k. Fields: see SaturnStyle
+// (core/MixSuite.cpp). Filters {type (0 low pass, 2 low shelf, 3 high pass, 5 high shelf, 7 bell), Hz, dB, Q, slope index}.
+    { 2, 1.0f, 0.75f, -48.0f, 3.0f, -11.5f, 0.25f, 0, 0, 2, 2, { { 2, 100.0f, -2.75f, 0.3f, 1 }, { 5, 10000.0f, 3.0f, 0.3f, 1 } }, { { 2, 100.0f, 3.0f, 0.3f, 1 }, { 5, 10000.0f, -2.75f, 0.3f, 1 } } }, // 0 SubtleTube
+    { 2, 0.8f, 0.5f, -24.0f, 12.0f, -10.0f, -0.3f, 0, 0, 1, 2, { { 5, 8000.0f, 1.5f, 0.41585f, 1 } }, { { 3, 24.0f, 0.0f, 1.0f, 1 }, { 2, 100.0f, 0.5f, 0.41585f, 1 } } }, // 1 CleanTube
+    { 11, 1.0f, 1.0f, -20.0f, 6.0f, -12.0f, -0.5f, 0, 0, 4, 2, { { 3, 24.0f, 0.0f, 1.0f, 1 }, { 7, 1200.0f, 1.5f, 1.8856f, 1 }, { 5, 10000.0f, 3.0f, 0.41585f, 1 }, { 0, 18000.0f, 0.0f, 1.0f, 3 } }, { { 2, 100.0f, 3.0f, 0.41585f, 1 }, { 0, 20000.0f, 0.0f, 1.0f, 3 } } }, // 2 WarmTube
+    { 11, 1.0f, 1.0f, -18.0f, 48.0f, -30.0f, -1.0f, 0, 0, 4, 1, { { 7, 24.0f, 30.0f, 9.4281f, 1 }, { 7, 38.0f, 10.0f, 14.142f, 1 }, { 7, 240.0f, -15.0f, 18.856f, 1 }, { 7, 557.0f, -17.0f, 37.712f, 1 } }, { { 3, 60.0f, 12.0f, 1.0f, 1 } } }, // 3 BrokenTube
+    { 6, 1.0f, 1.0f, -48.0f, 3.0f, -10.0f, 0.1f, 0, 0, 0, 0, {}, {} }, // 4 SubtleTape
+    { 6, 1.0f, 1.0f, -6.0f, 24.0f, -18.0f, 0.0f, 0, 0, 0, 0, {}, {} }, // 5 CleanTape
+    { 8, 1.0f, 1.0f, -6.0f, 24.0f, -18.0f, 0.0f, 0, 0, 3, 2, { { 7, 1200.0f, 1.0f, 1.8856f, 1 }, { 5, 10000.0f, 2.0f, 0.41585f, 1 }, { 3, 24.0f, 0.0f, 1.0f, 1 } }, { { 2, 100.0f, 3.0f, 0.41585f, 1 }, { 0, 18000.0f, 0.0f, 1.0f, 1 } } }, // 6 WarmTape
+    { 7, 1.0f, 1.0f, -6.0f, 36.0f, -24.0f, 0.0f, 0, 0, 3, 1, { { 3, 30.0f, 0.0f, 1.5f, 1 }, { 5, 1000.0f, -2.0f, 0.41585f, 1 }, { 7, 16000.0f, 30.0f, 2.8284f, 1 } }, { { 0, 7000.0f, 0.0f, 1.2f, 1 } } }, // 7 OldTape
+    { 11, 1.0f, 1.0f, -6.0f, 40.0f, -26.0f, 2.0f, 0, 1, 4, 4, { { 3, 53.502f, 0.0f, 1.4803f, 0 }, { 7, 366.85f, -3.0755f, 1.3633f, 1 }, { 7, 3378.4f, 8.0f, 0.81336f, 1 }, { 0, 6067.6f, 0.0f, 0.8264f, 3 } }, { { 3, 30.0f, 0.0f, 0.3f, 1 }, { 7, 174.37f, 6.8263f, 0.23385f, 1 }, { 7, 954.65f, -7.4591f, 0.57458f, 1 }, { 0, 8345.7f, 0.0f, 1.5693f, 1 } } }, // 8 Tweed(Bassman)
+    { 11, 1.0f, 1.0f, 0.0f, 40.0f, -28.0f, 1.0f, 0, 1, 4, 4, { { 3, 60.0f, 0.0f, 1.0f, 6 }, { 7, 240.0f, -15.0f, 3.0f, 1 }, { 7, 1500.0f, 6.0f, 3.0f, 1 }, { 0, 5000.0f, 0.0f, 2.0f, 3 } }, { { 3, 60.0f, 0.0f, 1.0f, 3 }, { 7, 240.0f, 15.0f, 3.0f, 1 }, { 7, 1500.0f, -6.0f, 3.0f, 1 }, { 0, 5000.0f, 0.0f, 1.0f, 3 } } }, // 9 Plexi(Marshall)
+    { 8, 0.7f, 0.75f, 16.0f, 60.0f, -30.0f, -1.0f, 0, 1, 4, 4, { { 3, 38.672f, 0.0f, 1.0738f, 1 }, { 7, 2500.0f, -6.0f, 2.0599f, 1 }, { 7, 350.0f, -6.0f, 1.0f, 1 }, { 0, 4073.7f, 0.0f, 8.0857f, 1 } }, { { 7, 4.0f, 6.0f, 1.0f, 1 }, { 7, 5650.0f, -14.0f, 14.0f, 1 }, { 7, 2500.0f, 4.0f, 2.0913f, 1 }, { 7, 6650.0f, 8.0f, 4.0f, 1 } } }, // 10 BritRock(Orange)
+    { 11, 0.8f, 1.0f, 0.0f, 55.0f, -34.0f, 0.0f, 0, 1, 4, 4, { { 3, 60.0f, 0.0f, 1.0f, 3 }, { 7, 350.0f, -6.0f, 1.5f, 3 }, { 7, 4000.0f, -8.0f, 1.3f, 3 }, { 0, 6379.4f, 0.0f, 0.46798f, 6 } }, { { 3, 57.553f, 0.0f, 1.1977f, 6 }, { 7, 350.0f, 6.0f, 1.5f, 3 }, { 7, 4000.0f, 8.0f, 1.3f, 3 }, { 0, 7500.0f, 0.0f, 0.8f, 6 } } }, // 11 BritPop(Vox)
+    { 0, 1.0f, 0.2f, -12.0f, 24.0f, -12.0f, 3.0f, 0, 0, 3, 4, { { 3, 122.0f, 0.0f, 1.0f, 1 }, { 7, 6324.0f, 10.3f, 0.42144f, 1 }, { 0, 7015.0f, 0.0f, 1.0f, 1 } }, { { 7, 110.0f, 10.38f, 4.0682f, 1 }, { 7, 436.38f, -9.25f, 0.3743f, 1 }, { 5, 2816.3f, 7.44f, 0.41585f, 1 }, { 0, 6517.6f, 0.0f, 3.118f, 1 } } }, // 12 SmoothAmp
+    { 0, 0.8f, 0.75f, 24.0f, 60.0f, -40.0f, 17.0f, 0, 0, 4, 3, { { 3, 186.0f, 0.0f, 0.295f, 1 }, { 7, 1033.7f, -5.41f, 0.79479f, 1 }, { 0, 8446.0f, 0.0f, 1.1131f, 1 }, { 0, 8446.0f, 0.0f, 2.6872f, 1 } }, { { 7, 112.9f, 14.28f, 2.3108f, 1 }, { 2, 2179.3f, -13.53f, 1.0029f, 1 }, { 0, 6517.6f, 0.0f, 2.568f, 1 } } }, // 13 CrunchyAmp
+    { 0, 0.8f, 0.5f, 15.0f, 87.0f, -33.0f, 17.0f, 0, 0, 4, 4, { { 2, 93.707f, 30.0f, 0.85455f, 1 }, { 3, 421.93f, 0.0f, 1.248f, 1 }, { 7, 1289.9f, -6.32f, 1.7895f, 1 }, { 0, 2100.0f, 0.0f, 1.0f, 1 } }, { { 3, 29.56f, 0.0f, 0.287f, 1 }, { 7, 112.92f, 10.0f, 3.7741f, 1 }, { 7, 633.62f, -15.34f, 0.32621f, 1 }, { 0, 6300.0f, 0.0f, 4.5f, 1 } } }, // 14 LeadAmp
+    { 11, 1.0f, 1.0f, -40.0f, 70.0f, 0.0f, -34.0f, 0, 0, 4, 4, { { 3, 60.0f, 0.0f, 1.3f, 1 }, { 7, 679.51f, 30.0f, 0.32998f, 1 }, { 7, 3682.0f, -17.37f, 1.8394f, 1 }, { 0, 6828.6f, 0.0f, 5.137f, 1 } }, { { 3, 41.5f, 0.0f, 10.5f, 1 }, { 7, 353.8f, 14.21f, 1.384f, 1 }, { 7, 1746.5f, 12.18f, 1.9139f, 1 }, { 0, 5284.3f, 0.0f, 4.86f, 1 } } }, // 15 ScreamingAmp
+    { 0, 1.0f, 0.5f, -12.0f, 92.0f, -12.0f, -12.0f, 0, 0, 4, 3, { { 2, 26.0f, -30.0f, 5.3551f, 1 }, { 7, 120.0f, 7.65f, 8.1289f, 1 }, { 7, 525.83f, 14.14f, 0.78159f, 1 }, { 0, 2688.0f, 0.0f, 5.582f, 1 } }, { { 2, 60.0f, 18.0f, 1.0f, 1 }, { 7, 187.0f, 12.0f, 7.5425f, 1 }, { 7, 1200.0f, 10.0f, 1.8856f, 1 } } }, // 16 PowerAmp
+    { 7, 1.0f, 1.0f, -48.0f, 0.0f, -11.0f, 0.0f, 0, 0, 0, 0, {}, {} }, // 17 SubtleSat
+    { 8, 1.0f, 1.0f, -6.0f, 24.0f, -18.0f, 0.0f, 0, 0, 0, 0, {}, {} }, // 18 GentleSat
+    { 2, 1.0f, 1.0f, -2.0f, 72.0f, -32.0f, 3.0f, 0, 0, 0, 0, {}, {} }, // 19 HeavySat
+    { 4, 1.0f, 1.0f, -18.0f, 6.0f, -10.0f, 0.0f, 1, 0, 2, 3, { { 2, 100.0f, -2.75f, 0.3f, 1 }, { 5, 10000.0f, 3.0f, 0.3f, 1 } }, { { 3, 10.0f, 0.0f, 1.0f, 0 }, { 2, 100.0f, 3.0f, 0.3f, 1 }, { 5, 10000.0f, -2.75f, 0.3f, 1 } } }, // 20 SubtleXfmr
+    { 4, 1.0f, 1.0f, -12.0f, 20.0f, -17.0f, 0.0f, 1, 0, 1, 2, { { 5, 8000.0f, 0.75f, 0.3f, 1 } }, { { 3, 15.0f, 0.0f, 1.0f, 0 }, { 2, 100.0f, 0.5f, 0.3f, 1 } } }, // 21 GentleXfmr
+    { 4, 1.0f, 1.0f, -8.0f, 36.0f, -22.0f, -0.2f, 1, 0, 1, 3, { { 2, 80.0f, -2.0f, 0.3f, 1 } }, { { 3, 30.0f, 0.0f, 0.8f, 1 }, { 2, 60.0f, 6.0f, 0.3f, 1 }, { 5, 8000.0f, 1.0f, 0.3f, 1 } } }, // 22 WarmXfmr
+    { 8, 1.0f, 1.0f, -3.46f, 24.0f, -20.0f, 0.0f, 0, 0, 0, 0, {}, {} }, // 23 Smudge
+    { 4, 1.0f, 1.0f, -12.0f, 42.0f, -24.0f, -0.2f, 1, 0, 3, 3, { { 2, 100.0f, -8.0f, 0.3f, 1 }, { 7, 2200.0f, 12.0f, 1.24f, 1 }, { 5, 4000.0f, -8.0f, 1.0f, 1 } }, { { 2, 100.0f, 8.0f, 0.3f, 1 }, { 7, 2200.0f, -12.0f, 1.24f, 1 }, { 5, 4000.0f, 8.0f, 1.0f, 1 } } }, // 24 Breakdown
+    { 8, 1.0f, 1.0f, -3.46f, 24.0f, -20.0f, 0.0f, 0, 0, 0, 0, {}, {} }, // 25 Foldback
+    { 13, 1.0f, 1.0f, 0.0f, 75.0f, -32.0f, -1.5f, 0, 0, 0, 2, {}, { { 2, 100.0f, 7.0f, 0.41585f, 1 }, { 3, 24.0f, 0.0f, 1.0f, 3 } } }, // 26 Rectify
+    { 6, 1.0f, 1.0f, 0.0f, 24.0f, -24.0f, 0.0f, 0, 0, 0, 0, {}, {} }, // 27 Destroy

+ 189 - 1
src/core/FabFilterStates.cpp

@@ -9,6 +9,7 @@
 #include "core/ApexLimiter.h"
 #include "core/LuxeVerb.h"
 #include "core/DynamicsSuite.h"
+#include "core/EchoSuite.h"
 #include "core/FacetEq.h"
 #include "core/MixSuite.h"
 
@@ -248,6 +249,7 @@ int fromProC3 (const State& s, EffectSlot& slot)
     set (output, linValue (levelDb (s.at (91)) + levelDb (s.at (15)), -36.0, 36.0));
     set (oversampling, (float) std::clamp (roundIndex (s.at (94)), 0, 3) / 3.0f);
     set (maxLookahead, (float) std::clamp (roundIndex (s.at (95)), 0, 5) / 5.0f);
+    set (revision, 1.0f); // round 190kw: the reference's own V1 laws (Clean / Classic / Opto)
     return n;
 }
 
@@ -346,6 +348,9 @@ int fromProMB (const State& s, EffectSlot& slot)
     set (Global::processingMode, (float) std::clamp (roundIndex (s.at (139)), 0, 2) * 0.5f);
     set (Global::oversampling, (float) std::clamp (roundIndex (s.at (140)), 0, 2) * 0.5f);
     set (Global::panMode, 1.0f); // the reference's band pan is always mid / side (state 14: −1 … +1)
+    // round 190lg: the reference's own band compander graph (hidden revision 1) and its look-ahead switch (state 141)
+    p[(std::size_t) revision] = 1.0f;
+    p[(std::size_t) lookaheadSwitch] = s.at (141) >= 0.5f ? 1.0f : 0.0f;
     return n;
 }
 
@@ -400,6 +405,7 @@ int fromProG (const State& s, EffectSlot& slot)
     set (dryPan, expert ? linValue (s.at (23), -1.0, 1.0) : 0.5f);
     set (channelMode, s.at (27) >= 0.5f ? 1.0f : 0.0f);
     set (input, linValue (levelDb (s.at (28)), -24.0, 24.0));
+    p[(std::size_t) revision] = 1.0f; // round 190lp: the algorithms' black-box refit (hidden revision 1)
     return n;
 }
 
@@ -448,7 +454,8 @@ int fromSaturn2 (const State& s, EffectSlot& slot)
         set (bandParam (b, 0), (float) (int) ourStyle (roundIndex (s.at (base + 3))) / 3.0f);
         // round 150: the measured character of their style k (character k + 1, REA_rodada150b)
         set (characterParam (b), (float) (std::clamp (roundIndex (s.at (base + 3)), 0, characters - 1) + 1) / (float) characters);
-        // drive 0 … 100 % → 0 … +30 dB of ours (their 50 % already saturates a −6 dBFS tone hard)
+        // drive 0 … 100 % → 0 … +30 dB of ours (their 50 % already saturates a −6 dBFS tone hard); round 190kw: with the
+        // Saturn law this is the reference's normalised drive itself (referenceDrive (driveDb) = 36 / 30 × the value)
         set (bandParam (b, 1), clamp01 (30.0 * std::clamp ((double) s.at (base + 4), 0.0, 1.0) / 36.0));
         set (bandParam (b, 2), clamp01 (s.at (base + 10) / 100.0));
         const auto enabled = s.at (base + 13) >= 0.5f;
@@ -492,6 +499,11 @@ int fromSaturn2 (const State& s, EffectSlot& slot)
     // band b at 6 + 13b: +0 crossover, +2 drive, +4 level, +12 mix)
     set (processing, s.at (696) >= 0.5f ? 1.0f : 0.0f);
     set (effectLaw, 1.0f);
+    // round 190kw: the styles' own laws (hidden revision) and 698 High Quality: 0 off = the law's curve at the base rate
+    // (lawRate), as the reference's; Good (8×) / Superb (32×) keep Ember's Oversampling (4×: 8× scored no better on the
+    // lab files and costs twice the CPU)
+    set (revision, 1.0f);
+    set (lawRate, roundIndex (s.at (698)) <= 0 ? 1.0f : 0.0f);
     if (s.count >= 951)
     {
         std::array<double, 2> depth { 1.0, 1.0 };
@@ -621,7 +633,10 @@ int fromProQ4 (const State& s, EffectSlot& slot)
         {
             set (facet::rangeParam0 + band, facet::rangeValue (rangeDb));
             if (s.at (base + 11) >= 0.5f)
+            {
                 set (facet::autoThresholdParam0 + band, 1.0f);
+                p[(std::size_t) facet::autoRevisionParam] = 1.0f; // round 190lg: the reference's own structure
+            }
             else
             {
                 const double v = std::clamp ((double) s.at (base + 12), 0.0, 1.0);
@@ -743,6 +758,7 @@ int fromProL2 (const State& s, EffectSlot& slot)
     set (apex::pUnity, s.at (15) >= 0.5f ? 1.0f : 0.0f);
     set (apex::pAudition, s.at (16) >= 0.5f ? 1.0f : 0.0f);
     set (apex::pCeiling, linValue (s.at (18), -30.0, 0.0));
+    p[(std::size_t) apex::pRevision] = 1.0f; // round 190lp: the styles' black-box refit (hidden revision 1)
     if (s.at (17) >= 0.5f)
         slot.enabled = false;
     return n;
@@ -803,6 +819,176 @@ int fromProR2 (const State& s, EffectSlot& slot)
     return n;
 }
 
+// ---------------------------------------------------------------- Timeless 3 -> Echoform (round 190kw)
+namespace
+{
+// The Delay Time knob (value 0, normalised 0 … 1 = 5 ms … 5 s): read [EXEC] off refcap030's renders (the echo's sample
+// position at 44.1 / 48 / 96 kHz) and the trial's own display texts; monotone cubic in log ms between the points
+constexpr std::array<double, 11> timelessN { 0.0, 0.2, 0.247028, 0.25, 0.29334, 0.304714, 0.361589, 0.5, 0.75, 0.8, 1.0 };
+constexpr std::array<double, 11> timelessMs { 5.0, 174.8125, 249.979, 254.75, 350.0, 375.0, 500.0, 804.195, 2490.01, 3176.81, 5000.0 };
+} // namespace
+
+double timeless3DelayMs (float v) noexcept
+{
+    constexpr int n = (int) timelessN.size();
+    const double x = std::clamp ((double) v, 0.0, 1.0);
+    std::array<double, 11> y {}, d {}, m {};
+    for (int i = 0; i < n; ++i)
+        y[(std::size_t) i] = std::log (timelessMs[(std::size_t) i]);
+    for (int i = 0; i + 1 < n; ++i)
+        d[(std::size_t) i] = (y[(std::size_t) i + 1] - y[(std::size_t) i]) / (timelessN[(std::size_t) i + 1] - timelessN[(std::size_t) i]);
+    m[0] = d[0];
+    m[(std::size_t) n - 1] = d[(std::size_t) n - 2];
+    for (int i = 1; i + 1 < n; ++i) // Fritsch-Carlson: harmonic mean of the neighbouring slopes (monotone)
+    {
+        const auto a = d[(std::size_t) i - 1], b = d[(std::size_t) i];
+        m[(std::size_t) i] = a * b <= 0.0 ? 0.0 : 2.0 * a * b / (a + b);
+    }
+    int i = 0;
+    while (i + 2 < n && x > timelessN[(std::size_t) i + 1])
+        ++i;
+    const auto h = timelessN[(std::size_t) i + 1] - timelessN[(std::size_t) i], t = (x - timelessN[(std::size_t) i]) / h;
+    const auto t2 = t * t, t3 = t2 * t;
+    const auto ly = (2 * t3 - 3 * t2 + 1) * y[(std::size_t) i] + (t3 - 2 * t2 + t) * h * m[(std::size_t) i]
+                    + (-2 * t3 + 3 * t2) * y[(std::size_t) i + 1] + (t3 - t2) * h * m[(std::size_t) i + 1];
+    return std::exp (ly);
+}
+
+// layout (FFBS v1, 1007 values, one per parameter of the plug-in's own VST3 list in its order — refcap182's parameter dumps
+// name every index, and the static parameter-set order agrees; [EXEC] = moved by the capture's own parameter sets in
+// refcap030 / refcap182, [ORDER] = known from the list only): 0 delay time (norm) [EXEC],
+// 1 delay time pan (−2 … 2: the time × 2^|pan| on one side) [ORDER], 2 delay offset (0 = 100 %) [ORDER], 3 delay sync
+// (Free, 1/2, 1/4, 1/8, 1/16 note) [ORDER], 4 read mode (tape / stretch) [EXEC], 5 freeze [ORDER], 6 ping pong (off, L-R,
+// R-L) [EXEC], 7 … 81 fifteen extra taps, 82 … 84 main tap, 85 feedback (0 … 2 = 0 … 200 %) [EXEC], 86 feedback pan,
+// 87 cross feedback mix, 88 / 89 feedback invert L / R, 90 + 9 k filter k (6: log2 Hz [EXEC], gain, pan, peak, style
+// [EXEC], shape (low pass, high pass, band pass, bell, low shelf, high shelf, notch), slope (6 … 48 dB/oct), enabled,
+// used) [ORDER], 144 filter routing, 145 drive / 146 on, 147 lo-fi / 148 on, 149 diffuse / 150 on, 151 dynamics / 152 on,
+// 153 pitch shift / 154 on, 157 stereo width (0 … 1) [EXEC], 158 wet level (linear), 159 wet pan, 160 mix (−1 … 1 =
+// 0 … 100 %) [EXEC], 752 channel mode (L/R, M/S) [EXEC].
+// Echoform's Clean mode with the line law (hidden; see echoform::lineLaw): the reference's dry / wet law (dry at unity up
+// to 50 %), its read filter and wide limit, a 15.5 Hz low cut in the loop (measured: the echo's DC tail), the delay at
+// whole samples. Ping pong: the start side fed with its own input (the line law; measured) and the feedback per hop
+// (Echoform's ping-pong without pairs loops √gain per side, so its feedback is the square). Filters only when used and enabled (none of the captures
+// uses one: the shapes / slopes follow the plug-in's lists, low pass → the high cut, high pass → the low cut, unmeasured);
+// drive, diffuse, freeze, time / feedback pan, cross feedback, wet level / pan by meaning (unmeasured). Not carried over:
+// the extra taps, lo-fi, dynamics, pitch shift, feedback invert, the M/S channel mode, the modulation sources.
+int fromTimeless3 (const State& s, EffectSlot& slot)
+{
+    if (slot.kind != EffectKind::echoform || s.named || s.count != 1007 || s.values.size() < 1007 || ! finiteAll (s, 161))
+        return 0;
+    namespace e = echosuite::echoform;
+    auto& p = slot.params;
+    const auto set = [&p] (int k, double v) { p[(std::size_t) k] = clamp01 (v); };
+    set (e::mode, e::modeValue (e::Mode::clean));
+    set (e::age, 0.0);
+    set (e::modDepth, 0.0);
+    set (e::wow, 0.0);
+    set (e::flutter, 0.0);
+    set (e::voicing, 0.0);
+    set (e::satType, 0.0);
+    set (e::tapeVoicing, 0.0);
+    set (e::hybrid, 0.0);
+    set (e::rhythm, 0.0);
+    set (e::spread, 0.5);
+    set (e::pairs, 0.0);
+    set (e::output, 0.5);
+    set (e::inputLevel, 0.5);
+    set (e::diffusion, 0.0);
+    set (e::drive, 0.0);
+    set (e::ducking, 0.0);
+    p[(std::size_t) e::lineLaw] = 1.0f;
+    int n = 6;
+
+    // time: free (the knob) or synced (a note value; the offset 0 = 100 %, 0.585 = dotted, −0.585 = triplet as log2)
+    const int sync = std::clamp (roundIndex (s.at (3)), 0, 4);
+    const double ms = timeless3DelayMs (s.at (0));
+    const double pan = std::clamp ((double) s.at (1), -2.0, 2.0);
+    const int pp = std::clamp (roundIndex (s.at (6)), 0, 2);
+    if (sync > 0)
+    {
+        const double off = s.at (2);
+        const int kind = std::abs (off - 0.585) < 0.05 ? 2 : std::abs (off + 0.585) < 0.05 ? 3 : 1;
+        const int note = 6 - sync; // 1/2 … 1/16 = Echoform's note index 5 … 2
+        set (e::syncL, (kind + 1) / 4.0 + 0.125);
+        set (e::noteL, (note + 0.5) / 10.0);
+        p[(std::size_t) e::syncR] = p[(std::size_t) e::syncL];
+        p[(std::size_t) e::noteR] = p[(std::size_t) e::noteL];
+    }
+    else
+    {
+        set (e::syncL, 0.0);
+        set (e::syncR, 0.0);
+        const bool dual = pp == 0 && std::abs (pan) > 1e-4;
+        set (e::timeL, e::timeValue (ms * (dual && pan < 0.0 ? std::pow (2.0, -pan) : 1.0)));
+        set (e::timeR, e::timeValue (ms * (dual && pan > 0.0 ? std::pow (2.0, pan) : 1.0)));
+        set (e::style, e::styleValue (dual ? e::Style::dual : e::Style::single));
+    }
+    const double fb = std::clamp ((double) s.at (85), 0.0, 2.0);
+    if (pp > 0)
+    {
+        set (e::style, e::styleValue (e::Style::pingPong));
+        set (e::startSide, pp == 2 ? 1.0 : 0.0);
+        set (e::feedback, fb * fb / 2.0);
+    }
+    else
+    {
+        if (sync > 0)
+            set (e::style, e::styleValue (e::Style::single));
+        set (e::feedback, fb / 2.0);
+        set (e::crossFeedback, s.at (87));
+    }
+    set (e::fbBalance, (std::clamp ((double) s.at (86), -1.0, 1.0) + 1.0) / 2.0);
+    set (e::freeze, s.at (5) >= 0.5f ? 1.0 : 0.0);
+
+    // mix, width, wet level / pan
+    set (e::mix, (std::clamp ((double) s.at (160), -1.0, 1.0) + 1.0) / 2.0);
+    set (e::width, 0.5 + 0.5 * std::clamp ((double) s.at (157), 0.0, 1.0));
+    const double wet = s.at (158);
+    if (wet > 0.0 && std::abs (wet - 1.0) > 1e-4)
+        set (e::output, (20.0 * std::log10 (wet) + 18.0) / 36.0);
+    set (e::balance, (std::clamp ((double) s.at (159), -1.0, 1.0) + 1.0) / 2.0);
+
+    // the loop's tone: the measured 15.5 Hz low cut; the filters in use (low pass → high cut, high pass → low cut)
+    double lowHz = 15.5, highHz = 1e9;
+    for (std::size_t k = 0; k < 6; ++k)
+    {
+        const std::size_t o = 90 + 9 * k;
+        if (s.at (o + 8) < 0.5f || s.at (o + 7) < 0.5f)
+            continue;
+        const double hz = std::pow (2.0, std::clamp ((double) s.at (o), 1.0, 17.0));
+        const int shape = roundIndex (s.at (o + 5));
+        if (shape == 0)
+            highHz = std::min (highHz, hz);
+        else if (shape == 1)
+            lowHz = std::max (lowHz, hz);
+    }
+    set (e::lowCut, (std::min (lowHz, 2000.0) - 10.0) / 1990.0);
+    set (e::highCut, 1.0);
+    if (highHz < 19000.0)
+    {
+        // Echoform's measured high cut is a one-pole at highCutHz (v) · (0.5 + 1.5 · open²), open = (v − 0.8) / 0.2 above 0.8
+        double v = 0.0;
+        for (int it = 0; it <= 1000; ++it)
+        {
+            const double t = it / 1000.0, open = std::max (0.0, (t - 0.8) / 0.2);
+            if (e::highCutHz ((float) t) * (0.5 + 1.5 * open * open) >= highHz)
+            {
+                v = t;
+                break;
+            }
+            v = t;
+        }
+        set (e::highCut, std::min (v, 0.998));
+    }
+
+    // drive (Echoform's 0 … 24 dB: the knob's 0 … 100 % as 0 … 12 dB) and diffuse, when switched on
+    if (s.at (146) >= 0.5f)
+        set (e::drive, 0.5 * std::clamp ((double) s.at (145), 0.0, 1.0));
+    if (s.at (150) >= 0.5f)
+        set (e::diffusion, std::clamp ((double) s.at (149), 0.0, 1.0));
+    return n + 10;
+}
+
 Translator translatorNamed (std::string_view name)
 {
     if (name == "pro-l2")
@@ -821,6 +1007,8 @@ Translator translatorNamed (std::string_view name)
         return fromProG;
     if (name == "saturn2")
         return fromSaturn2;
+    if (name == "timeless3")
+        return fromTimeless3;
     return nullptr;
 }
 } // namespace lynx::fabfilter

+ 4 - 1
src/core/FabFilterStates.h

@@ -42,7 +42,10 @@ int fromProQ4 (const State& state, EffectSlot& slot);   // -> Facet EQ
 int fromProDS (const State& state, EffectSlot& slot);   // -> Hush De-esser (round 148)
 int fromProL2 (const State& state, EffectSlot& slot);   // -> Apex Limiter (round tp172b)
 int fromProR2 (const State& state, EffectSlot& slot);   // -> LuxeVerb's Space engine (round tp172b)
-Translator translatorNamed (std::string_view name);     // "pro-c3", "pro-mb", "pro-g", "saturn2", "pro-q4", "pro-ds", "pro-l2"; null if unknown
+int fromTimeless3 (const State& state, EffectSlot& slot); // -> Echoform's clean line (round 190kw)
+double timeless3DelayMs (float v) noexcept;              // Timeless 3's Delay Time knob (normalised) in ms (round 190kw)
+Translator translatorNamed (std::string_view name);     // "pro-c3", "pro-mb", "pro-g", "saturn2", "pro-q4", "pro-ds", "pro-l2",
+                                                         // "timeless3"; null if unknown
 
 // Their gain encoding (output / wet / band levels): −1 … 1 ↔ −∞ … +36 dB (0.2 per 7.2 dB above −0.6)
 double levelDb (float v) noexcept;

+ 83 - 0
src/core/FacetEq.cpp

@@ -925,6 +925,11 @@ private:
         // keep the band's total within +-30 dB
         bool autoT = false;
         double top = autoFloorDb, topFall = 0.0, topRise = 1.0, lo = -60.0, hi = 60.0;
+        // round 190lg: the automatic threshold's revision 1 (Pro-Q 4's structure, AutoLaw1): the peak follower (linear),
+        // its fall, the three followers of the reduction and their coefficients (rise, fall)
+        bool rev1 = false;
+        double env = 0.0, envFall = 0.0, f0 = 0.0, f1 = 0.0, f2 = 0.0;
+        double c0r = 1.0, c1a = 1.0, c1r = 1.0, c2a = 1.0, c2r = 1.0;
     };
 
     void configureMode (Phase p) noexcept
@@ -987,6 +992,14 @@ private:
                 if (d.autoT && ! wasAuto) d.top = A.floorDb;
                 d.topFall = A.decayDbPerSecond / sampleRate;
                 d.topRise = A.topRiseMs > 0.0 ? 1.0 - std::exp (-1.0 / (A.topRiseMs * 0.001 * sampleRate)) : 1.0;
+                // round 190lg: revision 1 (see AutoLaw1)
+                const bool wasRev1 = d.rev1;
+                d.rev1 = d.autoT && params[(std::size_t) autoRevisionParam] >= 0.5f;
+                if (d.rev1)
+                {
+                    if (! wasRev1 || ! wasAuto) d.env = d.f0 = d.f1 = d.f2 = 0.0;
+                    autoTimes1 (params, b, sampleRate, d);
+                }
                 const double g0 = gainDb (params[(std::size_t) param (b, 2)]);
                 d.lo = -30.0 - g0;
                 d.hi = 30.0 - g0;
@@ -1064,6 +1077,33 @@ private:
         return n;
     }
 
+    // round 190lg: revision 1's follower times (Pro-Q 4's BandCompander, REA_rodada190lg): from the band's region (its
+    // edges in octaves) and the attack / release knobs (the translator's ms back to the reference's percent)
+    void autoTimes1 (const EffectParams& params, int b, double rate, Detector& d) const noexcept
+    {
+        const auto& L = autoLaw1();
+        // the region the reference reads its times from is the dynamic band's own detection range (state values 17 / 18,
+        // log2 Hz), 10 Hz … 20 kHz by default; Facet has no such range, so the default's
+        (void) b;
+        const double lo = std::log2 (10.0), hi = std::log2 (20000.0);
+        const double attPct = std::clamp (50.0 + 50.0 * std::log10 (attackMs (params[(std::size_t) attackParam]) / 9.22), 0.0, 100.0);
+        const double relPct = std::clamp (50.0 + 50.0 * std::log10 (releaseMs (params[(std::size_t) releaseParam]) / 268.0), 0.0, 100.0);
+        const double u = 1.0 - 0.1 * std::clamp (lo - 4.5, 0.0, 10.0), u2 = u * u;
+        const double p = attPct * attPct * ((u2 * 3.6e-5 + 6e-5) * u2 + u2 * 6e-5 + 1e-4);
+        const double atk = p * p * 0.59975 + 0.00025; // s
+        const double kx = std::clamp (relPct / 100.0, 0.0, 1.0);
+        const double rel = 0.005 + 2.495 * (std::exp (L.relCurve * kx) - 1.0) / (std::exp (L.relCurve) - 1.0); // s
+        const double centre = std::pow (2.0, 0.5 * (lo + hi)), low = 100.0 / std::max (centre, 100.0);
+        const double wide = (std::clamp (hi - lo, 2.0, 8.0) - 2.0) / 6.0;
+        const auto c = [rate] (double sec) { return sec <= 1e-9 ? 1.0 : 1.0 - std::exp (-2.302585092994046 / (sec * rate)); };
+        d.c0r = c ((std::min (1.0, wide + low) * 0.02 + 0.015) * L.t0);
+        d.c1a = c (std::max (0.12, 0.3 - atk * 30.0) * L.t1);
+        d.c1r = c ((rel * 1.29 + 0.25) * L.t1);
+        d.c2a = c ((wide * 0.01 + atk) * L.t2a);
+        d.c2r = c ((low * 0.25 + 0.45) * rel * L.t2r);
+        d.envFall = c (L.envSec);
+    }
+
     // detector levels and the dynamic gains, sample by sample over one chunk
     void detect (const float* dl, const float* dr, const float* inL, const float* inR, int m, bool side) noexcept
     {
@@ -1078,6 +1118,20 @@ private:
                 else x = 0.5 * ((double) inL[i] + (double) inR[i]);
                 if (! std::isfinite (x)) x = 0.0;
                 const double y = d.filter.run (x, 0);
+                if (d.rev1) // round 190lg: Pro-Q 4's structure (AutoLaw1)
+                {
+                    const auto& L = autoLaw1();
+                    const double mag = std::abs (y);
+                    d.env = mag > d.env ? mag : d.env + d.envFall * (mag - d.env);
+                    const double rel = 20.0 * std::log10 (std::max (mag, 1e-12) / std::max (d.env, L.floor));
+                    const double amt = std::abs (std::clamp (autoDynamicGainDb1 (rel, d.range), d.lo, d.hi));
+                    d.f0 = amt > d.f0 ? amt : d.f0 + d.c0r * (amt - d.f0);
+                    d.f1 += (d.f0 > d.f1 ? d.c1a : d.c1r) * (d.f0 - d.f1);
+                    const double m1 = std::max (d.f0, d.f1);
+                    d.f2 += (m1 > d.f2 ? d.c2a : d.c2r) * (m1 - d.f2);
+                    d.gain = d.range < 0.0 ? -d.f2 : d.f2;
+                    continue;
+                }
                 d.ms += d.msCoef * (y * y - d.ms);
                 const double level = 10.0 * std::log10 (2.0 * d.ms + 1e-20);
                 double target;
@@ -1769,6 +1823,35 @@ constexpr AutoLaw autoLaw190js { autoFloorDb, autoDecayDbPerSecond, autoKneeDb,
 
 const AutoLaw& autoLaw() noexcept { return autoLaw190js; }
 
+// round 190lg: revision 1 (AutoLaw1). The threshold and knee buses of the reference's auto mode were not traced: LYNX keeps
+// round 190js's fitted mapping (the band moves from |range| under its peak level, over a knee of 1.53 |range|), now on the
+// reference's own detector: the per-sample level against the peak follower
+namespace
+{
+AutoLaw1 autoLaw1Value;
+#ifdef LYNX_Q4LAB
+struct AutoLaw1Lab
+{
+    AutoLaw1Lab()
+    {
+        if (const char* e = std::getenv ("LYNX_Q4LAB"))
+            std::sscanf (e, "%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf", &autoLaw1Value.thrK, &autoLaw1Value.thrOff, &autoLaw1Value.kneeK,
+                         &autoLaw1Value.envSec, &autoLaw1Value.floor, &autoLaw1Value.t0, &autoLaw1Value.t1, &autoLaw1Value.t2a,
+                         &autoLaw1Value.t2r, &autoLaw1Value.relCurve);
+    }
+} autoLaw1Lab;
+#endif
+} // namespace
+const AutoLaw1& autoLaw1() noexcept { return autoLaw1Value; }
+double autoDynamicGainDb1 (double rel, double range) noexcept
+{
+    const auto& L = autoLaw1();
+    const double x = rel + L.thrK * std::abs (range) - L.thrOff;
+    const double knee = std::max (0.01, L.kneeK * std::abs (range));
+    const double over = x <= -0.5 * knee ? 0.0 : x < 0.5 * knee ? (x + 0.5 * knee) * (x + 0.5 * knee) / (2.0 * knee) : x;
+    return range < 0.0 ? -std::min (-range, over) : std::min (range, over);
+}
+
 bool autoThreshold (const EffectParams& p, int b) noexcept
 {
     return b >= 0 && b < bands && p[(std::size_t) (autoThresholdParam0 + b)] >= 0.5f;

+ 21 - 0
src/core/FacetEq.h

@@ -84,6 +84,12 @@ constexpr int paramCount = 117;
 // every project saved before loads 0 and plays as before: [117 + b] band b's automatic threshold (Pro-Q 4's "Auto",
 // the default of its dynamic bands; set by the Pro-Q 4 translator). See autoThreshold below.
 constexpr int autoThresholdParam0 = paramCount; // + band
+// round 190lg (Pro-Q 4 parity), hidden: [125] the automatic threshold's revision. 1 = the reference's own structure
+// (static REA, docs/analise/REA_rodada190lg.md): the band level against a peak follower of itself (instant rise, 10 s fall,
+// floor −40 dB) per sample, then three followers on the reduction whose times follow the band's region and the attack /
+// release knobs. 0 = round 190jh / 190js's fitted law (every project saved before; bit for bit). A new Facet and a
+// translated Pro-Q 4 state get 1.
+constexpr int autoRevisionParam = autoThresholdParam0 + 8;
 // round 190ln (the Kilohearts Disperser role), hidden the same way — saved while non-zero, so every project saved before
 // loads 0 (off) and plays bit for bit as before: a cascade of second-order all-pass sections (the cookbook all-pass,
 // bilinear) after the bands, [126] how many (value × 64 sections, 0 = off), [127] their frequency (hz law), [128] their
@@ -181,6 +187,21 @@ struct AutoLaw
     double kneePerRange; // > 0: the knee is this many times the range's size (kneeDb unused)
 };
 const AutoLaw& autoLaw() noexcept;
+// round 190lg: revision 1 of the automatic threshold (Pro-Q 4's BandCompander structure; autoRevisionParam): the band's
+// per-sample magnitude against a peak follower of it (instant rise, envSec fall to 10 %, never under `floor`), in dB,
+// through the gain law below; the reduction then runs through three followers whose times come from the band's region
+// and the attack / release knobs (FacetEq.cpp: autoTimes1). relCurve: LYNX's own smooth fit of the reference's release
+// knob curve ((e^(k x) − 1) / (e^k − 1)); t0 / t1 / t2a / t2r: scales on the reference's times, fitted on refcap030
+// grid2's gain trajectories (50 ms frames, ranges −30 / −15 / +15 / +30, tc + stairs: mean error 0.33 dB for round 190js's
+// law, 0.16 dB here): the knob-percent link from Facet's ms controls is the uncertain part (the reference's own times
+// with scale 1 released 3× too slowly and attacked over 250 ms where the captures settle in under 100 ms)
+struct AutoLaw1
+{
+    double thrK = 1.0, thrOff = 0.0, kneeK = 1.53, envSec = 10.0, floor = 0.01;
+    double t0 = 1.0, t1 = 0.65, t2a = 0.05, t2r = 0.6, relCurve = 3.32;
+};
+const AutoLaw1& autoLaw1() noexcept;
+double autoDynamicGainDb1 (double relDb, double rangeDb) noexcept;
 bool autoThreshold (const EffectParams& params, int band) noexcept;
 // the auto mode's gain law: dynamicGainDb with the auto knee
 double autoDynamicGainDb (double levelDb, double topDb, double rangeDb) noexcept;

+ 82 - 3
src/core/LynxVerbs.cpp

@@ -2034,6 +2034,70 @@ LYNX_FIT_TABLE Rev1Trim epochTrim[epoch::modeCount] = {
 // files a step but took sr96 S1's impulse one down — Epoch sits 1.3 dB higher at 96 kHz than at 48 kHz there, a finding of its own)
 LYNX_FIT_TABLE Rev1Trim epochShort = { 0.0, { 0.0, 0.0, 0.0, 2.68, 1.76, 1.45, 2.07, 1.27 } };
 LYNX_FIT_TABLE double epochShortEnd = 2.9;
+// round 190kw (revision 1 + loopLaw): Epoch's level over Decay and Size from the reference's loop (static REA of
+// ValhallaVintageVerb, docs/analise/REA_rodada190kw.md §4 / §11). Each of its modes is one loop whose gain is the RT60 law
+// 10^(−3 L / (fs T)) split over N gain stages, the input entering after a stage, with no output gain of its own: its wet
+// energy is E(T, s) = E0 / (1 − 10^(−6 ℓ(s) / T)), ℓ = c · L(s) / N, and the first 80 ms do not move with Decay. Per mode:
+// ℓ at Size 100 % (s), the loop's size law L(s) / L(1) = a + b · s^e, the level at the capture's base Decay (0.513 s) against
+// revision 1 (dB, refcap030's mode sweep, impulse) and Epoch's own wet-energy growth over Decay (dB at the knots below,
+// measured on the impulse with the law's level off). The trim is the reference's growth minus Epoch's own. Fitted on the
+// scores after that (the stand-in's spectrum is not the reference's, so the level that scores best is not always the
+// energy match): Concert Hall +0.3 dB, and its own growth 0.1 / 0.6 / 0.2 / 0.9 dB less at 2 / 4 / 7 / 15 s and 0.3 / 0.3 dB
+// more at 33 / 70 s (refcap030's pairs and sr48 / sr96 captures, refcap182's programme and tp172d at 0.51 / 2.9 / 4 / 7 /
+// 12.8 / 33 s), Room −0.4 dB (its 1.41 s captures), Bright Hall +1.25 dB, Grit Plate −3.25 dB, Gated −2 dB (its impulse).
+// A negative ℓ: the mode keeps revision 1 (early part and level as round 190it left them).
+struct EpochLoop
+{
+    double ell, a, b, e, atDb;
+    double grow[8];
+};
+constexpr double epochLoopKnots[8] = { 0.513, 1.0, 2.0, 4.0, 7.0, 15.0, 33.0, 70.0 }; // Decay (s)
+LYNX_FIT_TABLE EpochLoop epochLoop[epoch::modeCount] = {
+    { 0.39520, 0.200, 0.800, 1.0, 0.85, { 0.00, 0.35, 1.39, 2.79, 4.78, 6.48, 10.11, 12.31 } }, // Concert Hall: 0.5605 s (0.2 + 0.8 s), N 2, c 1.41
+    { 0.18654, 0.16155, 0.83845, 1.0, -2.05, { 0.00, 0.93, 3.42, 6.14, 8.22, 10.84, 13.33, 15.50 } }, // Plate: 5100 (1 + 5.19 s) / 33850, N 5
+    { 0.13013, 0.250, 0.750, 1.0, -1.22, { 0.00, 1.76, 3.86, 5.93, 7.57, 9.72, 11.82, 13.71 } }, // Room: 26770 (0.5 + 1.5 s) / 48000, N 6, c 0.7
+    { 0.15545, 0.16155, 0.83845, 1.0, -1.68, { 0.00, 1.09, 3.60, 6.26, 8.29, 10.85, 13.28, 15.42 } }, // Chamber: as Plate, N 6
+    { 0.26899, 0.19750, 0.80250, 1.0, 1.43, { 0.00, 1.14, 3.53, 6.35, 8.53, 11.28, 13.87, 16.12 } }, // Random Space: 5100 (3 + 12.19 s) / 48000, N 6
+    { 0.26899, 0.19750, 0.80250, 1.0, 0.97, { 0.00, 1.00, 3.10, 5.71, 7.84, 10.58, 13.18, 15.44 } }, // Chorus Space: as Random Space
+    { 0.20566, 0.36630, 0.63370, 1.0, -2.95, { 0.00, 0.18, 2.39, 4.89, 6.81, 9.25, 11.59, 13.67 } }, // Ambience: 5100 (3 + 5.19 s) / 33850, N 6
+    { 0.30797, 0.200, 0.800, 1.0, -3.41, { 0.00, -2.44, -2.10, -0.65, 0.79, 2.92, 5.15, 7.22 } }, // Bright Hall: 11210 (0.2 + 0.8 s) / 18200, N 2
+    { 1.13677, 0.200, 0.800, 1.0, -2.93, { 0.00, -0.33, 0.74, 2.65, 4.39, 6.81, 9.25, 11.46 } }, // Nave ← Sanctuary: 21826 (1 + 4 s) / 48000, N 2
+    { 0.28025, 0.200, 0.800, 1.0, -2.47, { 0.00, -1.33, -1.02, 0.30, 1.65, 3.68, 5.86, 7.89 } }, // Grit Hall ← Dirty Hall: as Concert Hall, c 1
+    { 0.08252, 0.09434, 0.90566, 1.0, -0.33, { 0.00, 1.65, 4.25, 6.99, 9.06, 11.66, 14.12, 16.29 } }, // Grit Plate ← Dirty Plate: 11210 (0.8 s fs / 20000 + 0.2) / fs (48 kHz), N 6
+    { 0.47326, 0.05263, 0.94737, 1.0, -2.39, { 0.00, 0.29, 1.66, 3.60, 5.29, 7.60, 9.90, 11.97 } }, // Smooth Plate: 4250 (1 + 18 s) / 34125, N 5
+    { 0.32854, 0.07582, 0.92418, 1.0, -3.36, { 0.00, 1.43, 3.90, 6.05, 7.84, 10.21, 12.47, 14.33 } }, // Smooth Room: 5100 (1 + 12.19 s) / 34125, N 6
+    { 0.26899, 0.19750, 0.80250, 1.0, -2.55, { 0.00, 1.10, 3.35, 5.62, 7.53, 10.07, 12.52, 14.59 } }, // Smooth Space ← Smooth Random: as Random Space
+    { 0.0, 0.07582, 0.92418, 2.0, 0.43, { 0.00, -0.44, -0.36, -0.36, -2.06, -4.42, -7.61, -7.28 } }, // Gated ← Nonlin: 5100 (1 + 12.19 s²) / 34125; its gate, not the loop, sets the level
+    { -0.39438, 0.15789, 0.84211, 1.0, -3.96, { 0.00, -0.95, 0.21, 2.17, 3.87, 6.15, 8.39, 10.40 } }, // Drift Chamber ← Chaotic Chamber: 4250 (3 + 16 s) / 34125, N 6; keeps revision 1 (its test signal lost a step)
+    { 0.28025, 0.200, 0.800, 1.0, -1.57, { 0.00, -0.73, -0.13, 1.48, 3.03, 5.26, 7.56, 9.66 } }, // Drift Hall ← Chaotic Hall: as Grit Hall
+    { 0.44835, 0.11111, 0.88889, 1.0, -0.02, { 0.00, 0.96, 3.35, 6.09, 8.20, 10.87, 13.39, 15.59 } }, // Drift Space ← Chaotic Neutral: 5100 (2 + 16 s) / 34125, N 6
+    { 0.38147, 0.200, 0.800, 1.0, 1.39, { 0.00, 0.91, 1.36, 2.99, 4.45, 6.83, 9.64, 12.25 } }, // Cathedral: 30000 (0.5 + 2 s) / 32768, N 6
+    { 0.32005, 0.03125, 0.96875, 1.5, 0.43, { 0.00, -0.82, -0.12, 1.73, 3.59, 6.23, 8.84, 11.17 } }, // Grand Hall ← Palace: 61449 (0.125 + 3.875 s^1.5) / 48000, N 16
+    { 0.41550, 0.500, 0.500, 1.0, 2.93, { 0.00, 0.97, 3.13, 5.73, 7.76, 10.34, 12.79, 14.97 } }, // Vintage Chamber ← Chamber1979: 9972 (0.5 + 0.5 s) / 20000 per line, RT 1.2 × Decay
+    { 0.46667, 0.500, 0.500, 1.0, 2.33, { 0.00, -0.79, -0.33, 1.10, 2.54, 4.67, 6.91, 8.97 } }, // Vintage Hall ← Hall1984: 11200 (0.5 + 0.5 s) / 20000 per line, RT 1.2 × Decay
+};
+// the level trim (dB) of revision 1 + loopLaw for mode k at Decay T (s) and Size s (0..1): the base level, plus the
+// reference's growth from (0.513 s, 100 %) to (T, s) through its own size law, minus Epoch's own growth over Decay and Size
+double epochLoopDb (int k, double decay, double size) noexcept
+{
+    const auto& m = epochLoop[k];
+    if (m.ell <= 0.0)
+        return m.atDb;
+    const auto t = std::clamp (decay, epochLoopKnots[0], epochLoopKnots[7]);
+    const auto grow = [t] (double ell) { return -10.0 * std::log10 (std::max (1.0e-9, 1.0 - std::pow (10.0, -6.0 * ell / t))); };
+    const auto lawSize = m.a + m.b * std::pow (std::clamp (size, 0.0, 1.0), m.e);
+    // Epoch's own lines scale by 0.3 + 0.7 s, and its wet energy rises by that factor^−0.64 at any Decay (measured:
+    // +1.2 / +2.0 dB at Size 50 / 25 %, Concert Hall and Room, 0.51 … 12.8 s)
+    const auto ownSizeDb = -6.4 * std::log10 (0.3 + 0.7 * std::clamp (size, 0.0, 1.0));
+    const auto ref = grow (m.ell * lawSize) - ownSizeDb + 10.0 * std::log10 (1.0 - std::pow (10.0, -6.0 * m.ell / epochLoopKnots[0]));
+    int i = 0;
+    while (i < 6 && t > epochLoopKnots[i + 1])
+        ++i;
+    const auto f = std::log (t / epochLoopKnots[i]) / std::log (epochLoopKnots[i + 1] / epochLoopKnots[i]);
+    const auto own = m.grow[i] + (m.grow[i + 1] - m.grow[i]) * std::clamp (f, 0.0, 1.0);
+    return m.atDb + ref - own;
+}
+
 // Atrium ← ValhallaRoom's type sweep (3-point smoothed over the bands, half the 63 Hz band's; Large Room, the type of
 // every other capture, keeps its 0.1.27 voicing; Medium Room's level a compromise between its impulse (+2 dB) and its
 // test signal (−3 dB))
@@ -2286,7 +2350,11 @@ protected:
         // first 100 ms still holds), its modes sit denser low down (lines × 0.85: the −20 dB impulses and music both
         // closer), and it is 0.7 dB lower
         s.lineScale *= 0.85;
-        s.earlyLevel *= std::min (1.6, 1.13 * std::sqrt (std::max (1.0, decay / 2.0)));
+        // round 190kw (loopLaw): the reference's first 80 ms do not move with Decay (−10.65 dB at 0.51 / 7 / 33 s): the
+        // early level holds at its long-decay value
+        const auto loopLaw = p[epoch::engineLaw] >= 0.5f && p[epoch::revision] >= 0.5f && p[epoch::loopLaw] >= 0.5f
+                          && epochLoop[modeIndex].ell >= 0.0;
+        s.earlyLevel *= loopLaw ? 1.6 : std::min (1.6, 1.13 * std::sqrt (std::max (1.0, decay / 2.0)));
         s.gain *= 0.92;
         if (p[epoch::engineLaw] >= 0.5f)
             applyLaw (s, epochLaw[modeIndex]);
@@ -2295,8 +2363,19 @@ protected:
             s.revision = 1; // round 190it
             // Epoch's trims were measured at the capture's base Decay (0.51 s); its Room mode needs none at 1.41 s
             // (refcap182 S2): they fade out between the two on the decay's logarithm
-            applyTrim (s, epochTrim[modeIndex], std::clamp (std::log (1.41 / std::max (0.01, decay)) / std::log (1.41 / 0.51), 0.0, 1.0));
-            if (p[epoch::shortTrim] >= 0.5f && modeIndex == 0) // round 190ly: Concert Hall's short-decay trim
+            const auto fade = std::clamp (std::log (1.41 / std::max (0.01, decay)) / std::log (1.41 / 0.51), 0.0, 1.0);
+            if (! loopLaw)
+                applyTrim (s, epochTrim[modeIndex], fade);
+            else
+            {
+                // round 190kw: the tone trims fade as before; the level is the loop law's at every Decay and Size
+                auto tone = epochTrim[modeIndex];
+                const auto levelDb = tone.gainDb;
+                tone.gainDb = 0.0;
+                applyTrim (s, tone, fade);
+                s.gain *= std::pow (10.0, (levelDb + epochLoopDb (modeIndex, decay, size)) / 20.0);
+            }
+            if (p[epoch::shortTrim] >= 0.5f && modeIndex == 0) // round 190ly: Concert Hall's short-decay trim (tone only)
                 if (const auto w = std::clamp (std::log (epochShortEnd / std::max (0.01, decay)) / std::log (epochShortEnd / 0.51), 0.0, 1.0); w > 0.0)
                     applyTrim (s, epochShort, w);
         }

+ 4 - 1
src/core/LynxVerbs.h

@@ -172,7 +172,10 @@ constexpr int paramCount = 18;
 constexpr int engineLaw = 17; // round 190bz: 0 = the classic engine (projects saved before), 1 = the 0.1.27 law
 constexpr int revision = paramCount; // round 190it, hidden (no control, saved while non-zero): 1 = the 0.1.30 revision of
                                      //   the Measured law (new instances, translated states); 0 = projects saved before
-constexpr int shortTrim = paramCount + 1; // round 190ly, hidden (read with the engine law and revision 1): 1 = Concert Hall's
+constexpr int loopLaw = paramCount + 1; // round 190kw, hidden (read only with revision 1): 1 = the level follows the
+                                        //   reference's loop law over Decay and Size, the early part holds (new instances,
+                                        //   translated states); 0 = revision 1 as round 190it left it (projects saved before)
+constexpr int shortTrim = paramCount + 2; // round 190ly, hidden (read with the engine law and revision 1): 1 = Concert Hall's
                                           //   short-decay trim (ValhallaVintageVerb's at 0.51 s, faded out by 2.9 s; new
                                           //   instances, translated states); 0 = revision 1 as before
 constexpr int modeCount = 22;

+ 1 - 0
src/core/MasterLooks.cpp

@@ -207,6 +207,7 @@ EffectSlot limiterSlot (const Point& p, double ceilingDb)
 EffectSlot truePeakSlotOf()
 {
     auto slot = makeEffectSlot (EffectKind::apexLimiter);
+    slot.params[(std::size_t) apex::pRevision] = 0.0f; // round 190lp: the safety stage keeps the laws it was tuned on
     slot.params[(std::size_t) apex::pGain] = 0.0f;
     slot.params[(std::size_t) apex::pCeiling] = (30.0f + trueCeilingDb - truePeakMarginDb) / 30.0f; // (−30 … 0 dB)
     slot.params[(std::size_t) apex::pTruePeak] = 1.0f;

+ 352 - 16
src/core/MixSuite.cpp

@@ -4,6 +4,7 @@
 #include <atomic>
 #include <cmath>
 #include <cstdint>
+#include <cstring>
 #include <cstdio>
 #include <cstdlib>
 
@@ -2761,6 +2762,169 @@ float characterShape (int k, double drive, float x) noexcept
     return a * (softKnee (u + c.bias, c.p) - f0) / slope;
 }
 
+// ---- round 190kw: the Saturn styles' own laws (docs/PARITY.md "Round 190kw"; recovered by static analysis) ----
+namespace
+{
+struct SaturnFilter
+{
+    int type;            // 0 low pass, 2 low shelf, 3 high pass, 5 high shelf, 7 bell
+    float hz, db, q;
+    int slope;           // cuts: 0 … 6 = 6, 12, 18, 24, 30, 36, 48 dB/oct
+};
+struct SaturnStyle
+{
+    int curve;           // 0 arctan, 2 x / (1 + x), 4 tanh, 6 sine, 7 2nd-order, 8 3rd-order, 11 tube, 13 rectifier
+    float power, negScale, driveLoDb, driveHiDb, refDb, trimDb;
+    int dynamicKnee, amp, pres, posts;
+    SaturnFilter pre[4], post[4];
+};
+constexpr SaturnStyle saturnStyles[characters] {
+#include "core/EmberSaturnStyles.inc"
+};
+// the curve on t ≥ 0 (the tube curve takes the signed input)
+inline float saturnBase (int curve, float t) noexcept
+{
+    constexpr float halfPi = 1.57079632679489662f;
+    switch (curve)
+    {
+        case 0: return std::atan (halfPi * t) / halfPi;
+        case 2: return t / (1.0f + t);
+        case 4: return std::tanh (t);
+        case 6: return t < 1.0f ? std::sin (halfPi * t) : 1.0f;
+        case 7: return t < 1.0f ? t * (2.0f - t) : 1.0f;
+        case 8: return t < 1.0f ? t * (1.5f - 0.5f * t * t) : 1.0f;
+        case 11: // asymmetric: a hard positive ceiling, a softer negative side
+        {
+            if (t >= 0.32002f) return 0.62993f;
+            if (t >= -0.08905f) return t * (3.9375f - 6.153f * t);
+            if (t >= -1.75482f)
+            {
+                const auto v = -t - 0.032847f;
+                const auto w = 1.0f - v, w2 = w * w, w4 = w2 * w2;
+                return -(0.75f * (1.0f - w4 * w4 * w4) + 0.25f * v + 0.01f);
+            }
+            return -1.17545f;
+        }
+        default: return t; // 13: the rectifier's |x| (its sign dropped below)
+    }
+}
+} // namespace
+
+float saturnCurve (int s, float x) noexcept
+{
+    const auto& st = saturnStyles[std::clamp (s, 0, characters - 1)];
+    if (st.curve == 13) return std::abs (x);
+    const bool neg = x < 0.0f;
+    const auto beta = neg ? st.negScale : 1.0f;
+    if (st.curve == 11 && st.power == 1.0f && beta == 1.0f) return saturnBase (11, x);
+    auto t = beta * std::abs (x);
+    if (st.power != 1.0f) t = std::pow (t, st.power);
+    auto y = st.curve == 11 ? std::abs (saturnBase (11, neg ? -t : t)) : saturnBase (st.curve, t);
+    if (st.power != 1.0f) y = std::pow (y, 1.0f / st.power);
+    y /= beta;
+    return neg ? -y : y;
+}
+double saturnPreDb (int s, double d) noexcept
+{
+    const auto& st = saturnStyles[std::clamp (s, 0, characters - 1)];
+    return st.driveLoDb + (st.driveHiDb - st.driveLoDb) * std::clamp (d, 0.0, 1.0);
+}
+double saturnPostGain (int s, double d) noexcept
+{
+    const auto& st = saturnStyles[std::clamp (s, 0, characters - 1)];
+    const auto c = dbToGain (st.refDb), gc = dbToGain (saturnPreDb (s, d)) * c;
+    const auto span = (double) saturnCurve (s, (float) gc) - std::min ((double) saturnCurve (s, (float) -gc), 0.0);
+    return span > 1e-30 ? dbToGain (st.trimDb) * 2.0 * c / span : 1.0;
+}
+static_assert (lawRate < maxEffectParams, "Ember's hidden parameters must fit the slot");
+bool saturnLaw (const EffectParams& p) noexcept { return on (p[revision]); }
+bool saturnRaw (const EffectParams& p) noexcept { return on (p[lawRate]); }
+bool lawCharacter (int k) noexcept
+{
+    // the styles whose law scored up on the refcap030 lab files and net up on the whole bank (docs/PARITY.md "Round
+    // 190kw"; round 190lg: + Clean Tape, Gentle and Heavy Saturation, whose steady ~1 dB offset was the reference's
+    // channel soft clipper). The others keep round 150 / 152's measured characters: Power Amp and Breakdown (net level /
+    // down on the bank), the effect styles (their smudger, foldback and destroy stages were not recovered), the
+    // transformers (their dynamic knee was not recovered), Brit Rock, Smooth / Crunchy Amp and the rectifier (their EQ /
+    // curve conventions do not reproduce the reference yet)
+    static constexpr bool on[characters] { true, true, true, true, true, true, true, true, true, true, false, true,
+                                           false, false, true, true, false, true, true, true, false, false, false, false,
+                                           false, false, false, false };
+    return k >= 1 && k <= characters && on[k - 1];
+}
+// round 190lg: the reference's channel output soft clipper (found statically: a cubic 1.5u − 0.5u³ on u = clamp (k·x, ±1),
+// k = (1 / (12T²) + 2/3) / T, times T, threshold T = 0 dB): small-signal gain 1 + 1 / (8T²) = 9/8 (+1.02 dB), ceiling 0 dBFS
+// from |x| ≥ 4/3. It is the ~1 dB the law missed and the extra compression near 0 dBFS at low drive (the refcap030 level
+// sweeps of Clean / Warm Tube, Clean Tape, Gentle Saturation fit within 0.03 dB at every level and drive with it). The
+// Subtle styles and the transformers measure without it (small-signal gain exactly the compensation's, no compression).
+bool saturnClipStyle (int s) noexcept
+{
+    return ! (s == 0 || s == 4 || s == 17 || s == 20 || s == 21 || s == 22);
+}
+float saturnClip (float x) noexcept
+{
+    const auto u = std::clamp (0.75f * x, -1.0f, 1.0f);
+    return u * (1.5f - 0.5f * u * u);
+}
+
+namespace
+{
+// RBJ cookbook sections at the reference's Q (shelves with the Q form), a cut of slope index n as Butterworth sections
+// (an odd order's first-order section first) with the last pair's Q scaled by q (round 190lg: q = 1 is Butterworth, as the reference)
+int saturnSections (lynx::Biquad* out, int room, const SaturnFilter& f, double sr) noexcept
+{
+    constexpr double pi = 3.141592653589793;
+    const auto hz = std::min ((double) f.hz, 0.48 * sr);
+    const auto w = 2.0 * pi * hz / sr, cw = std::cos (w), sw = std::sin (w);
+    int n = 0;
+    auto add = [&] () -> lynx::Biquad* { return n < room ? &out[n++] : nullptr; };
+    if (f.type == 7 || f.type == 2 || f.type == 5)
+    {
+        auto* b = add();
+        if (b == nullptr) return n;
+        const auto a = std::pow (10.0, f.db / 40.0);
+        const auto alpha = sw / (2.0 * std::max ((double) f.q, 0.01));
+        if (f.type == 7)
+            b->set (1 + alpha * a, -2 * cw, 1 - alpha * a, 1 + alpha / a, -2 * cw, 1 - alpha / a);
+        else
+        {
+            const auto sq = 2.0 * std::sqrt (a) * alpha;
+            if (f.type == 5)
+                b->set (a * ((a + 1) + (a - 1) * cw + sq), -2 * a * ((a - 1) + (a + 1) * cw), a * ((a + 1) + (a - 1) * cw - sq),
+                        (a + 1) - (a - 1) * cw + sq, 2 * ((a - 1) - (a + 1) * cw), (a + 1) - (a - 1) * cw - sq);
+            else
+                b->set (a * ((a + 1) - (a - 1) * cw + sq), 2 * a * ((a - 1) - (a + 1) * cw), a * ((a + 1) - (a - 1) * cw - sq),
+                        (a + 1) + (a - 1) * cw + sq, -2 * ((a - 1) + (a + 1) * cw), (a + 1) + (a - 1) * cw - sq);
+        }
+        return n;
+    }
+    const bool high = f.type == 3;
+    static constexpr int orders[7] { 1, 2, 3, 4, 5, 6, 8 };
+    const int order = orders[std::clamp (f.slope, 0, 6)];
+    if (order % 2 == 1)
+    {
+        auto* b = add();
+        if (b == nullptr) return n;
+        const auto k = std::tan (w / 2.0);
+        if (high) b->set (1.0, -1.0, 0.0, 1.0 + k, k - 1.0, 0.0);
+        else b->set (k, k, 0.0, 1.0 + k, k - 1.0, 0.0);
+    }
+    const int pairs = order / 2;
+    for (int j = 0; j < pairs; ++j)
+    {
+        auto* b = add();
+        if (b == nullptr) return n;
+        // Butterworth pole pair j (the last one is the most resonant)
+        double q = 1.0 / (2.0 * std::cos (pi * (2.0 * (pairs - 1 - j) + 1.0 + (order % 2)) / (2.0 * order)));
+        if (j == pairs - 1) q *= (double) f.q; // round 190lg: the reference's Q 1 is the Butterworth response (was × q / √½)
+        const auto alpha = sw / (2.0 * q);
+        if (high) b->set ((1 + cw) / 2, -(1 + cw), (1 + cw) / 2, 1 + alpha, -2 * cw, 1 - alpha);
+        else b->set ((1 - cw) / 2, 1 - cw, (1 - cw) / 2, 1 + alpha, -2 * cw, 1 - alpha);
+    }
+    return n;
+}
+} // namespace
+
 namespace
 {
 // a band's character: the curve (run oversampled by the caller), its input / output gain from the drive and the EQ after
@@ -2772,13 +2936,90 @@ struct CharacterStage
     int family = 0;
     float p = 2.0f, bias = 0.0f, f0 = 0.0f, slope = 1.0f, eqGain = 1.0f;
     std::array<Biquad, 9> eq;
+    // round 190kw: the Saturn law (`sat`, set by the engine before configure): the style's EQ before and after its curve
+    bool sat = false, lastSat = false;
+    int satStyle = 0, preN = 0, postN = 0;
+    std::array<Biquad, 12> satPre, satPost;
+    // a style with a power (P ≠ 1) runs its curve from a table built at configure (two pow calls per oversampled sample
+    // cost twice the old character): |F (±a)| at 64 points per octave of a over 2^−24 … 2^16, linear between them
+    // (relative error < 3e-5), the small-signal slope below, the last value above
+    static constexpr int tableLo = -24, tableOctaves = 40, tableSteps = 64;
+    bool satTable = false;
+    std::array<std::array<float, tableOctaves * tableSteps + 1>, 2> satT {};
+    float smallPos = 1.0f, smallNeg = 1.0f;
+
+    static float tablePoint (int idx) noexcept
+    {
+        const std::uint32_t u = ((std::uint32_t) (idx / tableSteps + tableLo + 127) << 23) | ((std::uint32_t) (idx % tableSteps) << 17);
+        float a;
+        std::memcpy (&a, &u, 4);
+        return a;
+    }
+    void buildTable() noexcept
+    {
+        for (int i = 0; i <= tableOctaves * tableSteps; ++i)
+        {
+            const auto a = tablePoint (i);
+            satT[0][(std::size_t) i] = std::abs (saturnCurve (satStyle, a));
+            satT[1][(std::size_t) i] = std::abs (saturnCurve (satStyle, -a));
+        }
+        const auto a0 = tablePoint (0);
+        smallPos = satT[0][0] / a0;
+        smallNeg = satT[1][0] / a0;
+    }
+    float tableCurve (float x) const noexcept
+    {
+        const int side = x < 0.0f ? 1 : 0;
+        const auto a = std::abs (x);
+        std::uint32_t u;
+        std::memcpy (&u, &a, 4);
+        const int e = (int) (u >> 23) - 127;
+        float h;
+        if (e < tableLo) h = a * (side ? smallNeg : smallPos);
+        else if (e >= tableLo + tableOctaves) h = satT[(std::size_t) side][(std::size_t) (tableOctaves * tableSteps)];
+        else
+        {
+            const int idx = (e - tableLo) * tableSteps + (int) ((u >> 17) & (tableSteps - 1));
+            const std::uint32_t u0 = u & ~0x1ffffu, us = (std::uint32_t) (127 - e + 6) << 23; // segment start, 64 / 2^e
+            float a0, inv;
+            std::memcpy (&a0, &u0, 4);
+            std::memcpy (&inv, &us, 4);
+            const auto& t = satT[(std::size_t) side];
+            h = t[(std::size_t) idx] + (a - a0) * inv * (t[(std::size_t) idx + 1] - t[(std::size_t) idx]);
+        }
+        return side ? -h : h;
+    }
 
-    void reset() noexcept { for (auto& q : eq) q.reset(); }
+    void reset() noexcept
+    {
+        for (auto& q : eq) q.reset();
+        for (auto& q : satPre) q.reset();
+        for (auto& q : satPost) q.reset();
+    }
 
     void configure (int kk, double sr) noexcept
     {
         k = std::clamp (kk, 0, characters);
-        if (k == 0 || (k == lastK && sr == lastSr)) return;
+        sat = sat && lawCharacter (k);
+        if (k == 0 || (k == lastK && sr == lastSr && sat == lastSat)) return;
+        if (sat)
+        {
+            satStyle = k - 1;
+            const auto& st = saturnStyles[satStyle];
+            preN = postN = 0;
+            for (int i = 0; i < st.pres; ++i)
+                preN += saturnSections (satPre.data() + preN, (int) satPre.size() - preN, st.pre[i], sr);
+            for (int i = 0; i < st.posts; ++i)
+                postN += saturnSections (satPost.data() + postN, (int) satPost.size() - postN, st.post[i], sr);
+            satTable = st.power != 1.0f;
+            if (satTable && (k != lastK || sat != lastSat)) buildTable();
+            if (k != lastK || sat != lastSat) reset();
+            lastK = k;
+            lastSr = sr;
+            lastSat = sat;
+            return;
+        }
+        lastSat = false;
         const auto& c = characterTable[k - 1];
         family = c.family;
         p = c.p;
@@ -2802,6 +3043,8 @@ struct CharacterStage
     {
         const auto& c = characterTable[std::max (k, 1) - 1];
         const auto d = referenceDrive (driveDb);
+        if (sat) // round 190kw: the reference's drive range and level compensation
+            return { (float) dbToGain (saturnPreDb (satStyle, d) + extraDb), (float) saturnPostGain (satStyle, d) };
         // round 152: Collapse with the measured law — the pitch drop's own level curve (the output's rms at seven input
         // levels per drive step, fitted with the same knee: 0.02 … 0.37 dB rms) [EXEC]
         static constexpr float collapseD[6] { -1.5f, 1.5f, 11.0f, 22.0f, 35.25f, 47.0f };
@@ -2814,13 +3057,33 @@ struct CharacterStage
 
     float curve (float u) const noexcept
     {
+        if (sat) return satTable ? tableCurve (u) : saturnCurve (satStyle, u);
         if (family == 1) return std::sin (u);
         if (family == 2) return std::abs (u);
         return (softKnee (u + bias, p) - f0) / slope;
     }
 
+    // round 190kw: the law's EQ before the drive (base rate)
+    void pre (float& a, float& b) noexcept
+    {
+        for (int i = 0; i < preN; ++i)
+        {
+            a = satPre[(std::size_t) i].process (a, 0);
+            b = satPre[(std::size_t) i].process (b, 1);
+        }
+    }
+
     void post (float& a, float& b) noexcept
     {
+        if (sat)
+        {
+            for (int i = 0; i < postN; ++i)
+            {
+                a = satPost[(std::size_t) i].process (a, 0);
+                b = satPost[(std::size_t) i].process (b, 1);
+            }
+            return;
+        }
         for (int i = 0; i < sections; ++i)
         {
             a = eq[(std::size_t) i].process (a, 0);
@@ -2845,6 +3108,7 @@ struct BandExtras
     float fbLast[2] {};
     double dyn = 0.0, env = 0.0, envAtk = 0.0, envRel = 0.0;
     std::array<float, 4> lastTone { -1.0f, -1.0f, -1.0f, -1.0f };
+    int lastToneMode = 0;
     float lastFbHz = -1.0f;
     int lastFactor = 0;
 
@@ -2856,17 +3120,32 @@ struct BandExtras
         env = 0.0;
     }
 
-    void configure (const EffectParams& p, int band, double sr, int factor) noexcept
+    // toneMode (round 190kw): 0 = Ember's tone stages, 1 = the reference's band tone stack (low shelf 120 Hz, bell 600 Hz,
+    // high shelves 2.5 and 7 kHz), 2 = its amps' (170 Hz, 500 Hz, 1.5 kHz, 4.5 kHz)
+    void configure (const EffectParams& p, int band, double sr, int factor, int toneMode = 0) noexcept
     {
         std::array<float, 4> tv;
         for (int k = 0; k < 4; ++k) tv[(std::size_t) k] = p[(std::size_t) bandExtra (band, 2 + k)];
-        if (tv != lastTone)
+        if (tv != lastTone || toneMode != lastToneMode)
         {
-            tone[0].shelf (sr, 120.0, toneDb (tv[0]), false, 0.7);
-            tone[1].peaking (sr, 800.0, 0.8, toneDb (tv[1]));
-            tone[2].shelf (sr, 3500.0, toneDb (tv[2]), true, 0.7);
-            tone[3].peaking (sr, 6000.0, 1.0, toneDb (tv[3]));
+            if (toneMode == 0)
+            {
+                tone[0].shelf (sr, 120.0, toneDb (tv[0]), false, 0.7);
+                tone[1].peaking (sr, 800.0, 0.8, toneDb (tv[1]));
+                tone[2].shelf (sr, 3500.0, toneDb (tv[2]), true, 0.7);
+                tone[3].peaking (sr, 6000.0, 1.0, toneDb (tv[3]));
+            }
+            else
+            {
+                static constexpr float hz[2][4] { { 120.0f, 600.0f, 2500.0f, 7000.0f }, { 170.0f, 500.0f, 1500.0f, 4500.0f } };
+                static constexpr int types[4] { 2, 7, 5, 5 };
+                static constexpr float qs[4] { 0.415854f, 0.471405f, 0.603418f, 1.0f };
+                for (int k = 0; k < 4; ++k)
+                    saturnSections (&tone[(std::size_t) k], 1,
+                                    SaturnFilter { types[k], hz[toneMode - 1][k], (float) toneDb (tv[(std::size_t) k]), qs[k], 1 }, sr);
+            }
             lastTone = tv;
+            lastToneMode = toneMode;
         }
         toneOn = false;
         for (const auto v : tv) toneOn = toneOn || std::abs (toneDb (v)) > 1e-6;
@@ -3047,8 +3326,15 @@ public:
         classicOn = false;
         for (auto& d : bandDry)
             d.setLength (Oversampler::latency());
+        for (auto& d : rawDelay) // round 190kw
+            d.setLength (Oversampler::latency());
         for (auto& d : bandDc)
             d.set (sr, 8.0);
+        // round 190lg: the law's DC blocker at the reference's ~1.5 Hz (its DC after a loud asymmetric tube passage decays
+        // with τ ≈ 0.11 s on the refcap030 level sweeps; Ember's own 8 Hz one cut the law's lows by 0.3 dB at 31 Hz)
+        satDc.set (sr, 1.5);
+        for (auto& d : satBandDc)
+            d.set (sr, 1.5);
         splitBands = 0; // redesign the crossovers at the new rate
         lastVoice = -1;
         tapeNow = -1; // round 190fj: the tape filters at the new rate
@@ -3090,8 +3376,13 @@ public:
                 o.reset();
         for (auto& d : bandDry)
             d.reset();
+        for (auto& d : rawDelay)
+            d.reset();
         for (auto& d : bandDc)
             d.reset();
+        satDc.reset();
+        for (auto& d : satBandDc)
+            d.reset();
         for (auto& x : split) x.reset();
         for (auto& row : ap)
             for (auto& x : row) x.reset();
@@ -3228,6 +3519,7 @@ private:
         // round 135: a voicing replaces the Style menu's curve and adds its own EQ; PUNISH adds 20 dB before the drive
         // round 150: band 1's character (when set) replaces the Style menu and the voicing
         auto& chr = chars[0];
+        chr.sat = saturnLaw (p); // round 190kw
         chr.configure (characterIndex (p[characterParam (0)]), sr);
         chr.law = measuredEffects (p); // round 152
         const auto vk = chr.k > 0 ? 0 : voiceIndex (p[voice]);
@@ -3310,6 +3602,7 @@ private:
                 a = voicePre.process (a, 0);
                 b = voicePre.process (b, 1);
             }
+            if (chr.sat) chr.pre (a, b); // round 190kw: the style's EQ before its curve
             if (mtape)
             {
                 if (tapeFresh && i == 0)
@@ -3331,10 +3624,12 @@ private:
 
         // round 128: band 1's power, mute, feedback, dynamics and tone (single-band mode)
         auto& ex = extras[0];
-        ex.configure (p, 0, sr, factor);
+        ex.configure (p, 0, sr, factor, chr.sat ? 1 + saturnStyles[chr.satStyle].amp : 0);
         const bool powered = on (p[bandExtra (0, 0)]);
         const bool muted = bandState (p[bandExtra (0, 1)]) == BandState::mute;
-        if (chr.k > 0)
+        if (chr.sat && saturnRaw (p)) // round 190kw: the reference's High Quality off — the curve at the base rate
+            shapeRaw (ex, chr, rawDelay[0], wl.data(), wr.data(), n);
+        else if (chr.k > 0)
         {
             if (ex.fbGain > 0.0)
             {
@@ -3389,6 +3684,7 @@ private:
         // round 152 (with the measured law): the single band applies band 1's mix and level like the reference (before,
         // they only acted in the multiband mode)
         const bool bandLaw = measuredEffects (p);
+        const bool satClip = chr.sat && powered && saturnClipStyle (chr.satStyle); // round 190lg
         const auto bandMix = std::clamp (p[band1Mix], 0.0f, 1.0f);
         const auto bandGain = (float) dbToGain (bandLevelDb (p[band1Level]));
 
@@ -3409,8 +3705,9 @@ private:
             }
             else
             {
-                a = dc.process (wl[(std::size_t) i], 0) * compA2;
-                b = dc.process (wr[(std::size_t) i], 1) * compB;
+                auto& dcs = chr.sat ? satDc : dc; // round 190lg
+                a = dcs.process (wl[(std::size_t) i], 0) * compA2;
+                b = dcs.process (wr[(std::size_t) i], 1) * compB;
             }
             if (chr.k > 0) chr.post (a, b);
             if (collapse) pitch[0].run (a, b, cRatio); // round 152
@@ -3443,6 +3740,11 @@ private:
             if (muted) { a = 0.0f; b = 0.0f; }
             a *= panA; // round 147: the band's pan
             b *= panB;
+            if (satClip) // round 190lg: the reference's channel soft clipper
+            {
+                a = saturnClip (a);
+                b = saturnClip (b);
+            }
             l[i] = (da + (a - da) * mx) * out;
             r[i] = (db + (b - db) * mx) * out;
         }
@@ -3525,6 +3827,7 @@ private:
                 compB[(std::size_t) b] = autoOn ? autoMakeup (st[(std::size_t) b], drvB[(std::size_t) b]) : 1.0f;
             }
             // round 150: a character replaces the style's curve, its drive law and the level (no auto gain on top)
+            chars[(std::size_t) b].sat = saturnLaw (p); // round 190kw
             chars[(std::size_t) b].configure (characterIndex (p[(std::size_t) characterParam (b)]), sr);
             chars[(std::size_t) b].law = measuredEffects (p); // round 152
             if (chars[(std::size_t) b].k > 0)
@@ -3597,23 +3900,26 @@ private:
         {
             auto* bl = bandBuf[(std::size_t) b][0].data();
             auto* br = bandBuf[(std::size_t) b][1].data();
+            auto& chr = chars[(std::size_t) b];
             for (int i = 0; i < n; ++i)
             {
                 float da = bl[i], db = br[i];
                 bandDry[(std::size_t) b].process (da, db);
                 dryBand[0][(std::size_t) i] = da;
                 dryBand[1][(std::size_t) i] = db;
+                if (chr.sat) chr.pre (bl[i], br[i]); // round 190kw: the style's EQ before its curve
                 bl[i] *= drv[(std::size_t) b];
                 br[i] *= drvB[(std::size_t) b];
             }
             const auto s = st[(std::size_t) b];
             // round 128: the band's feedback, dynamics, tone, power and solo / mute
             auto& ex = extras[(std::size_t) b];
-            ex.configure (p, b, sr, factor);
-            auto& chr = chars[(std::size_t) b];
+            ex.configure (p, b, sr, factor, chr.sat ? 1 + saturnStyles[chr.satStyle].amp : 0);
             const bool collapse = chr.k == collapseCharacter && measuredEffects (p);
             const auto ratio = collapse ? collapseRatio (referenceDrive (driveDb (p[(std::size_t) bandParam (b, 1)]))) : 1.0;
-            if (chr.k > 0)
+            if (chr.sat && saturnRaw (p)) // round 190kw: the reference's High Quality off — the curve at the base rate
+                shapeRaw (ex, chr, rawDelay[(std::size_t) b], bl, br, n);
+            else if (chr.k > 0)
             {
                 if (ex.fbGain > 0.0)
                 {
@@ -3650,7 +3956,8 @@ private:
             const bool silent = state == BandState::mute || (anySolo && state != BandState::solo);
             for (int i = 0; i < n; ++i)
             {
-                auto wa = bandDc[(std::size_t) b].process (bl[i], 0) * k, wb = bandDc[(std::size_t) b].process (br[i], 1) * kB;
+                auto& dcb = chr.sat ? satBandDc[(std::size_t) b] : bandDc[(std::size_t) b]; // round 190lg
+                auto wa = dcb.process (bl[i], 0) * k, wb = dcb.process (br[i], 1) * kB;
                 if (chr.k > 0) chr.post (wa, wb);
                 if (collapse) pitch[(std::size_t) b].run (wa, wb, ratio); // round 152
                 if (post) ex.post (wa, wb, dryBand[0][(std::size_t) i], dryBand[1][(std::size_t) i]);
@@ -3671,6 +3978,7 @@ private:
             }
         }
 
+        const bool satClip = chars[0].sat && on (p[bandExtra (0, 0)]) && saturnClipStyle (chars[0].satStyle); // round 190lg
         for (int i = 0; i < n; ++i)
         {
             auto a = tiltHi.process (tiltLo.process (wl[(std::size_t) i], 0), 0);
@@ -3682,6 +3990,11 @@ private:
             }
             float da = l[i], db = r[i];
             dry.process (da, db);
+            if (satClip) // round 190lg: the reference's channel soft clipper on the bands' sum (band 1's style decides)
+            {
+                a = saturnClip (a);
+                b = saturnClip (b);
+            }
             l[i] = (da + (a - da) * mx) * out;
             r[i] = (db + (b - db) * mx) * out;
         }
@@ -3740,6 +4053,26 @@ private:
         }
     }
 
+    // round 190kw: a law band's curve at the base rate (the reference's High Quality off), delayed like the oversampled
+    // path so the dry / wet alignment and the latency stay the same
+    void shapeRaw (BandExtras& ex, const CharacterStage& chr, Delay2<256>& d, float* a, float* b, int n) noexcept
+    {
+        if (ex.fbGain > 0.0)
+            for (int i = 0; i < n; ++i)
+            {
+                a[i] = ex.feedbackShape ([&chr] (float u) noexcept { return chr.curve (u); }, a[i], 0);
+                b[i] = ex.feedbackShape ([&chr] (float u) noexcept { return chr.curve (u); }, b[i], 1);
+                d.process (a[i], b[i]);
+            }
+        else
+            for (int i = 0; i < n; ++i)
+            {
+                a[i] = chr.curve (a[i]);
+                b[i] = chr.curve (b[i]);
+                d.process (a[i], b[i]);
+            }
+    }
+
     static constexpr int maxBlock = 2048;
     // level compensation: the RMS gain of the curve on a −12 dBFS sine at this drive, inverted
     static float autoMakeup (Style s, float drv) noexcept
@@ -3843,10 +4176,13 @@ private:
     std::array<std::array<Oversampler, 2>, maxBands> bandOs;
     std::array<Delay2<256>, maxBands> bandDry;
     std::array<OnePoleHp, maxBands> bandDc;
+    OnePoleHp satDc;                                // round 190lg: the law bands' DC blocker (1.5 Hz)
+    std::array<OnePoleHp, maxBands> satBandDc;
     std::array<std::array<std::array<float, maxBlock>, 2>, maxBands> bandBuf {};
     std::array<std::array<float, maxBlock>, 2> dryBand {};
     std::array<BandExtras, maxBands> extras;
     std::array<CharacterStage, maxBands> chars; // round 150
+    std::array<Delay2<256>, maxBands> rawDelay;  // round 190kw: the law's base-rate path (lawRate)
     // round 152: linear phase, the modulation, the pitch drop
     std::array<lynx::peqfl::FftConvolver, maxBands - 1> linConv;
     std::vector<float> linTable;

+ 25 - 1
src/core/MixSuite.h

@@ -510,8 +510,32 @@ enum Param
     // speed losses fitted black-box on the reference tape saturator's renders) in the single-band mode, and the tape
     // speed it runs at (30, 15, 7½, 3¾, 1⅞ ips; 15 by default). Classic = the tape curve of round 108 … 190, bit for bit.
     law, tapeSpeed,
-    count
+    count,
+    // round 190kw, hidden (not in the info: no control, no text; saved while non-zero): the Saturn styles' own laws
+    // (docs/PARITY.md "Round 190kw", recovered by static analysis of the reference): a band whose character is one of
+    // the reference's styles runs its curve, its drive range with the reference's level compensation and its own EQ
+    // before / after the curve (core/EmberSaturnStyles.inc), and its tone stack. A new Ember and a translated Saturn 2
+    // state get 1; a project or preset saved before keeps 0 (round 150's measured characters, bit for bit).
+    // `lawRate` 1 = the reference's High Quality "Off": those bands run their curve at the base rate (no oversampling,
+    // the same latency); 0 = Ember's Oversampling.
+    revision = count,
+    lawRate
 };
+// round 190kw: the Saturn law (`revision`). Ember's Drive keeps its scale (0 … +36 dB); the reference's normalised drive
+// is referenceDrive (driveDb) = 1.2 × the parameter value (the translator's value = 30 / 36 × the reference's drive)
+bool saturnLaw (const EffectParams& p) noexcept;
+bool saturnRaw (const EffectParams& p) noexcept;   // lawRate: the base rate for the law's bands
+bool lawCharacter (int k) noexcept;                // character k (1 … 28) runs the law (the effect styles keep round 150's)
+// the reference style s's (0 … 27) transfer curve with its power and negative-side scale (no gains)
+float saturnCurve (int s, float x) noexcept;
+double saturnPreDb (int s, double referenceDrive) noexcept;   // the gain before the curve (dB): lo + (hi − lo) · drive
+// the level compensation after the curve: 10^(trim / 20) · 2C / (F (G·C) − min (F (−G·C), 0)), C = 10^(ref / 20): a
+// sine at the style's reference level keeps its peak-to-peak level
+double saturnPostGain (int s, double referenceDrive) noexcept;
+// round 190lg: the reference's channel output soft clipper (threshold 0 dB, small-signal gain 9/8) and the styles it
+// measures on (all but the Subtle ones and the transformers)
+bool saturnClipStyle (int s) noexcept;
+float saturnClip (float x) noexcept;
 constexpr int tapeSpeeds = 5;
 int tapeSpeedIndex (float v) noexcept;          // 0 … 4 = 30, 15, 7½, 3¾, 1⅞ ips
 const char* tapeSpeedName (int k) noexcept;

+ 21 - 3
src/core/PluginSubstitutes.cpp

@@ -10,6 +10,7 @@
 #include <map>
 #include <mutex>
 
+#include "core/ApexLimiter.h"
 #include "core/Effects.h"
 #include "core/FabFilterStates.h"
 #include "core/FacetEq.h"
@@ -308,9 +309,9 @@ lynx = Echoform
 vst3 = 64545356614c7679616c68616c6c6164
 names = ValhallaDelay
 mix = 1
-# round 190ly: the ValhallaDelay role's loop laws (Echoform's hidden valhallaLaw, #109): diffusion inside the echo time,
+# round 190ly: the ValhallaDelay role's loop laws (Echoform's hidden valhallaLaw, #110 — after round 190kw's lineLaw #109): diffusion inside the echo time,
 # the measured loop gain over Feedback. Only a translated ValhallaDelay runs them
-replaced = #109=1
+replaced = #110=1
 map = xml:Mix -> Mix
 # styles: Single, Dual, Ratio, PingPong, Quad onto Echoform's order (Single, Ratio, Quad, Dual, Ping-pong)
 map = xml:DelayStyle -> Style | steps 0:0.1 0.19:0.7 0.39:0.3 0.59:0.9 0.79:0.5
@@ -435,8 +436,16 @@ map = xml:DelaySync -> Delay sync
 [fabfilter-timeless]
 product = FabFilter Timeless
 vendor = FabFilter
-lynx = Fruity Delay 3
+# round 190kw: LYNX's multi-mode echo (was Fruity Delay 3 at FL's default, 2.37 / 10 on refcap030's Timeless 3 bank): a
+# Timeless 3 state (component state "FFBS", 1007 values) is translated onto Echoform's Clean mode with the line law
+# measured on the reference (hidden #109: its dry / wet law, read filter and wide limit): delay time / sync / time pan,
+# feedback (ping pong, pan, cross mix), mix, stereo width, wet level / pan, the filters in use, drive, diffuse, freeze
+# (docs/PARITY.md "Round 190kw"). Without a readable state (Timeless 2): the reference's default, a single 350 ms echo
+# without feedback at Mix 50 % (the dry at unity)
+lynx = Echoform
 names = FabFilter Timeless 2; FabFilter Timeless 3; Timeless 2; Timeless 3
+translate = timeless3
+preset = Mode=0.541667; Style=0.1; Sync L=0; Sync R=0; Time L=0.35; Time R=0.35; Feedback=0; Mix=0.5; Width=1; Low cut=0.002764; High cut=1; Age=0; Mod depth=0; Wow=0; Flutter=0; Drive=0; #109=1
 
 # ---------------------------------------------------------------- limiters -> Limiter (ceiling -0.3 dB)
 [waves-l-series]
@@ -4403,6 +4412,15 @@ const SubstituteEntry* findPluginSubstitute (const PluginIdentity& plugin, bool
 EffectSlot makeSubstituteSlot (const SubstituteEntry& entry, const PluginIdentity* original, int* translated)
 {
     auto slot = makeEffectSlot (entry.effect);
+    // round 190kw: the substitutes' Crest settings were measured on the fitted laws: they keep revision 0 (the Pro-C 3
+    // translator, applied below, sets 1)
+    if (slot.kind == EffectKind::crestCompressor)
+        slot.params[(std::size_t) dyn::crest::revision] = 0.0f;
+    // round 190lp: … and their Apex settings the laws before the styles' refit (the Pro-L 2 translator sets 1)
+    if (slot.kind == EffectKind::apexLimiter)
+        slot.params[(std::size_t) apex::pRevision] = 0.0f;
+    if (slot.kind == EffectKind::sentryGate)
+        slot.params[(std::size_t) dyn::sentry::revision] = 0.0f;
     for (const auto& [index, value] : entry.preset)
         if (index >= 0 && index < maxEffectParams)
             slot.params[(std::size_t) index] = value;

+ 7 - 3
src/core/PluginSubstitutes.h

@@ -10,9 +10,13 @@
 // What stands in for what is DATA: a text table (built in, extendable with registerPluginSubstitutes) of entries
 // that name the third-party product (VST2 unique IDs, VST3 class IDs, CLAP ids, plugin / file names, Waves shell
 // sub-plugin names), the LYNX effect, a default preset and, where the saved state is readable, a parameter map.
-// Parameter maps only use layouts that are visible in the saved data itself (VST2 float parameters, the attributes of
-// a JUCE XML state, Waves' "RealWorld" parameter lists) and meanings known from public documentation or our own
-// black-box measurements; never decompiled third-party code. Without a readable state the default preset is used.
+// Parameter maps use layouts that are visible in the saved data itself (VST2 float parameters, the attributes of a
+// JUCE XML state, Waves' "RealWorld" parameter lists) and meanings known from public documentation or our own
+// black-box measurements. Since 2026-11, by the project owner's decision, some stand-ins and translators (e.g. the
+// FabFilter roles of round 190kw onwards) were also informed by clean-room static analysis of the third-party
+// binaries: their laws and structure were described in our own words and LYNX's code was written from that
+// description. No third-party code, tables, presets or other content is copied, and licence protections are never
+// bypassed. The evidence for each case is in docs/analise/REA_*.md. Without a readable state the default preset is used.
 //
 // Does not depend on JUCE so it can be tested in isolation.
 

+ 1 - 0
src/core/ReferenceMatch.h

@@ -429,6 +429,7 @@ inline std::vector<EffectSlot> chain (const Suggestion& s)
     eq.params = s.eq;
     eq.presetName = slotName;
     auto limiter = makeEffectSlot (EffectKind::apexLimiter);
+    limiter.params[(std::size_t) apex::pRevision] = 0.0f; // round 190lp: the stage keeps the laws it was tuned on
     limiter.params[apex::pGain] = 0.0f;
     limiter.params[apex::pCeiling] = detail::valueFor ([] (float v) { return apex::ceilingDb (v); }, s.ceilingDb);
     limiter.params[apex::pTruePeak] = 1.0f;

+ 2 - 0
tests/Dyn190dmTests.inc

@@ -31,6 +31,8 @@ inline Render render (const Case& c)
         slot.params[(std::size_t) k] = v;
     if (c.kind == lynx::EffectKind::hushDeEsser) // round 190js: a new Hush runs Single Vocal's revision; the base commit had none
         slot.params[(std::size_t) lynx::mixsuite::hush::vocalRevision] = 0.0f;
+    if (c.kind == lynx::EffectKind::sentryGate) // round 190lp: … and a new Sentry the level gate's refit (revision 1)
+        slot.params[(std::size_t) lynx::dyn::sentry::revision] = 0.0f;
     auto fx = lynx::makeEffect (slot);
     fx->prepare (sr);
     const int n = (int) (1.5 * sr), block = 256;

+ 4 - 1
tests/DynamicsTests108.inc

@@ -589,6 +589,7 @@ TEST (dyn108_sentry_gate_curves_and_timing)
     };
     p = defaults (EffectKind::sentryGate);
     p[s::hold] = 0.0f;
+    p[s::revision] = 0.0f; // round 190lp: revision 0's measured closing (Parity190lpLgTests covers revision 1)
     const auto c6 = closeAfter (p, -6.0), c20 = closeAfter (p, -20.0);
     std::printf ("  Classic closing: -6 dB after %.0f ms (39), -20 dB after %.0f ms (147)\n", c6, c20);
     CHECK (c6 > 25.0 && c6 < 60.0 && c20 > 95.0 && c20 < 220.0);
@@ -719,7 +720,9 @@ TEST (dyn108_fabfilter_states_translate_to_the_suite)
         old.state = ffbs (90, { { 1, -40.0f } });
         int none = -1;
         const auto slot3 = makeSubstituteSlot (*entry, &old, &none);
-        CHECK (none == 0 && slot3.params == makeEffectSlot (EffectKind::crestCompressor).params);
+        auto plainCrest = makeEffectSlot (EffectKind::crestCompressor);
+        plainCrest.params[(std::size_t) dyn::crest::revision] = 0.0f; // round 190kw: a substitute's untranslated Crest keeps revision 0
+        CHECK (none == 0 && slot3.params == plainCrest.params);
 
         // the substitute keeps the original plugin, state byte for byte
         EffectSlot fl;

+ 5 - 1
tests/LynxVerbTests100.inc

@@ -174,7 +174,11 @@ TEST (lynxverbs100_onsets_levels_and_stereo)
         classic[(std::size_t) lynx::verbs::epoch::engineLaw] = 0.0f;
         const auto was = energyDb (impulse (EffectKind::epochVerb, classic, 4.0), 0, 4800);
         CHECK (std::abs (was - (-3.1)) < 1.5);
-        CHECK (energyDb (hall, 0, 4800) - was > 0.5 && energyDb (hall, 0, 4800) - was < 4.5);
+        // (revision 1 of the measured law: round 190kw's loop law moves the level with Decay, round 190kw's own test)
+        auto measured = p;
+        measured[(std::size_t) lynx::verbs::epoch::loopLaw] = 0.0f;
+        const auto now = energyDb (impulse (EffectKind::epochVerb, measured, 4.0), 0, 4800);
+        CHECK (now - was > 0.5 && now - was < 4.5);
     }
     double lr = 0, ll = 0, rr = 0;
     for (std::size_t i = 0; i < 48000; ++i)

+ 1 - 0
tests/Parity128aTests.inc

@@ -54,6 +54,7 @@ TEST (parity128a_apex_new_controls)
     CHECK (p[pAttack] == 0.0f && p[pLinkRelease] == 0.0f && p[pDither] == 0.0f && p[pUnity] == 0.0f && p[pAudition] == 0.0f && p[pDcFilter] == 0.0f);
     p[pGain] = 12.0f / 30.0f;
     p[pRelease] = releaseValue (300.0);
+    p[pRevision] = 0.0f; // round 190lp: these are revision 0's laws (Parity190lpLgTests covers revision 1)
     const int n = (int) sr * 2;
     std::vector<float> l0, r0;
     signal (l0, r0, n, sr);

+ 1 - 0
tests/Parity147Tests.inc

@@ -158,6 +158,7 @@ TEST (prism_old_projects_keep_classic_dynamic_round147)
     auto crest = makeEffectSlot (EffectKind::crestCompressor);
     auto before = crest.params;
     before[(std::size_t) dyn::crest::law] = 0.0f;
+    before[(std::size_t) dyn::crest::revision] = 0.0f; // round 190kw: … and the V1 / V2 styles' revision
     upgradeLoadedEffectParams (crest, 3);
     CHECK (crest.params == before);
 }

+ 1 - 0
tests/Parity150bTests.inc

@@ -107,6 +107,7 @@ TEST (ember_characters_match_the_measured_styles_round150b)
     using namespace lynx;
     namespace em = mixsuite::ember;
     auto p = makeEffectSlot (EffectKind::ember).params;
+    p[em::revision] = 0.0f; // round 190kw: round 150's measured characters (a new Ember runs the Saturn law)
     // [EXEC] the trial, 1 kHz sine: the fundamental's gain (dB) at a level for (style, drive %) — D:\lynx-work\parity150\b\an1.json
     struct Case { int style; double drive, inDb, gainDb; };
     // (an1.json's amplitudes read 1.76 dB high — the energy of five Hann bins — corrected here)

+ 1 - 0
tests/Parity190arApexTests.inc

@@ -33,6 +33,7 @@ inline double peakDb (const std::vector<float>& y, double from, double to)
 inline EffectParams settings (double thresholdDb, double attackMs = 9.0)
 {
     auto p = defaults (EffectKind::apexLimiter);
+    p[ap::pRevision] = 0.0f; // round 190lp: round 190ar's laws (a new Apex runs revision 1)
     p[ap::pLevelThreshold] = (float) (-thresholdDb / 36.0);
     p[ap::pLevelAttack] = (float) (std::log (attackMs / 0.1) / std::log (1000.0));
     p[ap::pRelease] = ap::releaseValue (300.0);

+ 2 - 1
tests/Parity190arTranslateTests.inc

@@ -60,7 +60,8 @@ TEST (p190ar_fitted_maps_leave_unknown_states_alone)
     using namespace lynx;
     // a reference of the same role without a map, and a mapped one whose state carries none of the mapped entries:
     // the substitute stays at its defaults (the entry's preset), nothing is half applied
-    const auto plain = makeEffectSlot (EffectKind::crestCompressor);
+    auto plain = makeEffectSlot (EffectKind::crestCompressor);
+    plain.params[(std::size_t) dyn::crest::revision] = 0.0f; // round 190kw: the substitutes' Crest keeps revision 0
     int n = -1;
     auto s = p190artr::slotFor ("VBC FG-Red", "<package version=\"1.0\"><entry id=\"Threshold\" type=\"float64\" value=\"0.3\"/></package>", &n);
     CHECK (s.kind == EffectKind::crestCompressor && n == 0 && s.params == plain.params);

+ 4 - 4
tests/Parity190itTests.inc

@@ -88,10 +88,10 @@ TEST (parity190it_revisions_are_hidden_new_instances_run_them_old_projects_do_no
         CHECK (effectInfo (kind).params.size() == (std::size_t) rev); // hidden: no new control, no new string
         auto s = makeEffectSlot (kind);
         CHECK (s.params[(std::size_t) rev] == 1.0f);
-        // saved, since it is not zero (round 190ln: Foil Plate's REA law, one further, is saved with it; round 190ly: Epoch
-        // Verb's short-decay trim likewise, while Atrium's dense law is set only by the ValhallaRoom translator, so a new
-        // Atrium saves the revision only)
-        CHECK (savedEffectParamCount (s) == (std::size_t) rev + (kind == EffectKind::foilPlate || kind == EffectKind::epochVerb ? 2 : 1));
+        // saved, since it is not zero (round 190ln: Foil Plate's REA law, one further, is saved with it; round 190kw: Epoch's
+        // loop law and round 190ly: its Concert Hall short-decay trim, two further, likewise; Atrium's dense law is set only by
+        // the ValhallaRoom translator, so a new Atrium saves the revision only)
+        CHECK (savedEffectParamCount (s) == (std::size_t) rev + (kind == EffectKind::epochVerb ? 3 : kind == EffectKind::foilPlate ? 2 : 1));
         auto now = s;
         upgradeLoadedEffectParams (now, (std::size_t) rev + 1);
         CHECK (now.params[(std::size_t) rev] == 1.0f);

+ 3 - 3
tests/Parity190jhTests.inc

@@ -74,9 +74,9 @@ TEST (parity190jh_facet_auto_threshold_is_hidden_and_off_in_old_projects)
     using namespace lynx;
     const auto& info = effectInfo (EffectKind::facetEq);
     CHECK (info.params.size() == (std::size_t) facet::paramCount);          // hidden: no new control or string
-    // (round 190ln: three more hidden parameters after them, the all-pass cascade of the Disperser role)
-    CHECK (facet::autoThresholdParam0 == facet::paramCount && facet::dispersionCountParam == facet::paramCount + facet::bands + 1
-           && facet::storedParamCount == facet::dispersionCountParam + 3);
+    // (+ round 190lg's revision [125]; round 190ln: three more hidden parameters after it, the all-pass cascade of the Disperser role)
+    CHECK (facet::autoThresholdParam0 == facet::paramCount && facet::autoRevisionParam == facet::paramCount + facet::bands
+           && facet::dispersionCountParam == facet::paramCount + facet::bands + 1 && facet::storedParamCount == facet::dispersionCountParam + 3);
     auto s = makeEffectSlot (EffectKind::facetEq);
     for (int b = 0; b < facet::bands; ++b)
         CHECK (! facet::autoThreshold (s.params, b));

+ 5 - 1
tests/Parity190ktTests.inc

@@ -68,7 +68,11 @@ TEST (parity190kt_crest_console_law_is_hidden_and_off_for_new_and_old_crests)
     const auto& info = effectInfo (EffectKind::crestCompressor);
     CHECK (info.params.size() == (std::size_t) cr::count && cr::busLaw == cr::count); // hidden: no control, no string
     auto s = makeEffectSlot (EffectKind::crestCompressor);
-    CHECK (s.params[(std::size_t) cr::busLaw] == 0.0f && savedEffectParamCount (s) <= (std::size_t) cr::count);
+    // (190mb merge, as the rollup's step 8: a new Crest has round 190kw's revision 1, the last hidden parameter, so it
+    // saves up to there)
+    CHECK (s.params[(std::size_t) cr::busLaw] == 0.0f && savedEffectParamCount (s) == (std::size_t) cr::revision + 1);
+    s.params[(std::size_t) cr::revision] = 0.0f; // (as every Crest saved before round 190kw)
+    CHECK (savedEffectParamCount (s) <= (std::size_t) cr::count);
     s.params[(std::size_t) cr::busLaw] = 1.0f;
     CHECK (savedEffectParamCount (s) == (std::size_t) cr::busLaw + 1);
 }

+ 18 - 0
tests/Parity190kwGold.inc

@@ -0,0 +1,18 @@
+        { 0.0f, 0.0f, 0.0f, 0.5f, 0.600000024f, 0.25f, 0.680000007f, 0.550000012f, 48000.0, 0x7cecb9d969dd5283ull },
+        { 0.0f, 0.600000024f, 0.0f, 0.400000006f, 0.699999988f, 0.0f, 0.5f, 0.400000006f, 44100.0, 0xa64f3416bb1ef4edull },
+        { 0.0f, 0.699999988f, 0.0f, 0.600000024f, 0.5f, 0.5f, 0.600000024f, 0.600000024f, 96000.0, 0xdafa9c5143bea385ull },
+        { 0.0f, 0.800000012f, 0.0f, 0.5f, 0.600000024f, 0.25f, 0.680000007f, 0.550000012f, 48000.0, 0xda3578fdc572e0f5ull },
+        { 0.0f, 0.899999976f, 0.0f, 0.5f, 0.600000024f, 0.25f, 0.400000006f, 0.550000012f, 48000.0, 0x5500a8621d4bcdf4ull },
+        { 0.0f, 0.200000003f, 0.0f, 0.5f, 0.800000012f, 0.100000001f, 0.300000012f, 0.300000012f, 44100.0, 0x7265813a6ffe7066ull },
+        { 0.0f, 1.0f, 0.0f, 0.5f, 0.600000024f, 0.25f, 0.680000007f, 0.550000012f, 48000.0, 0xd4167ec2507d5326ull },
+        { 0.0f, 0.100000001f, 1.0f, 0.5f, 0.600000024f, 0.25f, 0.680000007f, 0.550000012f, 48000.0, 0x4e7985c01806e0aaull },
+        { 0.0f, 0.100000001f, 0.0f, 0.5f, 0.600000024f, 0.25f, 0.680000007f, 0.550000012f, 48000.0, 0x4037e9ad90954ffbull },
+        { 1.0f, 0.0f, 0.0f, 0.5f, 0.600000024f, 0.25f, 0.680000007f, 0.550000012f, 48000.0, 0x27552246cb181ac4ull },
+        { 1.0f, 0.600000024f, 0.0f, 0.400000006f, 0.699999988f, 0.0f, 0.5f, 0.400000006f, 44100.0, 0xc278d31b459da6b7ull },
+        { 1.0f, 0.699999988f, 0.0f, 0.600000024f, 0.5f, 0.5f, 0.600000024f, 0.600000024f, 96000.0, 0x71398ffc03760435ull },
+        { 1.0f, 0.800000012f, 0.0f, 0.5f, 0.600000024f, 0.25f, 0.680000007f, 0.550000012f, 48000.0, 0x31a599db28460c4bull },
+        { 1.0f, 0.899999976f, 0.0f, 0.5f, 0.600000024f, 0.25f, 0.400000006f, 0.550000012f, 48000.0, 0x41933211e76c53e4ull },
+        { 1.0f, 0.200000003f, 0.0f, 0.5f, 0.800000012f, 0.100000001f, 0.300000012f, 0.300000012f, 44100.0, 0xaad4c5fd89c62925ull },
+        { 1.0f, 1.0f, 0.0f, 0.5f, 0.600000024f, 0.25f, 0.680000007f, 0.550000012f, 48000.0, 0x7817e6da649db768ull },
+        { 1.0f, 0.100000001f, 1.0f, 0.5f, 0.600000024f, 0.25f, 0.680000007f, 0.550000012f, 48000.0, 0x052d7a22269127e1ull },
+        { 1.0f, 0.100000001f, 0.0f, 0.5f, 0.600000024f, 0.25f, 0.680000007f, 0.550000012f, 48000.0, 0xbb0a41bc5bbd00dfull }, // round 190lg: Versatile under revision 1

+ 10 - 0
tests/Parity190kwSatGold.inc

@@ -0,0 +1,10 @@
+        { 1, -1, 0.300000012f, 0.5f, 48000.0, 0x198ada899ada1eebull, 4980.6962089 },
+        { 3, -1, 0.600000024f, 0.0f, 44100.0, 0x1df5495481857660ull, 2984.42395804 },
+        { 9, -1, 0.5f, 1.0f, 96000.0, 0x32fff963c20b2f34ull, 541.686222772 },
+        { 13, -1, 0.800000012f, 0.5f, 48000.0, 0x396a169750bc8640ull, 447.15893047 },
+        { 17, -1, 0.400000006f, 0.5f, 44100.0, 0xacd5c80b77a8e079ull, 1957.84350051 },
+        { 21, -1, 0.699999988f, 0.5f, 48000.0, 0x737ca20b97b9e486ull, 4981.3172318 },
+        { 25, -1, 0.5f, 0.5f, 48000.0, 0x65d1e9a2f0c52cc2ull, 375.488745152 },
+        { 27, -1, 0.899999976f, 0.5f, 96000.0, 0x3a6db5f068d06833ull, 4979.64990184 },
+        { 6, 15, 0.5f, 0.5f, 48000.0, 0xdb1a91adc8b39100ull, 1346.37046035 },
+        { 0, -1, 0.5f, 0.5f, 48000.0, 0xc5beb14d89f7043full, 2551.97420237 },

+ 235 - 0
tests/Parity190kwSatTests.inc

@@ -0,0 +1,235 @@
+// Round 190kw (Saturn 2 -> Ember): Ember's characters that are the reference's styles run the reference's own laws when
+// the hidden revision is on (/mnt/e/lynx-work/rea190kw/sat/HANDOFF.md; docs/PARITY.md "Round 190kw").
+// - Each style = a curve (arctan, x / (1 + x), tanh, sine, 2nd / 3rd order, tube, rectifier) with a power and a negative-side
+//   scale, a drive range (pre-gain lo … hi dB over the reference's 0 … 100 %) and the level compensation that keeps a sine
+//   at the style's reference level at its peak-to-peak level, its EQ before / after the curve and the band tone stack.
+// - New Ember and translated Saturn 2 states get the revision; a project saved before keeps round 150's characters bit for
+//   bit (fingerprints below: revision 0 renders the same bytes as the base commit d9bfc68ce's, checked with fxrender).
+#include <cmath>
+#include <cstdint>
+#include <cstring>
+
+#include "core/Effects.h"
+#include "core/MixSuite.h"
+
+namespace parity190kwSat
+{
+namespace em = lynx::mixsuite::ember;
+// a 220 Hz tone with a 3.1 kHz partial, rising from -40 to 0 dBFS over the render, and a decaying noise burst each 0.4 s
+inline void signal (std::vector<float>& l, std::vector<float>& r, double sr)
+{
+    unsigned s = 4711u;
+    const int n = (int) l.size();
+    for (int i = 0; i < n; ++i)
+    {
+        const double t = i / sr;
+        s = s * 1664525u + 1013904223u;
+        const double nz = (double) (s >> 8) / 8388608.0 - 1.0;
+        const double lvl = std::pow (10.0, (-40.0 + 40.0 * t / ((double) n / sr)) / 20.0);
+        const double ph = std::fmod (t, 0.4);
+        const double v = lvl * (0.8 * std::sin (2.0 * M_PI * 220.0 * t) + 0.2 * std::sin (2.0 * M_PI * 3100.0 * t))
+                         + 0.1 * nz * std::exp (-ph * 40.0);
+        l[(std::size_t) i] = (float) v;
+        r[(std::size_t) i] = (float) (0.8 * v);
+    }
+}
+inline void render (const lynx::EffectSlot& s, double sr, std::vector<float>& l, std::vector<float>& r)
+{
+    auto fx = lynx::makeEffect (s);
+    fx->prepare (sr);
+    const int n = (int) l.size();
+    for (int off = 0; off < n; off += 256)
+        fx->process (l.data() + off, r.data() + off, std::min (256, n - off), s.params, 120.0);
+}
+} // namespace parity190kwSat
+
+TEST (parity190kw_ember_saturn_law_is_hidden_new_and_translated_run_it_old_projects_do_not)
+{
+    using namespace lynx;
+    namespace em = mixsuite::ember;
+    const auto& info = effectInfo (EffectKind::ember);
+    CHECK (info.params.size() == (std::size_t) em::count && em::revision == em::count && em::lawRate == em::count + 1);
+    auto s = makeEffectSlot (EffectKind::ember);
+    CHECK (s.params[(std::size_t) em::revision] == 1.0f && s.params[(std::size_t) em::lawRate] == 0.0f);
+    CHECK (savedEffectParamCount (s) == (std::size_t) em::revision + 1);
+    auto now = s;
+    upgradeLoadedEffectParams (now, (std::size_t) em::revision + 1);
+    CHECK (now.params[(std::size_t) em::revision] == 1.0f);
+    auto old = s; // saved before the round: round 150's characters
+    upgradeLoadedEffectParams (old, (std::size_t) em::count);
+    CHECK (old.params[(std::size_t) em::revision] == 0.0f);
+    // a translated Saturn 2 state: the revision, and High Quality off -> the law's curve at the base rate
+    for (const float hq : { 0.0f, 1.0f, 2.0f })
+    {
+        PluginIdentity id;
+        id.name = "FabFilter Saturn 2";
+        std::vector<std::pair<int, float>> v { { 5, 100.0f }, { 6, 1.0f }, { 7 + 3, 12.0f }, { 7 + 4, 0.4f }, { 7 + 10, 100.0f },
+                                               { 7 + 13, 1.0f }, { 7 + 15, 5.322f }, { 7 + 16, 2.0f }, { 698, hq } };
+        id.state = dyn108::ffbs (951, v);
+        const auto* entry = findPluginSubstitute (id, false);
+        CHECK (entry != nullptr);
+        if (entry == nullptr) return;
+        const auto t = makeSubstituteSlot (*entry, &id);
+        CHECK (t.kind == EffectKind::ember && em::saturnLaw (t.params));
+        CHECK (em::characterIndex (t.params[(std::size_t) em::characterParam (0)]) == 13);
+        CHECK (em::saturnRaw (t.params) == (hq == 0.0f));
+        // the drive: the reference's normalised value, reversibly
+        CHECK (std::abs (em::referenceDrive (em::driveDb (t.params[(std::size_t) em::drive])) - 0.4) < 1e-6);
+    }
+}
+
+TEST (parity190kw_ember_saturn_curves_drive_and_level_laws)
+{
+    using namespace lynx;
+    namespace em = mixsuite::ember;
+    constexpr double halfPi = 1.5707963267948966;
+    // arctan with a negative-side scale (style 12: B = 0.2)
+    for (const float x : { 0.1f, 0.7f, 3.0f })
+    {
+        CHECK (std::abs (em::saturnCurve (12, x) - std::atan (halfPi * x) / halfPi) < 1e-6);
+        CHECK (std::abs (em::saturnCurve (12, -x) + std::atan (halfPi * 0.2 * x) / halfPi / 0.2) < 1e-6);
+    }
+    // 3rd order (style 6) and 2nd order (style 7): their polynomial up to 1, flat above
+    CHECK (std::abs (em::saturnCurve (6, 0.5f) - 0.6875f) < 1e-6 && em::saturnCurve (6, 2.0f) == 1.0f);
+    CHECK (std::abs (em::saturnCurve (7, -0.5f) + 0.75f) < 1e-6 && em::saturnCurve (7, -3.0f) == -1.0f);
+    // the tube curve: continuous at its breakpoints, the hard positive ceiling, the softer negative floor
+    for (const float u : { 0.32002f, -0.08905f, -1.75482f })
+        CHECK (std::abs (em::saturnCurve (2, u - 1e-4f) - em::saturnCurve (2, u + 1e-4f)) < 2e-3);
+    CHECK (std::abs (em::saturnCurve (2, 5.0f) - 0.62993f) < 1e-6 && std::abs (em::saturnCurve (2, -5.0f) + 1.17545f) < 1e-6);
+    // the power (style 13: P = 0.8, B = 0.75): y = sign (x) f ((B|x|)^P)^(1/P) / B
+    CHECK (std::abs (em::saturnCurve (13, 0.5f) - std::pow (std::atan (halfPi * std::pow (0.5, 0.8)) / halfPi, 1.25)) < 1e-5);
+    // the rectifier
+    CHECK (em::saturnCurve (26, -0.3f) == 0.3f);
+    // the drive range and the level compensation: a sine at the reference level keeps its peak-to-peak level
+    CHECK (std::abs (em::saturnPreDb (5, 0.5) - 9.0) < 1e-9 && std::abs (em::saturnPreDb (14, 1.0) - 87.0) < 1e-9);
+    for (int st = 0; st < em::characters; ++st)
+        for (const double d : { 0.0, 0.3, 1.0 })
+        {
+            const auto g = std::pow (10.0, em::saturnPreDb (st, d) / 20.0);
+            const auto post = em::saturnPostGain (st, d);
+            CHECK (std::isfinite (post) && post > 0.0 && g > 0.0);
+        }
+    // CleanTape (style 5: the sine curve, reference level -18 dBFS): post · (F (G C) − min (F (−G C), 0)) = 2 C
+    {
+        const double c = std::pow (10.0, -18.0 / 20.0), g = std::pow (10.0, em::saturnPreDb (5, 0.6) / 20.0);
+        const double span = em::saturnCurve (5, (float) (g * c)) - std::min ((double) em::saturnCurve (5, (float) (-g * c)), 0.0);
+        CHECK (std::abs (em::saturnPostGain (5, 0.6) * span - 2.0 * c) < 1e-6);
+    }
+    // through Ember: Subtle Tape (style 4: the sine curve, no EQ of its own, reference level -10 dBFS) keeps a 1 kHz sine at
+    // its reference level at that level, at any drive
+    for (const float drive : { 0.2f, 0.5f, 0.8f })
+    {
+        auto s = makeEffectSlot (EffectKind::ember);
+        s.params[(std::size_t) em::characterParam (0)] = 5.0f / (float) em::characters;
+        s.params[(std::size_t) em::drive] = drive;
+        CHECK (em::lawCharacter (5) && em::lawCharacter (6) && ! em::lawCharacter (27)); // round 190lg: + Clean Tape
+        const double sr = 48000.0, a = std::pow (10.0, -10.0 / 20.0);
+        const int n = (int) (0.5 * sr);
+        std::vector<float> l ((std::size_t) n), r ((std::size_t) n);
+        for (int i = 0; i < n; ++i) l[(std::size_t) i] = r[(std::size_t) i] = (float) (a * std::sin (2.0 * M_PI * 1000.0 * i / sr));
+        parity190kwSat::render (s, sr, l, r);
+        float lo = 1e9f, hi = -1e9f;
+        for (int i = n / 2; i < n; ++i) { lo = std::min (lo, l[(std::size_t) i]); hi = std::max (hi, l[(std::size_t) i]); }
+        CHECK (std::abs (20.0 * std::log10 ((hi - lo) / (2.0 * a))) < 0.3);
+    }
+}
+
+TEST (parity190kw_ember_revision0_renders_as_the_base_commit_did)
+{
+    using namespace lynx;
+    namespace em = mixsuite::ember;
+    struct Case
+    {
+        int character, character2;
+        float drive, quality;
+        double sr;
+        std::uint64_t hash;
+        double energy;
+    };
+    // 1.6 s of parity190kwSat::signal in blocks of 256: FNV-1a of the float bits and the energy, revision 0 (a project saved
+    // before the round). Taken with the round's objects; fxrender renders of the same settings through the base commit's
+    // and the round's binaries are byte-identical (/mnt/e/lynx-work/rea190kw/sat/ident.sh: 0 of 48 files differ)
+    const Case cases[] = {
+#include "tests/Parity190kwSatGold.inc"
+    };
+    for (const auto& c : cases)
+    {
+        auto s = makeEffectSlot (EffectKind::ember);
+        s.params[(std::size_t) em::revision] = 0.0f;
+        s.params[(std::size_t) em::drive] = c.drive;
+        s.params[(std::size_t) em::quality] = c.quality;
+        s.params[(std::size_t) em::characterParam (0)] = (float) c.character / (float) em::characters;
+        if (c.character2 >= 0)
+        {
+            s.params[(std::size_t) em::bands] = 1.0f / 3.0f;
+            s.params[(std::size_t) em::characterParam (1)] = (float) c.character2 / (float) em::characters;
+            s.params[(std::size_t) em::bandParam (1, 1)] = c.drive;
+        }
+        const int n = (int) (1.6 * c.sr);
+        std::vector<float> l ((std::size_t) n), r ((std::size_t) n);
+        parity190kwSat::signal (l, r, c.sr);
+        parity190kwSat::render (s, c.sr, l, r);
+        std::uint64_t h = 1469598103934665603ull;
+        double e = 0.0;
+        for (int i = 0; i < n; ++i)
+            for (const float v : { l[(std::size_t) i], r[(std::size_t) i] })
+            {
+                std::uint32_t u;
+                std::memcpy (&u, &v, 4);
+                for (int b = 0; b < 4; ++b) { h ^= (u >> (8 * b)) & 0xffu; h *= 1099511628211ull; }
+                e += (double) v * v;
+            }
+       #if defined(__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 43))
+        CHECK (h == c.hash); // the libm the fingerprints were taken with
+       #endif
+        CHECK (std::abs (e - c.energy) < 1e-6 * c.energy + 1e-9);
+    }
+}
+
+namespace parity190kwSat
+{
+// the gain (dB) of a law band at small signal: a sine of `hz` at −40 dBFS through Ember (rms of the last half vs the input's)
+inline double sineGainDb (const lynx::EffectSlot& s, double hz, double dbfs = -40.0, double sr = 48000.0)
+{
+    const int n = (int) (1.2 * sr);
+    const double a = std::pow (10.0, dbfs / 20.0) * std::sqrt (2.0);
+    std::vector<float> l ((std::size_t) n), r ((std::size_t) n);
+    for (int i = 0; i < n; ++i) l[(std::size_t) i] = r[(std::size_t) i] = (float) (a * std::sin (2.0 * M_PI * hz * i / sr));
+    render (s, sr, l, r);
+    double e = 0.0;
+    for (int i = n / 2; i < n; ++i) e += (double) l[(std::size_t) i] * l[(std::size_t) i];
+    return 10.0 * std::log10 (e / (n - n / 2)) - 20.0 * std::log10 (a / std::sqrt (2.0));
+}
+} // namespace parity190kwSat
+
+TEST (parity190lg_ember_saturn_channel_clipper_butterworth_cuts_and_dc)
+{
+    using namespace lynx;
+    namespace em = mixsuite::ember;
+    // the reference's channel soft clipper (threshold 0 dB): small-signal slope 9/8, ceiling 1 from |x| = 4/3, odd, smooth
+    CHECK (std::abs (em::saturnClip (1e-4f) / 1e-4f - 1.125f) < 1e-4f);
+    CHECK (em::saturnClip (4.0f / 3.0f) == 1.0f && em::saturnClip (3.0f) == 1.0f && em::saturnClip (-3.0f) == -1.0f);
+    CHECK (std::abs (em::saturnClip (0.5f) + em::saturnClip (-0.5f)) < 1e-7f);
+    CHECK (std::abs (em::saturnClip (4.0f / 3.0f - 1e-3f) - 1.0f) < 1e-5f);
+    // it acts on every style but the Subtle ones and the transformers (measured on the refcap030 level sweeps)
+    for (const int st : { 0, 4, 17, 20, 21, 22 }) CHECK (! em::saturnClipStyle (st));
+    for (const int st : { 1, 2, 3, 5, 6, 7, 18, 19 }) CHECK (em::saturnClipStyle (st));
+    const auto slot = [] (int style, float referenceDrive) {
+        auto s = makeEffectSlot (EffectKind::ember);
+        s.params[(std::size_t) em::characterParam (0)] = (float) (style + 1) / (float) em::characters;
+        s.params[(std::size_t) em::drive] = referenceDrive * 30.0f / 36.0f;
+        s.params[(std::size_t) em::lawRate] = 1.0f; // the reference's High Quality off
+        return s;
+    };
+    // Clean Tape at drive 0: the reference's small-signal gain is 1.1268 (+1.04 dB) at −39 dBFS (the compensation's
+    // 1.0016 × the clipper's 9/8); Subtle Tape: its trim alone (+0.1 dB)
+    CHECK (std::abs (parity190kwSat::sineGainDb (slot (5, 0.0f), 1000.0) - 1.04) < 0.06);
+    CHECK (std::abs (parity190kwSat::sineGainDb (slot (4, 0.0f), 1000.0) - 0.10) < 0.06);
+    // the cut filters' Q 1 is Butterworth: Warm Tube at 25 %, 16 kHz vs 1 kHz small-signal gain (the reference's third
+    // octaves: +2.35 vs +1.79 dB; with the old resonant Q 1 the law gave +5.1 vs +0.6)
+    const auto wt = slot (2, 0.25f);
+    CHECK (std::abs (parity190kwSat::sineGainDb (wt, 16000.0) - parity190kwSat::sineGainDb (wt, 1000.0) - 0.56) < 0.5);
+    // the law's DC blocker at 1.5 Hz: Subtle Tape (no EQ of its own) loses < 0.05 dB at 31 Hz against 1 kHz
+    const auto stp = slot (4, 0.5f);
+    CHECK (std::abs (parity190kwSat::sineGainDb (stp, 31.0) - parity190kwSat::sineGainDb (stp, 1000.0)) < 0.05);
+}

+ 178 - 0
tests/Parity190kwTests.inc

@@ -0,0 +1,178 @@
+// Round 190kw: static REA of the references (docs/analise/REA_rodada190kw.md; lab /mnt/e/lynx-work/rea190kw/).
+// - Crest Compressor's revision 1 (hidden `crest::revision`): the reference's own laws for Clean / Classic / Opto (the
+//   reduction smoothed by each style's two-stage follower, its Bézier knee shape, its attack / release scaling) and for
+//   Vocal / Mastering / Bus / Punch / Pumping (the generic gain computer + followers, wired as the reference wires them).
+//   A new Crest and a translated Pro-C 3 state run it; a project or preset saved before keeps 0 = the base, bit for bit
+//   (fingerprints: tests/Parity190kwGold.inc; the base commit's fxrender renders the same paths byte-identically, gold/gold.sh).
+#include <cmath>
+#include <cstdint>
+#include <cstring>
+
+#include "core/DynamicsSuite.h"
+#include "core/Effects.h"
+#include "core/FabFilterStates.h"
+
+namespace parity190kw
+{
+namespace cr = lynx::dyn::crest;
+// the gold input (as gold/gold.cpp): a 220 Hz tone + noise in 0.3 s steps of −40 … −5 dBFS, right at 0.8 × left
+inline void signal (std::vector<float>& l, std::vector<float>& r, double sr)
+{
+    unsigned s = 4242u;
+    for (std::size_t i = 0; i < l.size(); ++i)
+    {
+        const double t = (double) i / sr;
+        s = s * 1664525u + 1013904223u;
+        const double nz = (double) (s >> 8) / 8388608.0 - 1.0;
+        const int k = (int) (t / 0.3);
+        const double lvl = std::pow (10.0, (-40.0 + 7.0 * (k % 6)) / 20.0);
+        const double v = lvl * (0.7 * std::sin (2.0 * M_PI * 220.0 * t) + 0.3 * nz);
+        l[i] = (float) v;
+        r[i] = (float) (0.8 * v);
+    }
+}
+inline std::uint64_t fnv (const std::vector<float>& a, const std::vector<float>& b)
+{
+    std::uint64_t h = 1469598103934665603ull;
+    for (const auto* v : { &a, &b })
+        for (float x : *v)
+        {
+            std::uint32_t u;
+            std::memcpy (&u, &x, 4);
+            for (int k = 0; k < 4; ++k)
+            {
+                h ^= (u >> (8 * k)) & 0xffu;
+                h *= 1099511628211ull;
+            }
+        }
+    return h;
+}
+inline void render (const lynx::EffectSlot& s, double sr, std::vector<float>& l, std::vector<float>& r)
+{
+    auto fx = lynx::makeEffect (s);
+    fx->prepare (sr);
+    const int n = (int) l.size();
+    for (int off = 0; off < n; off += 256)
+        fx->process (l.data() + off, r.data() + off, std::min (256, n - off), s.params, 120.0);
+}
+inline lynx::EffectSlot crest (float style, float voicing, float thr, float ratio, float knee, float att, float rel, float rev)
+{
+    auto s = lynx::makeEffectSlot (lynx::EffectKind::crestCompressor);
+    s.params[(std::size_t) cr::style] = style;
+    s.params[(std::size_t) cr::voicing] = voicing;
+    s.params[(std::size_t) cr::threshold] = thr;
+    s.params[(std::size_t) cr::ratio] = ratio;
+    s.params[(std::size_t) cr::knee] = knee;
+    s.params[(std::size_t) cr::attack] = att;
+    s.params[(std::size_t) cr::release] = rel;
+    s.params[(std::size_t) cr::revision] = rev;
+    return s;
+}
+// the settled gain (dB) on a square wave (|x| constant, so the detector's level is steady) of `inDb` dBFS
+inline double settledGainDb (lynx::EffectSlot s, double inDb, double seconds = 4.0)
+{
+    s.params[(std::size_t) cr::autoGain] = 0.0f;
+    const double sr = 48000.0;
+    std::vector<float> l ((std::size_t) (sr * seconds)), r;
+    const auto a = (float) std::pow (10.0, inDb / 20.0);
+    for (std::size_t i = 0; i < l.size(); ++i)
+        l[i] = (i / 24) % 2 == 0 ? a : -a;
+    r = l;
+    render (s, sr, l, r);
+    double peak = 0.0;
+    for (std::size_t i = l.size() - 4800; i < l.size(); ++i)
+        peak = std::max (peak, (double) std::abs (l[i]));
+    return 20.0 * std::log10 (peak) - inDb;
+}
+inline bool near (double a, double b, double tol) { return std::abs (a - b) <= tol; }
+} // namespace parity190kw
+
+TEST (parity190kw_crest_revision_is_hidden_new_and_translated_run_it_old_projects_do_not)
+{
+    using namespace lynx;
+    namespace cr = dyn::crest;
+    const auto& info = effectInfo (EffectKind::crestCompressor);
+    // hidden: no control, no string (190mb merge: after 190kt's busLaw)
+    CHECK (info.params.size() == (std::size_t) cr::count && cr::revision == cr::busLaw + 1);
+    auto s = makeEffectSlot (EffectKind::crestCompressor);
+    CHECK (s.params[(std::size_t) cr::revision] == 1.0f && savedEffectParamCount (s) == (std::size_t) cr::revision + 1);
+    auto old = s;
+    upgradeLoadedEffectParams (old, (std::size_t) cr::revision); // saved before this round: the fitted laws
+    CHECK (old.params[(std::size_t) cr::revision] == 0.0f);
+    auto now = s;
+    upgradeLoadedEffectParams (now, (std::size_t) cr::revision + 1);
+    CHECK (now.params[(std::size_t) cr::revision] == 1.0f);
+    // a Pro-C 3 state (FFBS v1, 100 values; style 0 = Clean) translates with the revision on
+    fabfilter::State st;
+    st.named = false;
+    st.version = 1;
+    st.count = 100;
+    st.values.assign (100, 0.0f);
+    st.values[1] = -18.0f;
+    st.values[4] = 0.6f;
+    st.values[5] = 18.0f;
+    st.values[6] = 60.0f;
+    st.values[7] = 0.4f;
+    st.values[8] = 0.5f;
+    st.values[26] = 0.5f;
+    auto t = makeEffectSlot (EffectKind::crestCompressor);
+    t.params[(std::size_t) cr::revision] = 0.0f;
+    CHECK (fabfilter::fromProC3 (st, t) > 0);
+    CHECK (t.params[(std::size_t) cr::revision] == 1.0f);
+}
+
+TEST (parity190kw_crest_fingerprints_old_projects_bit_identical_revision_1_pinned)
+{
+    struct Case { float rev, style, voicing, threshold, ratio, knee, attack, release; double sr; std::uint64_t hash; };
+    static const Case cases[] {
+#include "Parity190kwGold.inc"
+    };
+    for (const auto& c : cases)
+    {
+        std::vector<float> l ((std::size_t) (c.sr * 2.0)), r (l.size());
+        parity190kw::signal (l, r, c.sr);
+        parity190kw::render (parity190kw::crest (c.style, c.voicing, c.threshold, c.ratio, c.knee, c.attack, c.release, c.rev), c.sr, l, r);
+        CHECK (parity190kw::fnv (l, r) == c.hash);
+    }
+}
+
+TEST (parity190kw_crest_v1_and_v2_static_laws)
+{
+    using namespace lynx;
+    namespace cr = dyn::crest;
+    // threshold −30 dB (0.5), ratio 4, hard knee, range 60, a steady −10 dBFS square: overshoot 20 dB
+    const auto r4 = cr::ratioValue (4.0);
+    // Clean, Opto, Punch, Bus: the plain curve, 20 · (1 − 1/4) = 15 dB down
+    for (float style : { cr::styleValue (cr::Style::clean), cr::styleValue (cr::Style::opto), cr::styleValue (cr::Style::punch),
+                         cr::styleValue (cr::Style::bus) })
+        CHECK (parity190kw::near (parity190kw::settledGainDb (parity190kw::crest (style, 0.0f, 0.5f, r4, 0.0f, 0.3f, 0.3f, 1.0f), -10.0), -15.0, 0.1));
+    // Classic: the feedback design whose reduction is the sum of its two stages: 2 · 20 · 3 / 7 = 17.14 dB
+    CHECK (parity190kw::near (parity190kw::settledGainDb (parity190kw::crest (cr::styleValue (cr::Style::classic), 0.0f, 0.5f, r4, 0.0f, 0.3f, 0.3f, 1.0f), -10.0, 8.0),
+                -2.0 * 20.0 * 3.0 / 7.0, 0.15));
+    // Vocal: its own curve, no ratio: 20 log10 (1 + |x| (10^(30/20) − 1)) at |x| = −10 dBFS = 20.4 dB
+    CHECK (parity190kw::near (parity190kw::settledGainDb (parity190kw::crest (cr::styleValue (cr::Style::vocal), 0.0f, 0.5f, r4, 0.0f, 0.3f, 0.3f, 1.0f), -10.0, 8.0),
+                -20.0 * std::log10 (1.0 + std::pow (10.0, -0.5) * (std::pow (10.0, 1.5) - 1.0)), 0.15));
+    // revision 0 keeps the fitted Clean (its own knee offsets: not the plain 15 dB)
+    CHECK (std::abs (parity190kw::settledGainDb (parity190kw::crest (cr::styleValue (cr::Style::clean), 0.0f, 0.5f, r4, 0.0f, 0.3f, 0.3f, 0.0f), -10.0) + 15.0) > 0.2);
+}
+
+TEST (parity190kw_crest_editor_curve_follows_the_revision)
+{
+    using namespace lynx;
+    namespace cr = dyn::crest;
+    const auto r4 = cr::ratioValue (4.0);
+    const auto curve = [&] (cr::Style st, float rev, double in) {
+        return cr::staticGainDb (parity190kw::crest (cr::styleValue (st), 0.0f, 0.5f, r4, 0.0f, 0.3f, 0.3f, rev).params, in);
+    };
+    // the editor's static curve is the law that runs: −10 dBFS against −30 dB, 4 : 1, hard knee
+    for (auto st : { cr::Style::clean, cr::Style::opto, cr::Style::punch, cr::Style::bus, cr::Style::pumping })
+        CHECK (parity190kw::near (curve (st, 1.0f, -10.0), -15.0, 0.01));
+    CHECK (parity190kw::near (curve (cr::Style::classic, 1.0f, -10.0), -2.0 * 20.0 * 3.0 / 7.0, 0.01));
+    CHECK (parity190kw::near (curve (cr::Style::vocal, 1.0f, -10.0),
+                              -20.0 * std::log10 (1.0 + std::pow (10.0, -0.5) * (std::pow (10.0, 1.5) - 1.0)), 0.01));
+    // and the settled render agrees with it
+    CHECK (parity190kw::near (parity190kw::settledGainDb (parity190kw::crest (cr::styleValue (cr::Style::classic), 0.0f, 0.5f, r4, 0.0f, 0.3f, 0.3f, 1.0f), -10.0, 8.0),
+                              curve (cr::Style::classic, 1.0f, -10.0), 0.15));
+    // revision 0 keeps the fitted curve (unchanged for projects saved before)
+    CHECK (! parity190kw::near (curve (cr::Style::clean, 0.0f, -10.0), -15.0, 0.2));
+}

+ 225 - 0
tests/Parity190kwTl3Tests.inc

@@ -0,0 +1,225 @@
+// Round 190kw (Timeless 3 translator): FabFilter Timeless 3 states on Echoform (/mnt/e/lynx-work/rea190kw/tl3).
+// - Echoform gets a hidden line law (past the info's parameters, no control, no text; saved while non-zero): the clean
+//   digital line measured on refcap030's Timeless 3 captures (its dry / wet law, a short linear-phase read filter, a wide
+//   soft limit, whole-sample delays). Only a translated Timeless 3 state sets it; every project saved before keeps 0.
+// - The [fabfilter-timeless] substitute plays Echoform (was Fruity Delay 3 at FL's default) and translates the FFBS state.
+#include <cmath>
+#include <cstdint>
+#include <cstring>
+
+#include "core/EchoSuite.h"
+#include "core/Effects.h"
+#include "core/FabFilterStates.h"
+#include "core/PluginSubstitutes.h"
+
+namespace parity190kwtl3
+{
+// a Timeless 3 component state: FFBS v1, 1007 values at the reference's defaults (350 ms, feedback 0, mix 50 %, width
+// 100 %, filters unused at 75.6 kHz / Clean / 12 dB/oct, wet level 1), then the given values
+inline std::vector<float> defaults()
+{
+    std::vector<float> v (1007, 0.0f);
+    v[0] = 0.29334f;
+    for (std::size_t k = 0; k < 15; ++k)
+    {
+        v[8 + 5 * k] = 1.0f;
+        v[9 + 5 * k] = 0.5f;
+    }
+    v[82] = v[83] = 1.0f;
+    for (std::size_t k = 0; k < 6; ++k)
+    {
+        v[90 + 9 * k] = 16.2064f;
+        v[94 + 9 * k] = 10.0f;
+        v[96 + 9 * k] = v[97 + 9 * k] = 1.0f;
+    }
+    v[157] = v[158] = 1.0f;
+    return v;
+}
+inline std::vector<std::uint8_t> ffbs (const std::vector<float>& values)
+{
+    std::vector<std::uint8_t> b { 'F', 'F', 'B', 'S' };
+    auto put = [&b] (std::uint32_t u) {
+        for (int i = 0; i < 4; ++i)
+            b.push_back ((std::uint8_t) (u >> (8 * i)));
+    };
+    put (1);
+    put ((std::uint32_t) values.size());
+    for (const auto v : values)
+    {
+        std::uint32_t u;
+        std::memcpy (&u, &v, 4);
+        put (u);
+    }
+    return b;
+}
+inline lynx::EffectSlot substitute (const std::vector<std::uint8_t>& state, int& translated)
+{
+    lynx::PluginIdentity id;
+    id.format = lynx::ForeignPlugin::Format::vst3;
+    id.name = "FabFilter Timeless 3";
+    id.state = state;
+    const auto* entry = lynx::findPluginSubstitute (id, false);
+    CHECK (entry != nullptr);
+    translated = 0;
+    return entry != nullptr ? lynx::makeSubstituteSlot (*entry, &id, &translated) : lynx::EffectSlot {};
+}
+inline float at (const lynx::EffectSlot& s, int k) { return s.params[(std::size_t) k]; }
+// the left channel's impulse response (an impulse of `amp` on both sides at sample 0)
+inline std::vector<float> impulse (const lynx::EffectSlot& s, double sr, int n, float amp = 0.5f)
+{
+    auto fx = lynx::makeEffect (s);
+    fx->prepare (sr);
+    fx->reset();
+    std::vector<float> l ((std::size_t) n, 0.0f), r ((std::size_t) n, 0.0f);
+    l[0] = r[0] = amp;
+    for (int off = 0; off < n; off += 512)
+        fx->process (l.data() + off, r.data() + off, std::min (512, n - off), s.params, 120.0);
+    return l;
+}
+} // namespace parity190kwtl3
+
+TEST (parity190kw_echoform_line_law_is_hidden_off_by_default_and_reset_on_older_projects)
+{
+    using namespace lynx;
+    namespace e = echosuite::echoform;
+    const auto& info = effectInfo (EffectKind::echoform);
+    CHECK (info.params.size() == (std::size_t) e::paramCount); // no new control or string
+    CHECK (e::lineLaw == e::revision + 1 && e::lineLaw < maxEffectParams);
+    auto s = makeEffectSlot (EffectKind::echoform);
+    CHECK (s.params[(std::size_t) e::lineLaw] == 0.0f);
+    CHECK (savedEffectParamCount (s) <= (std::size_t) e::revision + 1); // nothing new saved for a plain Echoform
+    s.params[(std::size_t) e::lineLaw] = 1.0f;
+    CHECK (savedEffectParamCount (s) == (std::size_t) e::lineLaw + 1);
+    // a project saved before (its parameters end before the line law) loads without it
+    auto old = s;
+    upgradeLoadedEffectParams (old, (std::size_t) e::revision + 1);
+    CHECK (old.params[(std::size_t) e::lineLaw] == 0.0f);
+    auto kept = s;
+    upgradeLoadedEffectParams (kept, (std::size_t) e::lineLaw + 1);
+    CHECK (kept.params[(std::size_t) e::lineLaw] == 1.0f);
+}
+
+TEST (parity190kw_timeless3_delay_time_law)
+{
+    using lynx::fabfilter::timeless3DelayMs;
+    // the reference's own points (display texts and echo positions, refcap030)
+    CHECK (std::abs (timeless3DelayMs (0.0f) - 5.0) < 1e-6);
+    CHECK (std::abs (timeless3DelayMs (0.2f) - 174.8125) < 0.01);
+    CHECK (std::abs (timeless3DelayMs (0.247028f) - 249.979) < 0.01);
+    CHECK (std::abs (timeless3DelayMs (0.29334f) - 350.0) < 0.01);
+    CHECK (std::abs (timeless3DelayMs (0.361589f) - 500.0) < 0.01);
+    CHECK (std::abs (timeless3DelayMs (0.5f) - 804.19) < 0.01);
+    CHECK (std::abs (timeless3DelayMs (0.8f) - 3176.81) < 0.01);
+    CHECK (std::abs (timeless3DelayMs (1.0f) - 5000.0) < 1e-3);
+    double last = 0.0;
+    for (int i = 0; i <= 1000; ++i) // monotone in between
+    {
+        const auto ms = timeless3DelayMs ((float) i / 1000.0f);
+        CHECK (ms >= last);
+        last = ms;
+    }
+}
+
+TEST (parity190kw_timeless3_state_is_translated_onto_echoform)
+{
+    using namespace lynx;
+    namespace e = echosuite::echoform;
+    using namespace parity190kwtl3;
+    int n = 0;
+    // S3 of refcap030: 500 ms, feedback 60 %, width 0 %, mix 40 %
+    auto v = defaults();
+    v[0] = 0.361589f;
+    v[85] = 0.6f;
+    v[157] = 0.0f;
+    v[160] = -0.2f;
+    const auto s = substitute (ffbs (v), n);
+    CHECK (s.kind == EffectKind::echoform && n > 0);
+    CHECK (e::modeOf (at (s, e::mode)) == e::Mode::clean && e::styleOf (at (s, e::style)) == e::Style::single);
+    CHECK (std::abs (e::timeMs (at (s, e::timeL)) - 500.0) < 0.05 && std::abs (e::timeMs (at (s, e::timeR)) - 500.0) < 0.05);
+    CHECK (e::syncKind (at (s, e::syncL)) == 0);
+    CHECK (std::abs (e::feedbackGain (at (s, e::feedback)) - 0.6) < 1e-6); // the loop gain is the feedback
+    CHECK (std::abs (at (s, e::mix) - 0.4f) < 1e-6f);
+    CHECK (std::abs (at (s, e::width) - 0.5f) < 1e-6f);                    // 0 % = mono echoes
+    CHECK (at (s, e::lineLaw) == 1.0f && at (s, e::age) == 0.0f && at (s, e::modDepth) == 0.0f && at (s, e::drive) == 0.0f);
+    CHECK (std::abs (e::lowCutHz (at (s, e::lowCut)) - 15.5) < 0.01 && at (s, e::highCut) == 1.0f);
+    // ping pong L-R / R-L: the feedback per hop (Echoform's ping-pong loops √gain per side)
+    v = defaults();
+    v[6] = 2.0f;
+    v[85] = 0.4f;
+    const auto p = substitute (ffbs (v), n);
+    CHECK (e::styleOf (at (p, e::style)) == e::Style::pingPong && at (p, e::startSide) == 1.0f && at (p, e::pairs) == 0.0f);
+    CHECK (std::abs (std::sqrt (e::feedbackGain (at (p, e::feedback))) - 0.4) < 1e-6);
+    // a filter in use: low pass 2 kHz (shape 0) -> the high cut, high pass 120 Hz (shape 1) -> the low cut; unused ones
+    // (every capture's, whatever their frequency) change nothing
+    v = defaults();
+    v[90] = (float) std::log2 (2000.0);
+    v[90 + 8] = 1.0f;
+    v[99] = (float) std::log2 (120.0);
+    v[99 + 5] = 1.0f;
+    v[99 + 8] = 1.0f;
+    v[108] = (float) std::log2 (300.0); // filter 3 unused
+    v[108 + 5] = 1.0f;
+    const auto f = substitute (ffbs (v), n);
+    CHECK (std::abs (e::lowCutHz (at (f, e::lowCut)) - 120.0) < 0.5);
+    const auto hc = at (f, e::highCut);
+    CHECK (hc < 0.8f && std::abs (e::highCutHz (hc) * 0.5 - 2000.0) < 15.0); // the measured high cut: a one-pole at half its label
+    // synced to 1/8 note (sync index 3), offset 100 %
+    v = defaults();
+    v[3] = 3.0f;
+    const auto y = substitute (ffbs (v), n);
+    CHECK (e::syncKind (at (y, e::syncL)) == 1 && e::noteIndex (at (y, e::noteL)) == 3 && std::abs (e::sideMs (y.params, false, 120.0) - 250.0) < 1e-6);
+}
+
+TEST (parity190kw_timeless3_unknown_layouts_keep_the_preset)
+{
+    using namespace lynx;
+    namespace e = echosuite::echoform;
+    using namespace parity190kwtl3;
+    int n = 0;
+    auto v = defaults();
+    v.resize (1006); // another layout (Timeless 2, another version): not translated
+    v[0] = 0.8f;
+    const auto s = substitute (ffbs (v), n);
+    CHECK (s.kind == EffectKind::echoform && n == 0);
+    // the entry's preset: the reference's default, a single 350 ms echo, no feedback, mix 50 %, the line law
+    CHECK (std::abs (e::timeMs (at (s, e::timeL)) - 350.0) < 0.01 && e::feedbackGain (at (s, e::feedback)) == 0.0);
+    CHECK (std::abs (at (s, e::mix) - 0.5f) < 1e-6f && at (s, e::lineLaw) == 1.0f && e::modeOf (at (s, e::mode)) == e::Mode::clean);
+    // and a direct call on the wrong kind or layout changes nothing
+    const auto st = fabfilter::parseState (ffbs (v));
+    CHECK (st.has_value());
+    auto slot = makeEffectSlot (EffectKind::echoform);
+    const auto before = slot.params;
+    CHECK (fabfilter::fromTimeless3 (*st, slot) == 0 && slot.params == before);
+    const auto ok = fabfilter::parseState (ffbs (defaults()));
+    auto delay3 = makeEffectSlot (EffectKind::fruityDelay3);
+    const auto d3 = delay3.params;
+    CHECK (fabfilter::fromTimeless3 (*ok, delay3) == 0 && delay3.params == d3);
+}
+
+TEST (parity190kw_line_law_echo_dry_at_unity_whole_samples_and_the_feedback_per_pass)
+{
+    using namespace lynx;
+    using namespace parity190kwtl3;
+    int n = 0;
+    // S1 of refcap030: 250 ms (0.247028 = 249.979 ms: 11999 samples at 48 kHz), feedback 50 %, mix 50 %
+    auto v = defaults();
+    v[0] = 0.247028f;
+    v[85] = 0.5f;
+    const auto s = substitute (ffbs (v), n);
+    const auto h = impulse (s, 48000.0, 48000);
+    CHECK (std::abs (h[0] - 0.5f) < 2e-3f); // the dry at unity (the read filter's taps reach it only through the echo)
+    const auto energy = [&h] (int c) {
+        double e = 0.0;
+        for (int i = c - 40; i <= c + 40; ++i)
+            e += (double) h[(std::size_t) i] * h[(std::size_t) i];
+        return std::sqrt (e) / 0.5;
+    };
+    int peak = 1000;
+    for (int i = 1000; i < 20000; ++i)
+        if (std::abs (h[(std::size_t) i]) > std::abs (h[(std::size_t) peak]))
+            peak = i;
+    CHECK (peak == 11999);
+    CHECK (std::abs (h[(std::size_t) peak] / 0.5f - 0.916f) < 0.01f); // the reference's first echo: 0.9159 of the impulse
+    CHECK (std::abs (energy (11999) - 0.929) < 0.01);                 // … and its energy 0.9287 (the read filter)
+    CHECK (std::abs (20.0 * std::log10 (energy (2 * 11999) / energy (11999)) - 20.0 * std::log10 (0.5 * 0.9618)) < 0.3);
+}

+ 108 - 0
tests/Parity190kwVvTests.inc

@@ -0,0 +1,108 @@
+// Round 190kw (VintageVerb → Epoch): Epoch Verb's level follows the reference's loop law (static REA of
+// ValhallaVintageVerb, docs/analise/REA_rodada190kw.md; docs/PARITY.md "Round 190kw (VintageVerb → Epoch)"). A hidden step
+// past round 190it's revision, `verbs::epoch::loopLaw` (no control, no string, saved while non-zero): a new instance and a
+// translated state run it; a project saved before loads 0 and renders as the base commit did (fingerprints below).
+#include <cmath>
+#include <cstdint>
+#include <cstring>
+
+#include "core/Effects.h"
+#include "core/LynxVerbs.h"
+
+namespace parity190kwvv
+{
+// 4 s of a lone impulse (0.5 at 0.05 s), Epoch rendered at 48 kHz in blocks of 512; returns the energy from sample `from`
+// over `count` samples (all when count < 0)
+inline double impulseEnergy (const lynx::EffectSlot& slot, int from = 0, int count = -1)
+{
+    const double sr = 48000.0;
+    const int n = (int) (4.0 * sr);
+    std::vector<float> l ((std::size_t) n, 0.0f), r ((std::size_t) n, 0.0f);
+    l[(std::size_t) (0.05 * sr)] = r[(std::size_t) (0.05 * sr)] = 0.5f;
+    auto fx = lynx::makeEffect (slot);
+    fx->prepare (sr);
+    for (int off = 0; off < n; off += 512)
+        fx->process (l.data() + off, r.data() + off, std::min (512, n - off), slot.params, 120.0);
+    double e = 0.0;
+    const int end = count < 0 ? n : std::min (n, from + count);
+    for (int i = from; i < end; ++i)
+        e += (double) l[(std::size_t) i] * l[(std::size_t) i] + (double) r[(std::size_t) i] * r[(std::size_t) i];
+    return e;
+}
+} // namespace parity190kwvv
+
+TEST (parity190kw_vv_loop_law_is_hidden_new_instances_run_it_old_projects_do_not)
+{
+    using namespace lynx;
+    namespace ep = verbs::epoch;
+    CHECK (effectInfo (EffectKind::epochVerb).params.size() == (std::size_t) ep::revision); // hidden: no control, no string
+    CHECK (ep::loopLaw == ep::revision + 1);
+    auto s = makeEffectSlot (EffectKind::epochVerb);
+    CHECK (s.params[(std::size_t) ep::revision] == 1.0f);
+    CHECK (s.params[(std::size_t) ep::loopLaw] == 1.0f);
+    CHECK (savedEffectParamCount (s) == (std::size_t) ep::loopLaw + 2); // (+ round 190ly's shortTrim after it, since the 190mb merge)
+    auto now = s; // saved with it: kept
+    upgradeLoadedEffectParams (now, (std::size_t) ep::loopLaw + 1);
+    CHECK (now.params[(std::size_t) ep::loopLaw] == 1.0f && now.params[(std::size_t) ep::revision] == 1.0f);
+    auto rev1 = s; // saved by 0.1.30 before this round: revision 1 as round 190it left it, and saved again it stays so
+    upgradeLoadedEffectParams (rev1, (std::size_t) ep::revision + 1);
+    CHECK (rev1.params[(std::size_t) ep::revision] == 1.0f && rev1.params[(std::size_t) ep::loopLaw] == 0.0f);
+    CHECK (savedEffectParamCount (rev1) == (std::size_t) ep::revision + 1);
+    auto rev0 = s; // saved before round 190it: the 0.1.27 Measured law
+    upgradeLoadedEffectParams (rev0, (std::size_t) ep::revision);
+    CHECK (rev0.params[(std::size_t) ep::revision] == 0.0f && rev0.params[(std::size_t) ep::loopLaw] == 0.0f);
+    CHECK (savedEffectParamCount (rev0) == (std::size_t) ep::revision);
+}
+
+TEST (parity190kw_vv_revision1_renders_as_the_base_commit_did)
+{
+    using namespace lynx;
+    // as parity190it's gold (its input, 1.6 s at 48 kHz in blocks of 512), revision 1 with the loop law off: FNV-1a of the
+    // float bits and the energy, from the base commit's objects (/mnt/e/lynx-work/rea190kw/vvimpl/gold: gold_base.txt, 72
+    // renders of revisions 0 and 1 at 44.1 / 48 / 96 kHz; the round's objects print the same lines)
+    struct Gold { float mode, decay, size, colour; std::uint64_t hash; double energy; };
+    const Gold gold[] = {
+        { 0.0f, 0.2f, 1.0f, 0.0f, 0xac9b83d53bfa4302ull, 2029.58948 }, { 0.0f, 0.42f, 1.0f, 0.0f, 0x16a6a0b88aee2fcaull, 6494.94988 },
+        { 0.0f, 0.6f, 0.5f, 0.0f, 0xd01018386897af7cull, 18699.7875 }, { 0.0f, 0.38f, 1.0f, 0.5f, 0x08da2423c259f418ull, 4819.14982 },
+        { 0.0476f, 0.2f, 1.0f, 0.0f, 0x46439aa4b0225b0bull, 4115.08016 }, { 0.0952f, 0.3f, 1.0f, 0.0f, 0xf5d13de4bf3712e5ull, 612.278442 },
+        { 0.2857f, 0.5f, 0.3f, 1.0f, 0xd8e4c8fdf2cdc3feull, 3991.09401 }, { 0.3333f, 0.25f, 1.0f, 0.0f, 0x087242ba1c22c586ull, 1768.27475 },
+        { 0.4762f, 0.2f, 0.7f, 0.5f, 0xf760a82427f3c386ull, 1902.43853 }, { 0.6667f, 0.1f, 1.0f, 0.0f, 0x06b97686273eaf2bull, 1232.13499 },
+        { 0.8571f, 0.2f, 1.0f, 0.0f, 0x4e057dfef717aa13ull, 300.733223 }, { 1.0f, 0.35f, 0.0f, 0.0f, 0xc8d8347322b65d6dull, 2312.93265 },
+    };
+    for (const auto& g : gold)
+    {
+        auto slot = makeEffectSlot (EffectKind::epochVerb);
+        slot.params[(std::size_t) verbs::epoch::revision] = 1.0f;
+        slot.params[(std::size_t) verbs::epoch::loopLaw] = 0.0f;
+        slot.params[16] = g.mode; slot.params[2] = g.decay; slot.params[3] = g.size; slot.params[15] = g.colour;
+        const int n = (int) (1.6 * 48000.0);
+        std::vector<float> l ((std::size_t) n), r ((std::size_t) n);
+        parity190it::signal (l, r, 48000.0);
+        parity190it::render (slot, 48000.0, l, r);
+        std::uint64_t h = 0;
+        const double e = parity190it::energy (l, r, &h);
+       #if defined(__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 43))
+        CHECK (h == g.hash); // the libm the fingerprints were taken with
+       #endif
+        CHECK (std::abs (e - g.energy) < 1e-6 * g.energy + 1e-9);
+    }
+}
+
+TEST (parity190kw_vv_concert_hall_level_follows_the_loop_law)
+{
+    using namespace lynx;
+    namespace ep = verbs::epoch;
+    // the reference's Concert Hall against revision 1 (refcap030 pairs / sr48, impulse): +2.0 dB at Decay 0.51 s, −1.2 …
+    // −1.3 dB at 7 s, −1.3 … −1.9 dB at 33 s (its loop gain sees Decay only after the first half-lap)
+    const auto db = [] (float decay) {
+        auto a = makeEffectSlot (EffectKind::epochVerb);
+        a.params[2] = decay;
+        auto b = a;
+        b.params[(std::size_t) ep::loopLaw] = 0.0f;
+        return 10.0 * std::log10 (parity190kwvv::impulseEnergy (a) / parity190kwvv::impulseEnergy (b));
+    };
+    const auto at051 = db (0.2f), at7 = db (0.5f);
+    std::printf ("  Concert Hall, loop law against revision 1: %+.2f dB at 0.51 s, %+.2f dB at 7 s\n", at051, at7);
+    CHECK (at051 > 1.4 && at051 < 2.6);
+    CHECK (at7 < -0.8 && at7 > -2.4);
+}

+ 88 - 0
tests/Parity190lgMbTests.inc

@@ -0,0 +1,88 @@
+// Round 190lg (sub-round mb): Prism Multiband's revision 1 (hidden dyn::prism::revision / lookaheadSwitch) on Pro-MB's own
+// BandCompander graph (static REA, docs/analise/REA_rodada190lg.md §7): the detector with its soft range (0.6 × knee +
+// 12 dB wide), a peak hold and a low pass timed by the look-ahead, follower A, max, follower B; the inverted graph (36 dB
+// − the reduction) for upward compression and downward expansion. Only the Pro-MB translator sets it; a project saved
+// before keeps the measured detector (0). After DynamicsTests108 (its helpers).
+namespace parity190lgmb
+{
+// one Pro-MB band over the whole range: threshold −30 dB, the given range / mode, ratio 4 : 1, attack / release 20 %,
+// knee 24 dB, look-ahead 1 ms (switch `la`); the other bands unused
+inline lynx::EffectSlot proMb (float rangeDb, float mode, float la)
+{
+    using namespace lynx;
+    std::vector<std::pair<int, float>> v { { 0, 1.0f }, { 1, (float) std::log2 (30.0) }, { 2, 0.5f }, { 3, (float) std::log2 (30000.0) },
+                                           { 4, 0.5f }, { 5, mode }, { 6, 0.5f }, { 7, rangeDb }, { 8, 0.6f }, { 9, 20.0f },
+                                           { 10, 20.0f }, { 11, 24.0f }, { 12, 1.0f }, { 133, 1.0f }, { 139, 1.0f }, { 141, la } };
+    for (int b = 1; b < 6; ++b)
+        v.push_back ({ 22 * b, 2.0f });
+    PluginIdentity id;
+    id.format = ForeignPlugin::Format::vst3;
+    id.name = "FabFilter Pro-MB";
+    id.state = dyn108::fabf (151, v);
+    const auto* entry = findPluginSubstitute (id, false);
+    return entry != nullptr ? makeSubstituteSlot (*entry, &id, nullptr) : makeEffectSlot (EffectKind::prismMultiband);
+}
+// the gain (dB) of a steady 200 Hz tone at `db` dBFS over its last half second
+inline double toneGain (const lynx::EffectParams& p, double db)
+{
+    std::vector<float> x (96000);
+    const auto a = std::pow (10.0, db / 20.0);
+    for (std::size_t i = 0; i < x.size(); ++i)
+        x[i] = (float) (a * std::sin (2.0 * dyn108::pi * 200.0 * (double) i / dyn108::sr));
+    const auto y = dyn108::run (lynx::EffectKind::prismMultiband, p, x);
+    double ex = 0.0, ey = 0.0;
+    for (std::size_t i = 48000; i < 90000; ++i)
+    {
+        ex += (double) x[i] * x[i];
+        ey += (double) y[i] * y[i];
+    }
+    return 10.0 * std::log10 (ey / ex);
+}
+} // namespace parity190lgmb
+
+TEST (parity190lg_prism_revision_is_hidden_set_by_the_translator_only)
+{
+    using namespace lynx;
+    namespace m = dyn::prism;
+    CHECK (effectInfo (EffectKind::prismMultiband).params.size() == (std::size_t) m::count); // no new control or string
+    CHECK (m::revision == m::count && m::lookaheadSwitch == m::count + 1);
+    auto fresh = makeEffectSlot (EffectKind::prismMultiband);
+    CHECK (fresh.params[(std::size_t) m::revision] == 0.0f && savedEffectParamCount (fresh) <= (std::size_t) m::count);
+    const auto on = parity190lgmb::proMb (-12.0f, 0.0f, 1.0f), off = parity190lgmb::proMb (-12.0f, 0.0f, 0.0f);
+    CHECK (on.kind == EffectKind::prismMultiband && on.params[(std::size_t) m::revision] == 1.0f && on.params[(std::size_t) m::lookaheadSwitch] == 1.0f);
+    CHECK (off.params[(std::size_t) m::revision] == 1.0f && off.params[(std::size_t) m::lookaheadSwitch] == 0.0f);
+    CHECK (savedEffectParamCount (on) == (std::size_t) m::lookaheadSwitch + 1);
+    // saved before this round: back to the measured detector
+    auto old = on;
+    upgradeLoadedEffectParams (old, (std::size_t) m::count);
+    CHECK (old.params[(std::size_t) m::revision] == 0.0f && old.params[(std::size_t) m::lookaheadSwitch] == 0.0f);
+    auto now = on;
+    upgradeLoadedEffectParams (now, (std::size_t) m::lookaheadSwitch + 1);
+    CHECK (now.params[(std::size_t) m::revision] == 1.0f && now.params[(std::size_t) m::lookaheadSwitch] == 1.0f);
+    // latency: the reference's 20 ms with its switch on, none with it off (revision 0 keeps the band's own 1 ms)
+    int la1 = 0, la0 = 0, laOld = 0;
+    std::vector<float> x (4800, 0.0f);
+    dyn108::run (EffectKind::prismMultiband, on.params, x, &la1);
+    dyn108::run (EffectKind::prismMultiband, off.params, x, &la0);
+    dyn108::run (EffectKind::prismMultiband, old.params, x, &laOld);
+    CHECK (la1 == 960 && la0 == 0 && laOld == 48);
+}
+
+TEST (parity190lg_prism_revision1_soft_range_and_inverted_modes)
+{
+    // the static law (24 dB over a −30 dB threshold at 4 : 1 is 18 dB before the range): the reference's soft range of
+    // 0.6 × 24 + 12 = 26.4 dB around −12 leaves 11.0 dB; round 150's 12 dB knee gives the full 12
+    using namespace lynx;
+    namespace m = dyn::prism;
+    auto rev1 = parity190lgmb::proMb (-12.0f, 0.0f, 1.0f).params, rev0 = rev1;
+    rev0[(std::size_t) m::revision] = rev0[(std::size_t) m::lookaheadSwitch] = 0.0f;
+    const auto g1 = parity190lgmb::toneGain (rev1, -6.0), g0 = parity190lgmb::toneGain (rev0, -6.0);
+    std::printf ("  prism revision 1: %.2f dB (revision 0: %.2f dB) at 24 dB over\n", g1, g0);
+    CHECK (g1 > -11.6 && g1 < -10.4 && g0 < g1 - 0.5);
+    // downward expansion (−12 dB): the inverted graph scales 36 dB of detector by 12 / 36 — at −42 dBFS (12 dB under, knee
+    // 24: 3 dB × (4 − 1) = 9 dB of 36) the band loses 3 dB
+    auto ex = parity190lgmb::proMb (-12.0f, 1.0f, 1.0f).params;
+    const auto ge = parity190lgmb::toneGain (ex, -42.0), gLoud = parity190lgmb::toneGain (ex, -6.0);
+    std::printf ("  prism revision 1 expander: %.2f dB at 12 dB under, %.2f dB over\n", ge, gLoud);
+    CHECK (ge < -2.0 && ge > -4.5 && std::abs (gLoud) < 0.3);
+}

+ 68 - 0
tests/Parity190lgQ4Tests.inc

@@ -0,0 +1,68 @@
+// Round 190lg: Facet's automatic threshold, revision 1 (hidden facet::autoRevisionParam), on Pro-Q 4's own BandCompander
+// structure (static REA, docs/analise/REA_rodada190lg.md): the band's per-sample magnitude against a peak follower of it
+// (instant rise, 10 s fall, floor −40 dB), the range's gain law, then three followers on the reduction (their times from the
+// region and the knobs, scaled as fitted on refcap030's gain trajectories). Only the Pro-Q 4 translator sets it; a project
+// saved before keeps round 190js's law (0). After Parity190jh / 190js: their helpers.
+namespace parity190lgq4
+{
+inline lynx::EffectSlot autoBand (double rangeDb, float rev)
+{
+    using namespace lynx;
+    auto s = parity190jh::facetBand (0, facet::shapeValue (facet::Shape::bell), facet::gainValue (6.0), facet::rangeValue (rangeDb),
+                                     facet::thresholdValue (-80.0), 0.5f, 0.5f, 0.0f);
+    s.params[(std::size_t) facet::autoThresholdParam0] = 1.0f;
+    s.params[(std::size_t) facet::autoRevisionParam] = rev;
+    return s;
+}
+// a 1 kHz tone at `loud` dBFS for 1 s, then −40 dBFS; returns the band's dynamic gain (dB) over [a, b) s
+inline double gainAt (double rangeDb, float rev, double loud, double a, double b)
+{
+    const double sr = 48000.0;
+    const int n = (int) (2.5 * sr);
+    std::vector<float> l ((std::size_t) n), r;
+    for (int i = 0; i < n; ++i)
+        l[(std::size_t) i] = (float) (std::pow (10.0, (i < (int) sr ? loud : -40.0) / 20.0) * std::sin (2.0 * M_PI * 1000.0 * i / sr));
+    r = l;
+    const auto in = l;
+    parity190jh::render (autoBand (rangeDb, rev), sr, l, r);
+    return parity190js::bandGainDb (in, l, 0, sr, a, b) - 6.0;
+}
+} // namespace parity190lgq4
+
+TEST (parity190lg_facet_auto_revision_is_hidden_set_by_the_translator_only)
+{
+    using namespace lynx;
+    CHECK (facet::autoRevisionParam == facet::autoThresholdParam0 + facet::bands && facet::storedParamCount == facet::autoRevisionParam + 1);
+    auto s = makeEffectSlot (EffectKind::facetEq);
+    CHECK (s.params[(std::size_t) facet::autoRevisionParam] == 0.0f && savedEffectParamCount (s) <= (std::size_t) facet::paramCount);
+    // a translated Pro-Q 4 band with Auto gets the revision
+    std::vector<float> v (600, 0.0f);
+    v[0] = 1; v[1] = 1; v[2] = (float) std::log2 (1000.0); v[3] = 6.0f; v[4] = 0.5f; v[6] = 2; v[7] = 2;
+    v[9] = -30.0f; v[10] = 1.0f; v[11] = 1.0f; v[13] = 50; v[14] = 50;
+    v[555] = 1.0f;
+    int n = 0;
+    const auto t = m124x::substitute ("FabFilter Pro-Q 4", m124x::ffbs (v), n);
+    CHECK (facet::autoThreshold (t.params, 0) && t.params[(std::size_t) facet::autoRevisionParam] == 1.0f);
+    // saved before this round: back to round 190js's law
+    auto old = t;
+    upgradeLoadedEffectParams (old, (std::size_t) facet::autoRevisionParam);
+    CHECK (old.params[(std::size_t) facet::autoRevisionParam] == 0.0f);
+    auto now = t;
+    upgradeLoadedEffectParams (now, (std::size_t) facet::autoRevisionParam + 1);
+    CHECK (now.params[(std::size_t) facet::autoRevisionParam] == 1.0f);
+}
+
+TEST (parity190lg_facet_auto_revision1_timing)
+{
+    // the reference on refcap030's time-constant probe (Dynamic Range −30, 1 kHz): the whole range within 100 ms of a steady
+    // tone, then 34 dB under it about 5 dB of cut stays (inside the 1.53 × range knee) and the band lets most of it go within
+    // ~0.6 s (−9.8 / −3.3 / −0.5 dB of the 24 dB back after 0.2 / 0.4 / 0.6 s)
+    using namespace parity190lgq4;
+    const double full = gainAt (-30.0, 1.0f, -6.0, 0.15, 0.25), after = gainAt (-30.0, 1.0f, -6.0, 1.9, 2.1);
+    const double early = gainAt (-30.0, 1.0f, -6.0, 1.15, 1.25), rest15 = gainAt (-15.0, 1.0f, -6.0, 1.9, 2.1);
+    std::printf ("  facet auto revision 1: %.2f dB in the tone, %.2f dB 0.2 s after it, %.2f dB 1 s after (range -15: %.2f)\n", full, early, after, rest15);
+    CHECK (std::abs (full + 30.0) < 1.0);
+    CHECK (early > -24.0 && early < -6.0);
+    CHECK (after < -3.0 && after > -8.0);
+    CHECK (rest15 > -1.0);
+}

+ 45 - 0
tests/Parity190lgVersTests.inc

@@ -0,0 +1,45 @@
+// Round 190lg: Crest's Allround under revision 1 runs Pro-C 3 Versatile's own graph (static REA, docs/analise/
+// REA_rodada190lg.md): two gain computers on two readings of the side chain's level (slow: 0.979 × the level + 0.0203 ×
+// its 204 Hz low-pass, then the knob-timed follower; fast: 0.91 × its 6.39 kHz low-pass, then a slew limiter), the
+// reduction share max (slow, w · fast). Revision 0 keeps the fitted Allround (tests/Parity190kwGold.inc).
+TEST (parity190lg_crest_versatile_static_law_and_editor_curve)
+{
+    using namespace lynx;
+    namespace cr = dyn::crest;
+    const auto r4 = cr::ratioValue (4.0);
+    const auto all = cr::styleValue (cr::Style::allround);
+    // threshold −30 dB, 4 : 1, hard knee, a steady −10 dBFS square: the slow path reads 0.9998 × the level (its low-pass
+    // of a constant magnitude is the magnitude) → 20 · 3 / 4 = 15 dB; the fast path (−0.82 dB, w ≈ 0.93) stays under it
+    const auto settled = parity190kw::settledGainDb (parity190kw::crest (all, 0.0f, 0.5f, r4, 0.0f, 0.3f, 0.3f, 1.0f), -10.0, 6.0);
+    std::printf ("  Versatile settled on a −10 dBFS square: %.2f dB\n", settled);
+    CHECK (parity190kw::near (settled, -15.0, 0.15));
+    // the editor's curve is the law (a sine: the slow path's low-pass reads its mean, 2 / π of the peak)
+    const auto curve = cr::staticGainDb (parity190kw::crest (all, 0.0f, 0.5f, r4, 0.0f, 0.3f, 0.3f, 1.0f).params, -10.0);
+    CHECK (parity190kw::near (curve, -15.0 + 0.75 * -20.0 * std::log10 (0.979424 + 0.020348 * 2.0 / 3.141592653589793), 0.01));
+    // revision 0 keeps the fitted Allround curve
+    CHECK (! parity190kw::near (cr::staticGainDb (parity190kw::crest (all, 0.0f, 0.5f, r4, 0.0f, 0.3f, 0.3f, 0.0f).params, -10.0), curve, 0.01));
+}
+
+TEST (parity190lg_crest_versatile_translated_state_runs_it)
+{
+    using namespace lynx;
+    namespace cr = dyn::crest;
+    // a Pro-C 3 state (FFBS v1, 100 values) with style 1 = Versatile translates to Allround with the revision on
+    fabfilter::State st;
+    st.named = false;
+    st.version = 1;
+    st.count = 100;
+    st.values.assign (100, 0.0f);
+    st.values[0] = 1.0f;
+    st.values[1] = -18.0f;
+    st.values[4] = 0.6f;
+    st.values[5] = 18.0f;
+    st.values[6] = 60.0f;
+    st.values[7] = 0.4f;
+    st.values[8] = 0.5f;
+    st.values[26] = 0.5f;
+    auto t = makeEffectSlot (EffectKind::crestCompressor);
+    CHECK (fabfilter::fromProC3 (st, t) > 0);
+    CHECK (cr::styleOf (t.params) == cr::Style::allround);
+    CHECK (t.params[(std::size_t) cr::revision] == 1.0f);
+}

+ 8 - 0
tests/Parity190lpCrestGold.inc

@@ -0,0 +1,8 @@
+        { 0.0f, cr::Style::smooth, 0.5f, 0.600000024f, 0.25f, 0.680000007f, 0.550000012f, 48000.0, 0x307d494a5aa745b9ull },
+        { 0.0f, cr::Style::smooth, 0.400000006f, 0.800000012f, 0.0f, 0.400000006f, 0.400000006f, 96000.0, 0x15b3e2473c069495ull },
+        { 0.0f, cr::Style::opEl, 0.5f, 0.600000024f, 0.25f, 0.680000007f, 0.550000012f, 48000.0, 0x7e5b9da9cdbb6a1full },
+        { 0.0f, cr::Style::opEl, 0.600000024f, 0.699999988f, 0.5f, 0.300000012f, 0.600000024f, 44100.0, 0x8b052ca836218221ull },
+        { 1.0f, cr::Style::smooth, 0.5f, 0.600000024f, 0.25f, 0.680000007f, 0.550000012f, 48000.0, 0x4325b8669c9478bcull },
+        { 1.0f, cr::Style::smooth, 0.400000006f, 0.800000012f, 0.0f, 0.400000006f, 0.400000006f, 96000.0, 0xfb34d4078b228728ull },
+        { 1.0f, cr::Style::opEl, 0.5f, 0.600000024f, 0.25f, 0.680000007f, 0.550000012f, 48000.0, 0x720f7c016b460368ull },
+        { 1.0f, cr::Style::opEl, 0.600000024f, 0.699999988f, 0.5f, 0.300000012f, 0.600000024f, 44100.0, 0x16470fa1e332ff35ull },

+ 115 - 0
tests/Parity190lpCrestTests.inc

@@ -0,0 +1,115 @@
+// Round 190lp (part crest): Crest's Smooth and Op-El voicings under revision 1 run Pro-C 3's own graphs for those styles
+// (static REA, docs/analise/REA_rodada190lp.md): Smooth = a gain computer on a side chain already turned down by its own
+// copy (two followers each, the reduction share max (A · C0, C1)); Op-El = two gain computers, their squared shares
+// followed by a fast, a slower and a very slow follower, summed in power. Revision 0 keeps the fitted laws (the
+// revision-0 fingerprints below are the base's).
+namespace parity190lp
+{
+namespace cr = lynx::dyn::crest;
+inline lynx::EffectSlot crest (cr::Style st, float thr, float ratio, float knee, float rev)
+{
+    return parity190kw::crest (cr::styleValue (st), cr::voicingValue (st), thr, ratio, knee, 0.3f, 0.3f, rev);
+}
+inline double shareOf (double grDb) { return 1.0 - std::pow (10.0, -grDb / 20.0); }
+inline double grOf (double share) { return -20.0 * std::log10 (1.0 - share); }
+} // namespace parity190lp
+
+TEST (parity190lp_crest_smooth_static_law_and_editor_curve)
+{
+    using namespace lynx;
+    namespace cr = dyn::crest;
+    // threshold −30 dB, 4 : 1, hard knee, a steady −10 dBFS square (a constant level: every follower settles)
+    const auto r4 = cr::ratioValue (4.0);
+    const auto s = parity190lp::crest (cr::Style::smooth, 0.5f, r4, 0.0f, 1.0f);
+    const auto settled = parity190kw::settledGainDb (s, -10.0, 6.0);
+    const auto curve = cr::staticGainDb (s.params, -10.0);
+    std::printf ("  Smooth settled on a −10 dBFS square: %.3f dB, editor curve %.3f dB\n", settled, curve);
+    CHECK (parity190kw::near (settled, curve, 0.05));
+    // the law by hand: E (threshold + 0.215 dB) turns the side chain down by 0.769 × its share; D (threshold × the ratio
+    // factor, 1.108 near 4 : 1) reads that; the reduction is max (A · C, C), A = 1.0081 − 0.0123 · 0.610 · C · E
+    const auto e = parity190lp::shareOf ((-10.0 - (-30.0 + 0.214906)) * 0.75);
+    const auto lev = -10.0 + 20.0 * std::log10 (1.0 - 0.768633 * e);
+    const auto c = parity190lp::shareOf (std::max (0.0, lev - (-30.0 * 1.1084)) * 0.75);
+    const auto r = (1.008093 - 0.012346 * 0.610426 * c * e) * c;
+    CHECK (parity190kw::near (curve, -parity190lp::grOf (r), 0.02));
+    // softer than the plain 4 : 1 curve (15 dB here): the main detector reads an already reduced side chain
+    CHECK (-curve < 14.0 && -curve > 8.0);
+    // revision 0 keeps the fitted Smooth curve
+    CHECK (! parity190kw::near (cr::staticGainDb (parity190lp::crest (cr::Style::smooth, 0.5f, r4, 0.0f, 0.0f).params, -10.0), curve, 0.01));
+}
+
+TEST (parity190lp_crest_opel_static_law_and_editor_curve)
+{
+    using namespace lynx;
+    namespace cr = dyn::crest;
+    // threshold −30 dB, 4 : 1, knee 18 dB, a steady −10 dBFS square: D1 (the knobs) and D2 (knee 30, range 60) both read
+    // 20 dB over → 15 dB; the shares' power sum √(0.95 s1² + 0.05 s2²) = the same share → 15 dB
+    const auto r4 = cr::ratioValue (4.0);
+    const auto s = parity190lp::crest (cr::Style::opEl, 0.5f, r4, 0.25f, 1.0f);
+    const auto settled = parity190kw::settledGainDb (s, -10.0, 8.0);
+    const auto curve = cr::staticGainDb (s.params, -10.0);
+    std::printf ("  Op-El settled on a −10 dBFS square: %.3f dB, editor curve %.3f dB\n", settled, curve);
+    CHECK (parity190kw::near (curve, -15.0, 0.02));
+    CHECK (parity190kw::near (settled, curve, 0.1));
+    // inside D2's 30 dB knee (8 dB over at −22 dBFS) the two detectors differ: the power sum sits between them
+    const auto near8 = -cr::staticGainDb (s.params, -22.0);
+    const auto s1 = parity190lp::shareOf (std::pow (18.0 / 2.0 + 8.0, 2.0) / (2.0 * 18.0) * 0.75);
+    const auto s2 = parity190lp::shareOf (std::pow (30.0 / 2.0 + 8.0, 2.0) / (2.0 * 30.0) * 0.75);
+    CHECK (parity190kw::near (near8, parity190lp::grOf (std::sqrt (0.95 * s1 * s1 + 0.05 * s2 * s2)), 0.02));
+    // revision 0 keeps the fitted Op-El curve (equal at 20 dB over, apart inside the knees)
+    const auto old = parity190lp::crest (cr::Style::opEl, 0.5f, r4, 0.25f, 0.0f);
+    bool differs = false;
+    for (double in : { -22.0, -26.0, -30.0, -34.0 })
+        differs = differs || ! parity190kw::near (cr::staticGainDb (old.params, in), cr::staticGainDb (s.params, in), 0.01);
+    CHECK (differs);
+}
+
+TEST (parity190lp_crest_translated_states_run_the_new_laws)
+{
+    using namespace lynx;
+    namespace cr = dyn::crest;
+    // Pro-C 3 states (FFBS v1, 100 values): style 2 Smooth, 6 Op-El → the matching Crest voicing, revision 1
+    const std::pair<int, cr::Style> map[] { { 2, cr::Style::smooth }, { 6, cr::Style::opEl } };
+    for (const auto& [theirs, ours] : map)
+    {
+        fabfilter::State st;
+        st.named = false;
+        st.version = 1;
+        st.count = 100;
+        st.values.assign (100, 0.0f);
+        st.values[0] = (float) theirs;
+        st.values[1] = -18.0f;
+        st.values[4] = 0.6f;
+        st.values[5] = 18.0f;
+        st.values[6] = 60.0f;
+        st.values[7] = 0.4f;
+        st.values[8] = 0.5f;
+        st.values[26] = 0.5f;
+        auto t = makeEffectSlot (EffectKind::crestCompressor);
+        t.params[(std::size_t) cr::revision] = 0.0f;
+        CHECK (fabfilter::fromProC3 (st, t) > 0);
+        CHECK (cr::styleOf (t.params) == ours);
+        CHECK (t.params[(std::size_t) cr::revision] == 1.0f);
+    }
+}
+
+TEST (parity190lp_crest_fingerprints_revision_0_unchanged_revision_1_pinned)
+{
+    using namespace lynx;
+    namespace cr = dyn::crest;
+    struct Case { float rev; cr::Style st; float threshold, ratio, knee, attack, release; double sr; std::uint64_t hash; };
+    static const Case cases[] {
+#include "Parity190lpCrestGold.inc"
+    };
+    for (const auto& c : cases)
+    {
+        auto s = parity190kw::crest (cr::styleValue (c.st), cr::voicingValue (c.st), c.threshold, c.ratio, c.knee, c.attack, c.release, c.rev);
+        std::vector<float> l ((std::size_t) (c.sr * 2.0)), r (l.size());
+        parity190kw::signal (l, r, c.sr);
+        parity190kw::render (s, c.sr, l, r);
+        const auto h = parity190kw::fnv (l, r);
+        if (h != c.hash)
+            std::printf ("  fingerprint rev %.0f style %d: 0x%016llxull\n", c.rev, (int) c.st, (unsigned long long) h);
+        CHECK (h == c.hash);
+    }
+}

+ 228 - 0
tests/Parity190lpLgTests.inc

@@ -0,0 +1,228 @@
+// Round 190lp (sub-round lg): Apex Limiter's and Sentry Gate's revision 1 (hidden apex::pRevision / dyn::sentry::revision),
+// refitted black-box on the reference limiter's and gate's renders (docs/PARITY.md "Round 190lp (Pro-L 2 → Apex, Pro-G →
+// Sentry)"). A new instance and a translated Pro-L 2 / Pro-G state get 1; a project or preset saved before, the Live maps,
+// the substitutes and LYNX's own chains (mastering looks, reference match, demo songs, Clean Voice) keep 0. After
+// DynamicsTests108 (its helpers).
+#include "core/ApexLimiter.h"
+#include "core/FabFilterStates.h"
+
+namespace parity190lplg
+{
+using lynx::EffectKind;
+using lynx::EffectParams;
+using namespace dyn108;
+namespace ap = lynx::apex;
+namespace sg = lynx::dyn::sentry;
+
+// a tone at `hz`: −40 dBFS for 0.2 s, `loud` dBFS for `burst` s, −40 dBFS for `tail` s
+inline std::vector<float> burst (double loud, double burstS, double tail, double hz = 1000.0, double quiet = -40.0)
+{
+    std::vector<float> x ((std::size_t) ((0.2 + burstS + tail) * sr));
+    const auto a = (std::size_t) (0.2 * sr), b = (std::size_t) ((0.2 + burstS) * sr);
+    for (std::size_t i = 0; i < x.size(); ++i)
+        x[i] = (float) (std::pow (10.0, (i >= a && i < b ? loud : quiet) / 20.0) * std::sin (2.0 * pi * hz * (double) i / sr));
+    return x;
+}
+inline double levelDb (const std::vector<float>& y, double from, double to)
+{
+    return rmsDb (y, (std::size_t) (from * sr), (std::size_t) (to * sr));
+}
+// the third harmonic of a steady tone at `hz` relative to its fundamental (dB) over [from, to) s
+inline double h3Db (const std::vector<float>& y, double hz, double from, double to)
+{
+    double c1 = 0.0, s1 = 0.0, c3 = 0.0, s3 = 0.0;
+    for (auto i = (std::size_t) (from * sr); i < (std::size_t) (to * sr); ++i)
+    {
+        const double t = (double) i / sr;
+        c1 += y[i] * std::cos (2.0 * pi * hz * t); s1 += y[i] * std::sin (2.0 * pi * hz * t);
+        c3 += y[i] * std::cos (6.0 * pi * hz * t); s3 += y[i] * std::sin (6.0 * pi * hz * t);
+    }
+    return 10.0 * std::log10 ((c3 * c3 + s3 * s3 + 1e-30) / (c1 * c1 + s1 * s1 + 1e-30));
+}
+inline EffectParams apex (ap::Style style, double gainDb, double ceilingDb, float revision)
+{
+    auto p = defaults (EffectKind::apexLimiter);
+    p[ap::pStyle] = (float) style / (float) (ap::styleCount - 1);
+    p[ap::pGain] = (float) (gainDb / 30.0);
+    p[ap::pCeiling] = (float) (1.0 + ceilingDb / 30.0);
+    p[ap::pRevision] = revision;
+    return p;
+}
+} // namespace parity190lplg
+
+TEST (parity190lp_lg_revisions_are_hidden_new_and_translated_get_one)
+{
+    using namespace lynx;
+    namespace ap = apex;
+    namespace sg = dyn::sentry;
+    CHECK (ap::info().params.size() == (std::size_t) ap::paramCount && ap::pRevision == ap::paramCount); // no new control
+    CHECK (effectInfo (EffectKind::sentryGate).params.size() == (std::size_t) sg::count && sg::revision == sg::count);
+    // a new instance runs revision 1 and saves it
+    const auto a = makeEffectSlot (EffectKind::apexLimiter), g = makeEffectSlot (EffectKind::sentryGate);
+    CHECK (a.params[(std::size_t) ap::pRevision] == 1.0f && savedEffectParamCount (a) == (std::size_t) ap::pRevision + 1);
+    CHECK (g.params[(std::size_t) sg::revision] == 1.0f && savedEffectParamCount (g) == (std::size_t) sg::revision + 1);
+    // saved before this round: back to revision 0; saved after: kept
+    auto oldA = a, oldG = g, nowA = a, nowG = g;
+    upgradeLoadedEffectParams (oldA, (std::size_t) ap::paramCount);
+    upgradeLoadedEffectParams (oldG, (std::size_t) sg::count);
+    upgradeLoadedEffectParams (nowA, (std::size_t) ap::pRevision + 1);
+    upgradeLoadedEffectParams (nowG, (std::size_t) sg::revision + 1);
+    CHECK (oldA.params[(std::size_t) ap::pRevision] == 0.0f && oldG.params[(std::size_t) sg::revision] == 0.0f);
+    CHECK (nowA.params[(std::size_t) ap::pRevision] == 1.0f && nowG.params[(std::size_t) sg::revision] == 1.0f);
+    CHECK (savedEffectParamCount (oldA) == (std::size_t) ap::paramCount && savedEffectParamCount (oldG) == (std::size_t) sg::count);
+    // the translators set 1 (Pro-L 2: FabF v2, 32 values; Pro-G: 34)
+    auto l2 = makeEffectSlot (EffectKind::apexLimiter);
+    l2.params[(std::size_t) ap::pRevision] = 0.0f;
+    const auto stL2 = fabfilter::parseState (dyn108::fabf (32, { { 0, 6.0f }, { 1, 4.0f }, { 2, 0.2f }, { 18, -1.0f } }));
+    CHECK (stL2.has_value() && fabfilter::translatorNamed ("pro-l2") != nullptr);
+    if (stL2 && fabfilter::translatorNamed ("pro-l2") != nullptr)
+    {
+        CHECK (fabfilter::translatorNamed ("pro-l2") (*stL2, l2) > 0);
+        CHECK (l2.params[(std::size_t) ap::pRevision] == 1.0f);
+    }
+    auto pg = makeEffectSlot (EffectKind::sentryGate);
+    pg.params[(std::size_t) sg::revision] = 0.0f;
+    const auto stG = fabfilter::parseState (dyn108::fabf (34, { { 0, -30.0f }, { 5, 3.0f } }));
+    if (stG && fabfilter::translatorNamed ("pro-g") != nullptr)
+    {
+        CHECK (fabfilter::translatorNamed ("pro-g") (*stG, pg) > 0);
+        CHECK (pg.params[(std::size_t) sg::revision] == 1.0f);
+    }
+}
+
+TEST (parity190lp_lg_apex_output_level_is_a_gain_after_the_limiter)
+{
+    // revision 1: a ceiling of −1 dB is the reference's output level — what stays under the limit comes out 1 dB lower
+    // too (refcap030 S3: the quiet carrier at gain + level); revision 0 keeps it as a ceiling (the quiet part untouched)
+    using namespace parity190lplg;
+    const auto x = burst (-6.0, 0.5, 0.5);
+    const auto y1 = run (EffectKind::apexLimiter, apex (ap::Style::clean, 8.0, -1.0, 1.0f), x);
+    const auto y0 = run (EffectKind::apexLimiter, apex (ap::Style::clean, 8.0, -1.0, 0.0f), x);
+    const auto q1 = levelDb (y1, 0.02, 0.15) - levelDb (x, 0.02, 0.15), q0 = levelDb (y0, 0.02, 0.15) - levelDb (x, 0.02, 0.15);
+    std::printf ("  apex output level: quiet part %+.2f dB (revision 0: %+.2f dB)\n", q1, q0);
+    CHECK (std::abs (q1 - 7.0) < 0.02 && std::abs (q0 - 8.0) < 0.02);
+    float peak1 = 0.0f;
+    for (std::size_t i = (std::size_t) (0.3 * sr); i < (std::size_t) (0.7 * sr); ++i)
+        peak1 = std::max (peak1, std::abs (y1[i]));
+    CHECK (20.0 * std::log10 ((double) peak1) < -0.95);
+}
+
+TEST (parity190lp_lg_apex_smooth_styles_hold_a_tone_and_transparent_recovers_faster_when_deep)
+{
+    using namespace parity190lplg;
+    // Loud (the reference's Aggressive), a 100 Hz tone 6 dB over the ceiling: revision 1 holds one gain through the
+    // cycle (the hold of ~0.9 half period), revision 0 rides the waveform (its fast stage) — measured third harmonic
+    const auto tone = burst (0.0, 0.6, 0.2, 100.0);
+    const auto l1 = run (EffectKind::apexLimiter, apex (ap::Style::loud, 6.0, 0.0, 1.0f), tone);
+    const auto l0 = run (EffectKind::apexLimiter, apex (ap::Style::loud, 6.0, 0.0, 0.0f), tone);
+    const auto h1 = h3Db (l1, 100.0, 0.5, 0.75), h0 = h3Db (l0, 100.0, 0.5, 0.75);
+    std::printf ("  apex loud, 100 Hz 6 dB over: H3 %.1f dB (revision 0: %.1f dB)\n", h1, h0);
+    CHECK (h1 < -100.0 && h1 < h0 - 30.0);
+    // Clean (Transparent), 24 dB of gain on a 1 kHz tone at 0 dBFS, then −30 dBFS: 100 ms after the loud part
+    // revision 1 has recovered more (its slow stage speeds up with the reduction it holds)
+    const auto deep = burst (0.0, 0.5, 0.6, 1000.0, -30.0);
+    const auto c1 = run (EffectKind::apexLimiter, apex (ap::Style::clean, 24.0, 0.0, 1.0f), deep);
+    const auto c0 = run (EffectKind::apexLimiter, apex (ap::Style::clean, 24.0, 0.0, 0.0f), deep);
+    const auto g1 = levelDb (c1, 0.79, 0.81) - levelDb (deep, 0.79, 0.81), g0 = levelDb (c0, 0.79, 0.81) - levelDb (deep, 0.79, 0.81);
+    std::printf ("  apex clean, 100 ms after 24 dB of limiting: gain %+.2f dB (revision 0: %+.2f dB)\n", g1, g0);
+    CHECK (g1 > g0 + 0.5);
+    // the latency does not change with the revision
+    int la1 = 0, la0 = 0;
+    run (EffectKind::apexLimiter, apex (ap::Style::loud, 6.0, 0.0, 1.0f), tone, &la1);
+    run (EffectKind::apexLimiter, apex (ap::Style::loud, 6.0, 0.0, 0.0f), tone, &la0);
+    CHECK (la1 == la0 && la1 == ap::latencyAt (48000.0));
+}
+
+namespace parity190lplg
+{
+// Sentry: threshold −30 dB, ratio 100 : 1, range 40 dB, attack 0.1 ms, the given style / release / hold
+inline EffectParams gate (sg::Style style, double releaseMsV, double holdMsV, float revision)
+{
+    auto p = defaults (EffectKind::sentryGate);
+    p[sg::style] = sg::styleValue (style);
+    p[sg::threshold] = 0.5f;
+    p[sg::ratio] = 1.0f;
+    p[sg::range] = 0.4f;
+    p[sg::attack] = (float) std::pow (0.1 / 1000.0, 0.25);
+    p[sg::release] = (float) std::cbrt (releaseMsV / 5000.0);
+    p[sg::hold] = (float) std::sqrt (holdMsV / 250.0);
+    p[sg::revision] = revision;
+    return p;
+}
+// the gain (dB) over 1 ms around `t` s, output − input
+inline double gainAt (const std::vector<float>& y, const std::vector<float>& x, double t)
+{
+    return levelDb (y, t - 0.0005, t + 0.0005) - levelDb (x, t - 0.0005, t + 0.0005);
+}
+} // namespace parity190lplg
+
+TEST (parity190lp_lg_sentry_revision1_closes_in_db_after_its_wait)
+{
+    using namespace parity190lplg;
+    // a 1 kHz burst at −6 dBFS over a −50 dBFS bed (it ends at 0.7 s)
+    const auto x = burst (-6.0, 0.5, 0.8, 1000.0, -50.0);
+    // Classic, release 100 ms, no hold: open until its wait (0.08 × 100 ms), then 20 dB per (16 + 0.3 × 100) ms
+    const auto c1 = run (EffectKind::sentryGate, gate (sg::Style::classic, 100.0, 0.0, 1.0f), x);
+    const auto c0 = run (EffectKind::sentryGate, gate (sg::Style::classic, 100.0, 0.0, 0.0f), x);
+    const auto open1 = gainAt (c1, x, 0.705), a = gainAt (c1, x, 0.74), b = gainAt (c1, x, 0.76);
+    const auto slope = (a - b) / 20.0; // dB per ms in the straight part (the reference fell ~0.3 dB/ms at release 100 ms)
+    std::printf ("  sentry classic: %.2f dB at +5 ms, fall %.3f dB/ms, revision 0 at +40 ms %.1f dB, revision 1 %.1f dB\n",
+                 open1, slope, gainAt (c0, x, 0.74), a);
+    CHECK (open1 > -0.5);
+    CHECK (slope > 0.2 && slope < 0.4);
+    CHECK (gainAt (c1, x, 1.3) < -38.0 && gainAt (c1, x, 1.3) > -40.5); // lands on the range
+    // Guitar, release 50 ms, no hold: waits 20 + 2.3 × 50 = 135 ms (revision 0: 110 ms + its release)
+    const auto g1 = run (EffectKind::sentryGate, gate (sg::Style::guitar, 50.0, 0.0, 1.0f), x);
+    std::printf ("  sentry guitar: %.2f dB at +120 ms, %.1f dB at +170 ms\n", gainAt (g1, x, 0.82), gainAt (g1, x, 0.87));
+    CHECK (gainAt (g1, x, 0.82) > -0.5 && gainAt (g1, x, 0.87) < -10.0);
+    // Vocal and Upward keep revision 0's gate (their fits did not pass the gate): bit for bit
+    for (auto st : { sg::Style::vocal, sg::Style::upward })
+        CHECK (run (EffectKind::sentryGate, gate (st, 100.0, 20.0, 1.0f), x) == run (EffectKind::sentryGate, gate (st, 100.0, 20.0, 0.0f), x));
+}
+
+TEST (parity190lp_lg_substitutes_and_maps_keep_revision0)
+{
+    using namespace lynx;
+    PluginIdentity id;
+    id.format = ForeignPlugin::Format::vst3;
+    id.name = "SSL X-Limit";
+    const auto* entry = findPluginSubstitute (id, false);
+    CHECK (entry != nullptr);
+    if (entry != nullptr)
+    {
+        const auto slot = makeSubstituteSlot (*entry, &id, nullptr);
+        CHECK (slot.kind == EffectKind::apexLimiter && slot.params[(std::size_t) apex::pRevision] == 0.0f);
+    }
+    PluginIdentity l2;
+    l2.format = ForeignPlugin::Format::vst3;
+    l2.name = "FabFilter Pro-L 2";
+    l2.state = dyn108::fabf (32, { { 0, 6.0f }, { 1, 4.0f }, { 2, 0.2f } });
+    if (const auto* e = findPluginSubstitute (l2, false))
+    {
+        const auto slot = makeSubstituteSlot (*e, &l2, nullptr);
+        CHECK (slot.kind == EffectKind::apexLimiter && slot.params[(std::size_t) apex::pRevision] == 1.0f);
+    }
+}
+
+TEST (parity190lp_lg_apex_unity_and_audition_with_the_output_level)
+{
+    // revision 1 with the default ceiling (−0.1 dB, an output level after the limiter): Unity gain still plays the input
+    // at its own level, and output + what Audition removes = the input after the gain and the level
+    using namespace parity190lplg;
+    auto p = apex (ap::Style::clean, 12.0, -1.0, 1.0f);
+    const auto x = burst (-6.0, 0.4, 0.4);
+    auto q = p;
+    q[ap::pUnity] = 1.0f;
+    const auto u = run (EffectKind::apexLimiter, q, x);
+    double err = 0.0;
+    for (std::size_t i = (std::size_t) (0.02 * sr); i < (std::size_t) (0.15 * sr); ++i) err = std::max (err, (double) std::abs (u[i] - x[i]));
+    CHECK (err < 1e-5);
+    q = p;
+    q[ap::pAudition] = 1.0f;
+    const auto removed = run (EffectKind::apexLimiter, q, x), out = run (EffectKind::apexLimiter, p, x);
+    const auto g = std::pow (10.0, (12.0 - 1.0) / 20.0);
+    err = 0.0;
+    for (std::size_t i = 0; i + 4800 < x.size(); ++i) err = std::max (err, std::abs ((double) out[i] + removed[i] - g * x[i]));
+    std::printf ("  apex revision 1: unity error %.2g, output + removed vs input x gain x level %.2g\n", 0.0, err);
+    CHECK (err < 1e-4);
+}

+ 2 - 2
tests/Parity190lyTests.inc

@@ -130,7 +130,7 @@ TEST (parity190ly_echoform_valhalla_law_fades_at_feedback_100_and_keeps_the_time
 {
     using namespace lynx;
     namespace ef = echosuite::echoform;
-    CHECK ((int) ef::valhallaLaw == (int) ef::revision + 1);
+    CHECK ((int) ef::valhallaLaw == (int) ef::lineLaw + 1); // (after round 190kw's lineLaw since the 190mb merge)
     CHECK (makeEffectSlot (EffectKind::echoform).params[(std::size_t) ef::valhallaLaw] == 0.0f); // a new Echoform: as before
     PluginIdentity id;
     id.format = ForeignPlugin::Format::vst3;
@@ -189,7 +189,7 @@ TEST (parity190ly_epoch_concert_hall_short_decay_trim)
 {
     using namespace lynx;
     namespace ep = verbs::epoch;
-    CHECK (ep::shortTrim == ep::revision + 1 && effectInfo (EffectKind::epochVerb).params.size() == (std::size_t) ep::paramCount);
+    CHECK (ep::shortTrim == ep::loopLaw + 1 && effectInfo (EffectKind::epochVerb).params.size() == (std::size_t) ep::paramCount);
     const auto s = makeEffectSlot (EffectKind::epochVerb);
     CHECK (s.params[(std::size_t) ep::shortTrim] == 1.0f && savedEffectParamCount (s) == (std::size_t) ep::shortTrim + 1);
     auto rev1 = s; // saved by 0.1.30 before this round

+ 3 - 0
tests/Reverb190bzTests.inc

@@ -459,6 +459,9 @@ TEST (reverb190bz_unfitted_modes_stay_close_to_the_classic_law)
     auto slot = makeEffectSlot (EffectKind::epochVerb);
     slot.params[16] = 7.0f / 21.0f; // Bright Hall
     slot.params[12] = 0.0f;         // no modulation
+    // (round 190kw: the 0.1.27 law's neutral numbers, so its revision 0; the loop law of new instances moves Bright Hall's
+    // level with Decay, checked by tests/Parity190kwVvTests.inc)
+    slot.params[(std::size_t) verbs::epoch::revision] = 0.0f;
     Stereo out[2];
     for (int law = 0; law < 2; ++law)
     {

+ 9 - 0
tests/tests.cpp

@@ -17828,6 +17828,15 @@ TEST (fl_low_lifter_matches_fl_engine)
 #include "Parity190ktTests.inc" // round 190kt: REA of the Waves SSLComp DSP, Crest's console law, SSLComp on Crest
 #include "Parity190lnTests.inc" // round 190ln: Eiosis AirEQ / Slate Infinity EQ translated onto Facet EQ in physical units
 #include "Parity190lnKhsTests.inc" // round 190ln: Kilohearts states (kHs snapins, Faturator, Disperser) on LYNX stand-ins
+#include "Parity190lgQ4Tests.inc" // round 190lg: Facet's automatic threshold on Pro-Q 4's structure (revision 1; after Parity190jh / 190js)
+#include "Parity190kwTests.inc" // round 190kw: static REA — Crest's Pro-C 3 V1 / V2 style laws (hidden revision)
+#include "Parity190lgVersTests.inc" // round 190lg: Crest Allround = Pro-C 3 Versatile (revision 1; after Parity190kw: its helpers)
+#include "Parity190lpCrestTests.inc" // round 190lp: Crest Smooth / Op-El = Pro-C 3's own graphs (revision 1; after Parity190kw: its helpers)
+#include "Parity190lgMbTests.inc" // round 190lg: Prism revision 1 on Pro-MB's own band compander graph (after DynamicsTests108: its helpers)
+#include "Parity190lpLgTests.inc" // round 190lp: Apex Limiter / Sentry Gate revision 1, black-box refit on Pro-L 2 / Pro-G (after DynamicsTests108: its helpers)
+#include "Parity190kwTl3Tests.inc" // round 190kw: Timeless 3 states on Echoform (the hidden line law)
+#include "Parity190kwVvTests.inc" // round 190kw: Epoch Verb's level on ValhallaVintageVerb's loop law (after Parity190it: its gold helpers)
+#include "Parity190kwSatTests.inc" // round 190kw: Saturn 2 -> Ember, the styles' own laws (hidden revision)
 #include "Sampler190dhTests.inc"
 #include "Fix190eaTests.inc"
 #include "Iss158Tests.inc"

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
website/_src/plugins.js


Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff