ソースを参照

Merge rea190kw (698d55fdf) into wip/rollup030

Crest's hidden parameters in merge order: busLaw = count (190kt), fetLaw (190ky), revision (190kw; was = count on its branch, colliding with busLaw). revisionOn(): the console and FET laws take precedence over revision 1 when on. The V2 followers' state renamed q0 / q1 / q2 (190kt's console law has c1 / c2 in the same State). website plugins.js regenerated (gen-inspired).
Ka1-S 2 週間 前
親
コミット
73c5bea71d

+ 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) |

+ 156 - 0
docs/PARITY.md

@@ -4292,3 +4292,159 @@ core per CLA-76 instance. No latency.
 **Still off:** the amplifier / output saturation stage, the analog noise and hum, auto make-up, the reset ramps (host
 artefacts in refcap182's first second); X4 (Bluey 12:1) stays at 5 (its release scaling is a model, no Bluey 12:1 step
 probe); CLA-2A, L2, RVerb, H-Delay, PuigTec, Valhalla FutureVerb and Slate / Eiosis not refit (REA_rodada190ky §5–§7).
+
+## 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:** Allround (Versatile) 6.66, Smooth 5.08, Upward 6.62, Two-way (TTM) 7.38, Op-El 5.85 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.
+## 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.

+ 1 - 1
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. |

+ 1 - 1
docs/PLUGIN_FALLBACK.md

@@ -132,7 +132,7 @@ matches by name).
 | D16 Group Repeater | Echoform (round 190lb; the delay role's quarter-note preset, 25 % mix; spec-based, unscored: no capture or state exists) | name | — |
 | 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.

+ 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]

+ 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));

+ 1 - 0
src/core/CleanVoice.h

@@ -108,6 +108,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);

+ 517 - 2
src/core/DynamicsSuite.cpp

@@ -326,6 +326,9 @@ bool consoleLaw (const EffectParams& p) noexcept { return styleOf (p) == Style::
 // round 190ky: the FET law (the hidden fetLaw parameter, any style); its own detector in Crest::detect
 constexpr StyleDef fetDef { 1.0, 1.0, 1.0, 0.0, 1.0, Curve::fet, 0.0, 0.0, 1.0, 0.0, 0.002, 0.0, 0.0, 0.0 };
 int fetVoiceOf (const EffectParams& p) noexcept { return p[fetLaw] > 0.0f ? std::clamp ((int) std::lround (p[fetLaw] * 16.0f) - 1, 0, fetVoices - 1) : -1; }
+// round 190kw's revision 1 (hidden); the console law (190kt) and the FET law (190ky) take precedence when on (rollup 0.1.30
+// step 8: a translated SSLComp / CLA-76 state keeps revision 0 anyway; this keeps a hand-set mix on those laws)
+bool revisionOn (const EffectParams& p) noexcept { return on (p[revision]) && ! consoleLaw (p) && fetVoiceOf (p) < 0; }
 const StyleDef& defOf (const EffectParams& p) noexcept
 {
     if (fetVoiceOf (p) >= 0)
@@ -784,8 +787,17 @@ double consoleSteadyDb (double thresholdDb, double ratio, double kneeDb, double
     return 0.5 * (lo + hi) / nepersPerDb;
 }
 
+namespace
+{
+// round 190kw: the static curve of the revision-1 styles (defined with their laws below); false when the style keeps its
+// fitted law
+bool revisionStaticDb (const EffectParams& p, double inputDb, double& gainDb) noexcept;
+} // namespace
+
 double staticGainDb (const EffectParams& p, double inputDb)
 {
+    if (double g = 0.0; revisionStaticDb (p, inputDb, g))
+        return g;
     const auto& def = defOf (p);
     const auto att = attackMs (p[attack]);
     if (def.curve == Curve::twoWay)
@@ -869,6 +881,261 @@ float characterCurve (Character c, float x) noexcept
 
 namespace
 {
+// ---- round 190kw (REA_rodada190kw §1, static analysis of the reference's binary; LYNX's own code): the three "V1"
+// styles of the reference (Clean, Classic, Opto) compute an instantaneous gain reduction from the side chain's sample
+// level in dB and smooth that reduction (not the level) with a two-stage, program-dependent follower.
+//  - Times: every follower step is c = 1 − exp(−ln 10 / T), T in samples (the time to cover 90 % of a step).
+//  - Attack time = lo + span · a³ (a = the attack knob's position, 0.005 + 250 · a³ ms on the display); release time =
+//    rel · relScale + relBase − 0.9 · relDip · √((attack − attackMin) / (lo + span − attackMin)), at least relBase / 10
+//    (rel = the release knob's 0 … 1 share: 10 ms + 2490 ms · rel on the display).
+//  - Curve: overshoot d = level − threshold through the knee (below), × (1 − 1 / ratio) under 100 : 1, ≤ range, ≥ 0.
+//    Classic is a feedback design: it reads (min (d, range) − its own reduction) × ratio instead of d.
+//  - Knee: a quadratic knee of the knob's width blended with the style's own shape K(d) = B((d − off) / 48) ·
+//    (d − off) · scale (B a cubic Bézier through (0, 0), P1, P2, (1, 1), straight beyond its ends): K alone at 24 dB,
+//    the quadratic knee alone at 72 dB, under 24 dB the shape narrowed by knee / 24.
+struct V1Law
+{
+    double lo, attackMin, span, relBase, relDip, relScale; // seconds
+    double p1x, p1y, p2x, p2y, off, scale;                 // the knee shape
+    int kind;                                              // 0 clean, 1 classic (feedback), 2 opto
+};
+constexpr V1Law v1Laws[3] {
+    { 0.0001, 0.0002, 0.2499, 0.025, 0.09, 1.975, 0.093, 0.287, 0.52, 0.822, -11.0, 0.83, 0 },
+    { 0.003, 0.003, 0.997, 0.04, 0.13, 2.46, 0.0, 1.492, 0.541, 1.0, -3.0, 0.9, 1 },
+    { 0.001, 0.004, 0.249, 0.005, 0.02, 1.195, 0.022, 0.284, 0.76, 0.943, -13.3, 0.7338, 2 },
+};
+// the knee shape, sampled once (−20 … 100 dB, 8192 points, linear in between; straight past 100 dB)
+struct V1Knee
+{
+    static constexpr int points = 8192;
+    static constexpr double lo = -20.0, hi = 100.0;
+    std::array<double, points + 1> t {};
+    double top = 0.0, slope = 0.0;
+    explicit V1Knee (const V1Law& w) noexcept
+    {
+        const auto bez = [&] (double u) {
+            // y on the Bézier where x = u (bisection on its parameter); straight lines past the ends
+            if (u <= 0.0)
+                return w.p1x > 0.0 ? u * w.p1y / w.p1x : 0.0;
+            if (u >= 1.0)
+                return 1.0 + (u - 1.0) * (1.0 - w.p2y) / (1.0 - w.p2x);
+            const auto cx = 3.0 * w.p1x, bx = 3.0 * (w.p2x - w.p1x) - cx, ax = 1.0 - cx - bx;
+            const auto cy = 3.0 * w.p1y, by = 3.0 * (w.p2y - w.p1y) - cy, ay = 1.0 - cy - by;
+            double a = 0.0, b = 1.0, m = 0.5;
+            for (int k = 0; k < 60; ++k)
+            {
+                m = 0.5 * (a + b);
+                ((ax * m + bx) * m + cx) * m < u ? a = m : b = m;
+            }
+            return ((ay * m + by) * m + cy) * m;
+        };
+        const auto shape = [&] (double x) {
+            const auto v = std::max (0.0, x - w.off);
+            return bez (v / 48.0) * v * w.scale;
+        };
+        for (int i = 0; i <= points; ++i)
+            t[(std::size_t) i] = shape (lo + (hi - lo) * i / (points - 1));
+        top = shape (hi);
+        slope = top - shape (hi - 1.0);
+    }
+    double operator() (double x) const noexcept
+    {
+        if (x > lo && x < hi)
+        {
+            const auto f = (x - lo) * (points - 1) / (hi - lo);
+            const auto i = (int) f;
+            return t[(std::size_t) i] + (t[(std::size_t) i + 1] - t[(std::size_t) i]) * (f - i);
+        }
+        return x <= lo ? 0.0 : top + (x - hi) * slope;
+    }
+};
+const V1Knee& v1Knee (int kind) noexcept
+{
+    static const V1Knee k[3] { V1Knee (v1Laws[0]), V1Knee (v1Laws[1]), V1Knee (v1Laws[2]) };
+    return k[kind];
+}
+double v1KneeGain (const V1Knee& shape, double d, double knee) noexcept
+{
+    constexpr double eps = 1.1920928955078125e-07;
+    if (knee < eps)
+        return d;
+    if (std::abs (knee - 24.0) <= eps)
+        return shape (d);
+    const auto half = 0.5 * knee;
+    auto q = d;
+    if (d >= -half && d <= half)
+        q = (half + d) / knee * ((half + d) / knee) * half;
+    const auto k72 = knee / 72.0;
+    if (k72 < 1.0 / 3.0)
+    {
+        const auto s = 3.0 * k72;
+        return (shape (d / s) * s - q) * (s * s) + q;
+    }
+    const auto at = shape (d);
+    return (k72 - 1.0 / 3.0) * 1.5 * (q - at) + at;
+}
+inline double v1Coef (double samples) noexcept
+{
+    const auto t = (double) (float) samples;
+    return t <= 1.1920928955078125e-07 ? 1.0 : 1.0 - std::exp (-2.302585124969482 / t);
+}
+
+// ---- round 190kw (REA_rodada190kw §2): the reference's V2 styles (Vocal, Mastering, Bus, Punch, Pumping) are small
+// graphs of two generic elements, rebuilt here in LYNX's own code:
+//  - a gain computer (quadratic knee of the knob's width, × (1 − 1 / ratio) under 100 : 1, ≤ range, ≥ 0), in dB or as
+//    a reduction share 1 − 10^(−GR / 20);
+//  - a follower: y += (x − y) · c, c = 1 − exp(−ln 10 / (T · rate)); rising uses the attack time, blended towards
+//    0.1 · T · step by (1 − p1) and lengthened by p2 · e^(−step) for small steps; falling uses the release time,
+//    blended towards −0.1 · T · step by (1 − p5) and lengthened by p6 · e^(step) for steps under 10; with auto release
+//    T = k / (√y + 1).
+struct V2Follow
+{
+    double att = 0.0, rel = 0.0, p1 = 1.0, p2 = 0.0, p5 = 1.0, p6 = 0.0, autoK = 0.0;
+    bool autoRel = false;
+};
+// the last coefficient of each direction, reused while the time (in samples, as a float) does not change
+struct V2Cache
+{
+    float t[2] { -1.0f, -1.0f };
+    double c[2] { 1.0, 1.0 };
+};
+inline double v2Step (double& y, double x, const V2Follow& f, double rate, V2Cache& cache) noexcept
+{
+    const auto d = x - y;
+    double t;
+    if (d <= -1.1920928955078125e-07)
+    {
+        t = f.autoRel ? (double) (float) (f.autoK / (std::sqrt (std::max (y, 0.0)) + 1.0)) : f.rel;
+        if (f.p5 != 1.0)
+        {
+            const auto b = (double) (float) (t * d * -0.1);
+            t = (t - b) * f.p5 + b;
+        }
+        if (f.p6 != 0.0 && d > -10.0)
+            t += std::exp (std::max (d, -25.0)) * f.p6;
+    }
+    else
+    {
+        t = f.att;
+        if (f.p1 != 1.0)
+        {
+            const auto b = (double) (float) (t * d * 0.1);
+            t = (t - b) * f.p1 + b;
+        }
+        if (f.p2 != 0.0 && d < 10.0)
+            t += std::exp (std::max (-d, -25.0)) * f.p2;
+    }
+    const auto k = d <= -1.1920928955078125e-07 ? 1 : 0;
+    const auto samples = (float) ((double) (float) t * rate);
+    if (samples != cache.t[k])
+    {
+        cache.t[k] = samples;
+        cache.c[k] = v1Coef (samples);
+    }
+    y += d * cache.c[k];
+    return y;
+}
+// the quadratic knee (width k) of an overshoot
+inline double v2Knee (double over, double k) noexcept
+{
+    if (k > 1.1920928955078125e-07 && over >= -0.5 * k && over <= 0.5 * k)
+        return (0.5 * k + over) / k * ((0.5 * k + over) / k) * (0.5 * k);
+    return over;
+}
+// the running maximum of the last n samples (a monotone queue on fixed storage)
+struct SlidingMax
+{
+    std::vector<double> v;
+    std::vector<long long> at;
+    int head = 0, count = 0;
+    long long now = 0;
+    void setup (int capacity)
+    {
+        v.assign ((std::size_t) capacity, 0.0);
+        at.assign ((std::size_t) capacity, 0);
+        head = count = 0;
+        now = 0;
+    }
+    void clear() noexcept { head = count = 0; now = 0; }
+    double push (double x, int n) noexcept
+    {
+        const int cap = (int) v.size();
+        if (cap == 0)
+            return x;
+        while (count > 0 && v[(std::size_t) ((head + count - 1) % cap)] <= x)
+            --count;
+        if (count == cap)
+        {
+            head = (head + 1) % cap;
+            --count;
+        }
+        v[(std::size_t) ((head + count) % cap)] = x;
+        at[(std::size_t) ((head + count) % cap)] = now;
+        ++count;
+        while (count > 0 && at[(std::size_t) head] < now - n)
+        {
+            head = (head + 1) % cap;
+            --count;
+        }
+        ++now;
+        return v[(std::size_t) head];
+    }
+};
+
+bool revisionStaticDb (const EffectParams& p, double inputDb, double& gainDb) noexcept
+{
+    if (! revisionOn (p))
+        return false;
+    const auto st = styleOf (p);
+    const auto thr = thresholdDb (p[threshold]), rat = ratioOf (p[ratio]), kn = kneeDb (p[knee]);
+    const auto rng = std::max (0.01, rangeDb (p[range]));
+    const auto d = inputDb - thr;
+    if ((st == Style::clean || st == Style::opto) && ! on (p[autoRelease]))
+    {
+        // the per-sample peak detector settles at the peak's target (REA_rodada190kw §1)
+        auto t = v1KneeGain (v1Knee (st == Style::clean ? 0 : 2), d, kn);
+        if (rat < 100.0)
+            t *= 1.0 - 1.0 / rat;
+        gainDb = -std::max (0.0, std::min (t, rng));
+        return true;
+    }
+    if (st == Style::classic && ! on (p[autoRelease]))
+    {
+        // the feedback design settles where both stages hold the target t and the reduction is 2t:
+        // t = knee ((min (d, range) − 2t) · ratio) · (1 − 1/ratio)
+        const auto& shape = v1Knee (1);
+        const auto r = std::min (rat, 100.0);
+        const auto f = [&] (double t) {
+            auto v = v1KneeGain (shape, (std::min (d, rng) - 2.0 * t) * r, kn);
+            if (rat < 100.0)
+                v *= 1.0 - 1.0 / rat;
+            return std::max (0.0, v) - t;
+        };
+        double lo = 0.0, hi = std::max (0.0, d) + 1.0;
+        for (int k = 0; k < 60; ++k)
+            (f (0.5 * (lo + hi)) > 0.0 ? lo : hi) = 0.5 * (lo + hi);
+        gainDb = -2.0 * 0.5 * (lo + hi);
+        return true;
+    }
+    if (st == Style::vocal)
+    {
+        auto g = 0.0;
+        if (thr < -1.1920928955078125e-07)
+            g = 20.0 * std::log10 (dbToGain (inputDb) * (dbToGain (-thr) - 1.0) + 1.0);
+        gainDb = -std::max (0.0, std::min (g, rng));
+        return true;
+    }
+    if (st == Style::mastering || st == Style::bus || st == Style::punch || st == Style::pumping)
+    {
+        auto g = v2Knee (d, kn);
+        if (rat < 100.0)
+            g -= g / rat;
+        gainDb = -std::max (0.0, std::min (g, rng));
+        return true;
+    }
+    return false;
+}
+
 class Compressor final : public Effect
 {
 public:
@@ -894,6 +1161,8 @@ public:
         fetTone.set (sr);
         splitAudio.set (sr);
         splitSide.set (sr);
+        for (auto& h : holdMax) // round 190kw: Mastering's 10 ms hold at up to 8x oversampling
+            h.setup ((int) (rate * 0.01 * 8.0) + 8);
         latencyMs = -1.0; // re-apply the delays
         configure (lastParams);
         reset();
@@ -916,6 +1185,8 @@ public:
                 s.reset();
         for (auto& d : det)
             d = {};
+        for (auto& h : holdMax)
+            h.clear();
         for (auto& pk : peaks)
             pk.fill (0.0f);
         dc.reset();
@@ -973,6 +1244,9 @@ private:
         double cs = 0.0, c1 = 0.0, c2 = 0.0; // round 190kt: the console law's log gain (nepers) and its two capacitors
         double fe[3] {}, fg = 1.0; // round 190ky: the FET law's three followers and the gain it applies now (linear)
         int holdLeft = 0, gainHold = 0, peakPos = 0;
+        double v0 = 0.0, v1 = 0.0, v2 = 0.0, held = 0.0; // round 190kw: the V1 styles' follower (reduction, dB) and hold
+        double q0 = 0.0, q1 = 0.0, q2 = 0.0, lp1 = 0.0, lp2 = 0.0; // round 190kw: the V2 styles' followers, Mastering's smoother
+        V2Cache k0, k1, k2;
     };
 
     // per-chunk settings at the rate the detector runs at
@@ -994,6 +1268,16 @@ private:
         const FetVoiceFit* fv = nullptr;
         double fT1 = 0.0, fW1 = 1.0, fS1 = 0.0;
         double fA[3] {}, fR[3] {}, fWt[3] {};
+        // round 190kw: the V1 law (revision 1, Clean / Classic / Opto): attack and release in samples
+        const V1Law* v1 = nullptr;
+        const V1Knee* v1Shape = nullptr;
+        double v1A = 0.0, v1R = 0.0;
+        // round 190kw: the V2 law (revision 1): 3 vocal, 4 mastering, 5 bus, 6 punch, 7 pumping (the reference's order)
+        int v2 = 0;
+        V2Follow f0, f1, f2;
+        double vocalBase = 0.0; // Vocal: the second follower's release before the programme adds to it
+        int holdN = 0;          // Mastering: the reduction's 10 ms peak hold
+        double lpB0 = 0.0, lpB1 = 0.0, lpB2 = 0.0, lpA1 = 0.0, lpA2 = 0.0;
     };
     double styleGain (const Ctx& x, double level) const noexcept
     {
@@ -1129,12 +1413,238 @@ private:
         }
         c.holdSamples = (int) (holdMs (p[hold]) * 0.001 * rate);
         c.window = sd.windowMs > 0.0 ? std::clamp ((int) (sd.windowMs * 0.001 * rate), 1, peakWindow) : 0;
+        // (with Auto release on, the V1 styles keep the fitted law: the reference's auto-release table is not rebuilt)
+        if (revisionOn (p) && ! on (p[autoRelease]) && (c.st == Style::clean || c.st == Style::classic || c.st == Style::opto))
+        {
+            const auto& w = v1Laws[c.st == Style::clean ? 0 : (c.st == Style::classic ? 1 : 2)];
+            c.v1 = &w;
+            c.v1Shape = &v1Knee (w.kind);
+            const auto a3 = std::clamp ((att - 0.005) / 250.0, 0.0, 1.0);
+            const auto rel = std::clamp ((releaseMs (p[release]) - 10.0) / 2490.0, 0.0, 1.0);
+            const auto attS = w.lo + w.span * a3;
+            const auto clampA = std::clamp (attS, w.attackMin, w.lo + w.span);
+            const auto relS = std::max (w.relBase * 0.1, rel * w.relScale + w.relBase
+                                        - std::sqrt ((clampA - w.attackMin) / (w.lo + w.span - w.attackMin)) * 0.9 * w.relDip);
+            c.v1A = attS * rate;
+            c.v1R = relS * rate;
+            c.window = 0;
+        }
+        else if (revisionOn (p) && (c.st == Style::vocal || c.st == Style::mastering || c.st == Style::bus
+                                      || c.st == Style::punch || c.st == Style::pumping))
+        {
+            // the knob laws (REA_rodada190kw §2): attack a³ · 0.25 s, release 2.5 s · tan (1.2 r²) / tan (1.2), the
+            // auto release's constant 3.6 r² + 0.1
+            const auto a3 = std::clamp ((att - 0.005) / 250.0, 0.0, 1.0);
+            const auto rel = std::clamp ((releaseMs (p[release]) - 10.0) / 2490.0, 0.0, 1.0);
+            const auto r2 = std::atan (rel * std::tan (1.2)) / 1.2;
+            const auto attS = a3 * 0.25, relS = rel * 2.5;
+            auto autoK = r2 * 3.6 + 0.1;
+            c.v2 = c.st == Style::vocal ? 3 : c.st == Style::mastering ? 4 : c.st == Style::bus ? 5 : c.st == Style::punch ? 6 : 7;
+            c.f0 = c.f1 = c.f2 = {};
+            V2Follow* last = &c.f0;
+            switch (c.v2)
+            {
+                case 3:
+                    c.f0.att = 0.25; c.f0.rel = 0.5;
+                    c.f1.att = a3 * 0.4; c.f1.p5 = 0.25;
+                    c.vocalBase = std::min (0.5 * std::sqrt (a3), 10.0) + rel + 0.005;
+                    autoK *= 0.5;
+                    last = &c.f1;
+                    break;
+                case 4:
+                    c.f0.att = std::max (0.0, 0.025 - relS * 0.1) + attS + 0.025; c.f0.p6 = 1.0;
+                    c.f1.att = attS + 5e-5; c.f1.rel = relS + 0.1;
+                    c.holdN = (int) (rate * 0.01);
+                    {
+                        // a 10 Hz two-pole low-pass on the held reduction (Butterworth, bilinear)
+                        const auto k = std::tan (3.141592653589793 * 10.0 / rate), q = 1.0 / std::sqrt (2.0);
+                        const auto n = 1.0 / (1.0 + k / q + k * k);
+                        c.lpB0 = k * k * n; c.lpB1 = 2.0 * c.lpB0; c.lpB2 = c.lpB0;
+                        c.lpA1 = 2.0 * (k * k - 1.0) * n; c.lpA2 = (1.0 - k / q + k * k) * n;
+                    }
+                    last = &c.f1;
+                    break;
+                case 5:
+                    c.f0.att = 0.35; c.f0.rel = 0.8;
+                    c.f1.rel = relS * 0.1 + 0.015; c.f1.p5 = 0.0;
+                    c.f2.att = attS + 0.0003; c.f2.rel = relS + 0.015; c.f2.p1 = 0.5; c.f2.p5 = 0.75; c.f2.p6 = 0.3;
+                    last = &c.f2;
+                    break;
+                case 6:
+                    c.f0.att = attS + 0.0001; c.f0.rel = relS + 0.05; c.f0.p1 = 0.9;
+                    break;
+                default:
+                    c.f0.rel = 0.5 * relS + 0.025;
+                    c.f1.att = attS; c.f1.rel = 0.5 * relS + 0.025;
+                    c.f2.att = 5e-5; c.f2.rel = 0.5 * relS + 0.005; c.f2.p5 = 0.25;
+                    last = &c.f2;
+                    break;
+            }
+            last->autoRel = on (p[autoRelease]);
+            last->autoK = autoK;
+            c.window = 0;
+        }
         return c;
     }
 
     // one detector step: the level → the gain (dB) the compressor applies now
+    // round 190kw: the V1 styles (REA_rodada190kw §1): the instantaneous reduction (dB, ≥ 0) of the sample level, then
+    // the style's two-stage follower; returns the gain (dB, ≤ 0)
+    double detectV1 (int c, double level, const Ctx& x) noexcept
+    {
+        auto& d = detCur[c];
+        const auto& w = *x.v1;
+        const auto in = std::max (-200.0, 20.0 * std::log10 (level + 1e-30));
+        auto over = in - x.thr;
+        const auto r = std::min (x.rat, 100.0);
+        if (w.kind == 1)
+            over = (std::min (over, x.rng) - d.v0) * r;
+        auto t = v1KneeGain (*x.v1Shape, over, x.kn);
+        if (x.rat < 100.0)
+            t *= 1.0 - 1.0 / x.rat;
+        if (w.kind != 1)
+            t = std::min (t, x.rng);
+        t = std::max (t, 0.0);
+        const auto P = x.rate, A = x.v1A, R = x.v1R;
+        if (w.kind == 0) // Clean: a slow stage (memory) under the main one
+        {
+            d.v1 += (t - d.v1) * v1Coef (t <= d.v1 ? 0.2 * P + R : 100.0 * A + 2.0 * P);
+            const auto y = std::max (d.v1, t);
+            const auto dt = y <= d.v0 ? R : std::exp (std::max (d.v0 - y, -25.0)) * (0.05 * P - 0.2 * A) + A;
+            d.v0 += (y - d.v0) * v1Coef (dt);
+            d.v2 = d.v0 - d.v1;
+        }
+        else if (w.kind == 1) // Classic: the reduction is the two stages' sum
+        {
+            d.v1 += (t - d.v1) * v1Coef (t <= d.v1 ? 2.0 * P - 1.8 * A : 0.43 * P + 100.0 * A);
+            const auto y = std::max (d.v1, t);
+            const auto dt = y <= d.v2 ? R : std::exp (std::max (d.v2 - y, -25.0)) * 10.0 * (2.0 * P - A) + A;
+            d.v2 += (y - d.v2) * v1Coef (dt);
+            d.v0 = d.v2 + d.v1;
+        }
+        else // Opto: the release slows for large steps (square root of the distance past 1 dB), then a 4 ms smoother
+        {
+            if (t <= d.v0)
+            {
+                auto v = t - d.v1;
+                if (v < -1.0)
+                    v = -std::sqrt (-v);
+                d.v1 += v1Coef (R) * v;
+                d.v0 += v1Coef (0.004 * P) * (d.v1 - d.v0);
+            }
+            else
+            {
+                d.v0 += (t - d.v0) * v1Coef (std::exp (std::max (d.v0 - t, -25.0)) * (0.05 * P - 0.2 * A) + A);
+                d.v1 = d.v0;
+            }
+        }
+        auto gr = d.v0;
+        if (x.holdSamples > 0) // the reduction's peaks held for the Hold time
+        {
+            if (gr >= d.held)
+            {
+                d.held = gr;
+                d.holdLeft = x.holdSamples;
+            }
+            else if (d.holdLeft > 0)
+            {
+                --d.holdLeft;
+                gr = d.held;
+            }
+            else
+                d.held = gr;
+        }
+        d.sustain = x.slowCoef * d.sustain + (1.0 - x.slowCoef) * gr;
+        return -gr;
+    }
+
+    // round 190kw: the V2 styles (REA_rodada190kw §2); `x0`: the side chain's level (linear magnitude, after the link)
+    double detectV2 (int c, double x0, const Ctx& x) noexcept
+    {
+        auto& d = detCur[c];
+        const auto rate = x.rate;
+        const auto mag = std::abs (x0);
+        const auto levelDb = mag > 1e-10 ? std::max (-180.0, 20.0 * std::log10 (mag)) : -180.0;
+        const auto curve = [&] (double lev) {
+            auto g = v2Knee (lev - x.thr, x.kn);
+            if (x.rat < 100.0)
+                g -= g / x.rat;
+            return std::max (0.0, std::min (g, x.rng));
+        };
+        const auto share = [] (double grDb) { return 1.0 - std::exp (-grDb * 0.1151292546497023); };
+        const auto toDb = [] (double r) { return std::min (180.0, -20.0 * std::log10 (std::max (std::abs (1.0 - r), 1e-9))); };
+        double gr = 0.0;
+        switch (x.v2)
+        {
+            case 3: // Vocal: its own curve, 20 log10 (1 + |x| (10^(−thr / 20) − 1)), no ratio
+            {
+                auto g = 0.0;
+                if (x.thr < -1.1920928955078125e-07)
+                    g = std::max (-180.0, 20.0 * std::log10 (mag * (std::exp (-x.thr * 0.1151292546497023) - 1.0) + 1.0));
+                const auto r = share (std::max (0.0, std::min (g, x.rng)));
+                v2Step (d.q0, r, x.f0, rate, d.k0);
+                auto f1 = x.f1;
+                f1.rel = x.vocalBase + 10.0 * std::pow (std::max (d.q0, 0.0), 5.5);
+                v2Step (d.q1, std::max (std::abs (r), std::abs (d.q0)), f1, rate, d.k1);
+                gr = toDb (d.q1);
+                break;
+            }
+            case 4: // Mastering: the reduction share, held 10 ms, smoothed, its own slow follower, the main follower
+            {
+                const auto r = share (curve (levelDb));
+                const auto h = holdMax[(std::size_t) c].push (r, x.holdN);
+                const auto e = x.lpB0 * h + d.lp1;
+                d.lp1 = x.lpB1 * h - x.lpA1 * e + d.lp2;
+                d.lp2 = x.lpB2 * h - x.lpA2 * e;
+                v2Step (d.q0, e, x.f0, rate, d.k0);
+                v2Step (d.q1, std::max (std::abs (r), std::abs (d.q0)), x.f1, rate, d.k1);
+                gr = toDb (d.q1);
+                break;
+            }
+            case 5: // Bus: dB domain, three followers behind maxima
+            {
+                const auto g = curve (levelDb);
+                v2Step (d.q0, g, x.f0, rate, d.k0);
+                v2Step (d.q1, std::max (std::abs (g), std::abs (d.q0)), x.f1, rate, d.k1);
+                gr = v2Step (d.q2, std::max (std::abs (g), std::abs (d.q1)), x.f2, rate, d.k2);
+                break;
+            }
+            case 6: // Punch: one follower on the dB reduction
+                gr = v2Step (d.q0, curve (levelDb), x.f0, rate, d.k0);
+                break;
+            default: // Pumping: two followers on the side chain's level itself, then the curve, then a fast follower
+            {
+                v2Step (d.q0, x0, x.f0, rate, d.k0);
+                v2Step (d.q1, d.q0, x.f1, rate, d.k1);
+                const auto m = std::abs (d.q1);
+                gr = v2Step (d.q2, curve (m > 1e-10 ? std::max (-180.0, 20.0 * std::log10 (m)) : -180.0), x.f2, rate, d.k2);
+                break;
+            }
+        }
+        gr = std::max (gr, 0.0);
+        if (x.holdSamples > 0)
+        {
+            if (gr >= d.held)
+            {
+                d.held = gr;
+                d.holdLeft = x.holdSamples;
+            }
+            else if (d.holdLeft > 0)
+            {
+                --d.holdLeft;
+                gr = d.held;
+            }
+            else
+                d.held = gr;
+        }
+        d.sustain = x.slowCoef * d.sustain + (1.0 - x.slowCoef) * gr;
+        return -gr;
+    }
+
     double detect (int c, double level, const Ctx& x) noexcept
     {
+        if (x.v1 != nullptr)
+            return detectV1 (c, level, x);
         auto& d = detCur[c];
         if (x.window > 0) // the peak of the last `window` samples
         {
@@ -1259,14 +1769,18 @@ private:
             const auto la = std::abs (a[i]), lb = std::abs (b[i]);
             const auto m = (double) std::max (la, lb);
             float g[2];
-            const auto g0 = detect (0, link * m + (1.0 - link) * la, x);
+            // round 190kw: the V2 styles read the same linked magnitude (Pumping's first followers included: measured,
+            // the signed sample scored lower on every block)
+            const auto g0 = x.v2 > 0 ? detectV2 (0, link * m + (1.0 - link) * la, x)
+                                     : detect (0, link * m + (1.0 - link) * la, x);
             g[0] = (float) dbToGain (g0);
             maxGr = std::max (maxGr, -g0);
             if (both)
                 g[1] = g[0];
             else
             {
-                const auto g1 = detect (1, link * m + (1.0 - link) * lb, x);
+                const auto g1 = x.v2 > 0 ? detectV2 (1, link * m + (1.0 - link) * lb, x)
+                                         : detect (1, link * m + (1.0 - link) * lb, x);
                 g[1] = (float) dbToGain (g1);
                 maxGr = std::max (maxGr, -g1);
             }
@@ -1583,6 +2097,7 @@ private:
     std::array<int, scBands> scCount {};
     bool scEqOn = false;
     std::array<Detector, 2> det {};
+    std::array<SlidingMax, 2> holdMax; // round 190kw: Mastering's 10 ms peak hold (sized in prepare for up to 8x)
     std::array<std::array<float, peakWindow>, 2> peaks {};
     // round 190al: the two-way style's low and high bands (the mid band uses the detectors and gain delay above)
     static constexpr int bandGainCapacity = 8192; // the look-ahead at the base rate (20 ms at 192 kHz), with room

+ 7 - 1
src/core/DynamicsSuite.h

@@ -80,7 +80,13 @@ enum Param
     // revisions × the four ratio buttons and all buttons); the knobs keep their meaning: threshold = the control
     // level's knee, ratio = 1 + the first term's slope, knee = its width (dB), attack / release = the followers' time
     // constants (each follower at fitted multiples of them)
-    fetLaw
+    fetLaw,
+    // round 190kw, hidden (not in the info: no control, no text; saved while non-zero; after busLaw / fetLaw since the
+    // 0.1.30 rollup, step 8; either of those laws, 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
 };
 constexpr int fetVoices = 10;
 float fetLawValue (int voice) noexcept; // voice 0 … 9 → the fetLaw value (voice + 1) / 16

+ 83 - 4
src/core/EchoSuite.cpp

@@ -739,6 +739,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; }
@@ -1041,6 +1078,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)
         {
@@ -1177,6 +1217,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);
@@ -1407,6 +1460,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)
             {
@@ -1485,7 +1541,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;
@@ -1563,8 +1622,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
@@ -1609,7 +1670,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
@@ -1618,7 +1679,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)
@@ -2284,6 +2345,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

@@ -127,8 +127,19 @@ enum Param
     // heard once on the echoes instead of on every pass, the voicing's diffusion inside the echo time, the echoes'
     // 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
+    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 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

+ 13 - 0
src/core/Effects.cpp

@@ -4631,8 +4631,12 @@ 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;
     // 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 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::halo) slot.params[(std::size_t) verbs::halo::revision] = 1.0f;
@@ -4743,6 +4747,9 @@ void upgradeLoadedEffectParams (EffectSlot& slot, std::size_t savedCount) noexce
     // 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;
     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
@@ -4820,6 +4827,9 @@ void upgradeLoadedEffectParams (EffectSlot& slot, std::size_t savedCount) noexce
         }
         if (rev >= 0 && savedCount <= (std::size_t) rev)
             slot.params[(std::size_t) rev] = 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)
@@ -4851,6 +4861,9 @@ void upgradeLoadedEffectParams (EffectSlot& slot, std::size_t savedCount) noexce
     // 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 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;

+ 174 - 0
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;
 }
 
@@ -803,6 +805,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 +993,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;

+ 81 - 2
src/core/LynxVerbs.cpp

@@ -1731,6 +1731,70 @@ LYNX_FIT_TABLE Rev1Trim epochTrim[epoch::modeCount] = {
     { -6.17, { 1.19, -1.22, -1.27, 0.88, 0.86, 2.55, -1.82, -11.16 } }, // Vintage Chamber
     { -2.85, { 0.07, -5.03, -1.68, 1.48, 1.22, 4.32, -0.31, -12.19 } }, // Vintage Hall
 };
+// 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))
@@ -1958,7 +2022,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]);
@@ -1967,7 +2035,18 @@ 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));
+            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);
+            }
         }
     }
 };

+ 3 - 0
src/core/LynxVerbs.h

@@ -163,6 +163,9 @@ 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 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 modeCount = 22;
 constexpr int colourCount = 3;
 const char* modeName (int index) noexcept;

+ 13 - 1
src/core/PluginSubstitutes.cpp

@@ -430,8 +430,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]
@@ -4082,6 +4090,10 @@ 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;
     for (const auto& [index, value] : entry.preset)
         if (index >= 0 && index < maxEffectParams)
             slot.params[(std::size_t) index] = value;

+ 3 - 1
tests/DynamicsTests108.inc

@@ -719,7 +719,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/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);
 }

+ 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);

+ 2 - 1
tests/Parity190itTests.inc

@@ -88,7 +88,8 @@ 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);
-        CHECK (savedEffectParamCount (s) == (std::size_t) rev + 1); // saved, since it is not zero
+        // saved, since it is not zero (round 190kw: Epoch's loop law, one further, is saved with it)
+        CHECK (savedEffectParamCount (s) == (std::size_t) rev + (kind == EffectKind::epochVerb ? 2 : 1));
         auto now = s;
         upgradeLoadedEffectParams (now, (std::size_t) rev + 1);
         CHECK (now.params[(std::size_t) rev] == 1.0f);

+ 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, 0x4037e9ad90954ffbull },

+ 177 - 0
tests/Parity190kwTests.inc

@@ -0,0 +1,177 @@
+// 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);
+    CHECK (info.params.size() == (std::size_t) cr::revision); // hidden: no control, no string
+    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 + 1);
+    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);
+}

+ 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)
     {

+ 3 - 0
tests/tests.cpp

@@ -17826,6 +17826,9 @@ TEST (fl_low_lifter_matches_fl_engine)
 #include "Parity190lbTests.inc" // round 190lb: black-box study (no decryption); SSL 4K G Pink EQ + output ceiling
 #include "Harrison190leTests.inc" // round 190le: Ridge Strip's 32C voicing (Harrison 32Classic EQ law)
 #include "Parity190kyTests.inc" // round 190ky: Crest's FET law (REA of the Waves CLA-76 DSP), CLA-76 on it
+#include "Parity190kwTests.inc" // round 190kw: static REA — Crest's Pro-C 3 V1 / V2 style laws (hidden revision)
+#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 "Sampler190dhTests.inc"
 #include "Fix190eaTests.inc"
 #include "Iss158Tests.inc"

ファイルの差分が大きいため隠しています
+ 0 - 0
website/_src/plugins.js


この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません