Просмотр исходного кода

Halo: the Mono mode's partly correlated tail and quieter onset, as ValhallaShimmer

Round 183b slice 3, black-box against ValhallaShimmer (tp172d's bank and 13 new
captures with the impulse at -20 dB): in its Mono mode (its default) the tail's
L/R correlation is 0.25 / 0.31 / 0.43 at Size 30 / 50 / 80 % (ours ~0) and its
first 80 ms carry 3.4 dB less of the energy. The side gain follows Size at the
same energy, the early pattern plays at 40 % there. fxparity 3.00 -> 3.25,
verb 6.52 -> 7.17 (31-setting bank 2.66 -> 2.93 / 5.89 -> 6.80); a test pins it
Ka1-S 3 недель назад
Родитель
Сommit
58d7e1e823
4 измененных файлов с 68 добавлено и 0 удалено
  1. 16 0
      docs/PARITY.md
  2. 9 0
      src/core/LynxVerbs.cpp
  3. 42 0
      tests/Verb183bHaloTests.inc
  4. 1 0
      tests/tests.cpp

+ 16 - 0
docs/PARITY.md

@@ -264,6 +264,22 @@ sound.
 | synthetic: HF balance, formant distance (dB) | —, 0.18 | −0.40, 0.28 | −0.04, 0.36 |
 | CPU per instance (block 128, 44.1 kHz, median) | — | ~64 µs (2.3 % RT) | ~65 µs (+1 %) |
 
+## Round 183b slice 3: Halo ← ValhallaShimmer
+
+Measured on tp172d's settings, refs/halo (13 states) and 13 new captures, with the impulse at −20 dB, at Mix 100 %: Mod depth 0 / 60 / 100 %, Mod rate, Size 20 / 80 %, the stereo modes, Feedback 50 / 80 %, Diffusion 50 %. Method and scores as in "Round 183b" (slice 1, Horizon); the bank has 31 settings. **Sound 3 → 4** in the main table (that row is set when the slice lands, so it doesn't clash with slice 1's row next to it).
+
+| LYNX engine | Original | fxparity main / bank | verb main / bank | What changed |
+|---|---|---|---|---|
+| Halo (slice 3) | ValhallaShimmer | 3.00 → 3.25 / 2.66 → 2.93 | 6.52 → 7.17 / 5.89 → 6.80 | Over the bank, the verb's stereo part goes from 7.2 to 9.5 and its early part from 3.5 to 7.6; music scores 2.95 → 3.35 and drums 2.72 → 3.11. |
+
+- **Mono mode** (the reference's default: mono in) gives a partly correlated tail: L/R correlation 0.25 / 0.31 / 0.43 at Size 30 / 50 / 80 %. Ours was ~0, so the side gain now follows Size, and the level is kept equal to the full width. The stereo modes stay at ~0, as the reference's.
+- In Mono mode the reference's first 80 ms hold 3.4 dB less of the energy than ours did, so the early pattern is at 40 % there.
+- **Linearity:** the reference's tail is linear with Mod depth 0. With its modulation on, the 0.5 impulse comes out 2–6 dB fuller below 300 Hz than the −20 dB one. 172d saw the same low end against music; as in slice 1, the fit follows the −20 dB impulse and the programme.
+- **Open:**
+  - The reference's tail fluctuates about twice as much frame to frame (spectral centroid, 385 against 223), even at Mod depth 0. That looks like a sparser, grainier tank, not modulation.
+  - Its RT at Diffusion 50 % (verb 3.8 there).
+  - The tail balance, 2.7 dB off on average.
+
 ## Round 145: SSL Native Vocalstrip 2 (Ridge Strip's Vocal strip voicing)
 
 Round 145 (`docs/analise/REA_rodada145.md`) measured the official Vocalstrip 2 trial (Complete Access) black-box and

+ 9 - 0
src/core/LynxVerbs.cpp

@@ -1408,6 +1408,15 @@ protected:
         s.shimmerEnergy = 0.2; // the shifted voice's share added per pass (× the shimmer amount)
         if (m.stereo == 2)
             s.crossFeed = 0.0, s.splitSides = true; // the two sides stay apart
+        // round 183b: the reference's Mono mode (mono in) gives a partly correlated tail: L/R correlation 0.25 / 0.31 /
+        // 0.43 at Size 30 / 50 / 80 % (its stereo modes: ~0, as this tank's)
+        if (m.stereo == 1)
+        {
+            const auto c = 0.13 + 0.375 * size;
+            s.width = std::sqrt ((1.0 - c) / (1.0 + c));
+            s.gain *= std::sqrt (2.0 / (1.0 + s.width * s.width)); // (the same energy as the full width)
+            s.earlyLevel *= 0.4; // its first 80 ms hold 3.4 dB less of the energy than ours did (impulse at −20 dB)
+        }
     }
 
     // the reference's Mono mode sums the input (mono in, a stereo tail)

+ 42 - 0
tests/Verb183bHaloTests.inc

@@ -0,0 +1,42 @@
+// Round 183b slice 3: Halo (the ValhallaShimmer role), measured black-box on the reference (tp172d's bank and 13 new
+// captures with the impulse at −20 dB: Mod depth, Mod rate, Size, Reverb mode, Feedback, Diffusion). Its Mono mode
+// (mono in) gives a partly correlated tail, more so with Size; its stereo modes stay uncorrelated; its first 80 ms
+// carry less of the energy than this tank's did.
+namespace verb183bhalo
+{
+inline double corr (const verbs100::Stereo& s, std::size_t from, std::size_t to)
+{
+    double lr = 0.0, ll = 0.0, rr = 0.0;
+    for (std::size_t i = from; i < std::min (to, s.l.size()); ++i)
+        lr += (double) s.l[i] * s.r[i], ll += (double) s.l[i] * s.l[i], rr += (double) s.r[i] * s.r[i];
+    return lr / std::sqrt (ll * rr + 1e-30);
+}
+} // namespace verb183bhalo
+
+TEST (halo_mono_mode_stereo_and_onset_verb183b)
+{
+    using namespace verbs100;
+    using lynx::EffectKind;
+    auto p = defaults (EffectKind::halo);
+    p[0] = 1.0f;
+    p[9] = 0.125f; // the reference's Mono mode (its default)
+    const std::size_t from = 2400, to = 48000;
+    p[4] = 0.3f;
+    const auto small = verb183bhalo::corr (impulse (EffectKind::halo, p, 1.0), from, to);
+    p[4] = 0.5f;
+    const auto mid = impulse (EffectKind::halo, p, 3.0);
+    p[4] = 0.8f;
+    const auto big = verb183bhalo::corr (impulse (EffectKind::halo, p, 1.0), from, to);
+    // the reference: 0.25 / 0.31 / 0.43 at Size 30 / 50 / 80 %
+    CHECK (std::abs (verb183bhalo::corr (mid, from, to) - 0.31) < 0.15);
+    CHECK (big > small + 0.05);
+    // its stereo modes: ~0
+    p[4] = 0.5f;
+    p[9] = 0.625f;
+    const auto wide = impulse (EffectKind::halo, p, 3.0);
+    CHECK (std::abs (verb183bhalo::corr (wide, from, to)) < 0.15);
+    // Mono keeps the level of the full width (within 3 dB of the stereo mode at the same settings)
+    CHECK (std::abs (energyDb (mid, 0, mid.l.size()) - energyDb (wide, 0, wide.l.size())) < 3.0);
+    // its first 80 ms carry little of the energy: under −14 dB of the first 3 s in Mono
+    CHECK (energyDb (mid, 0, 3840) - energyDb (mid, 0, mid.l.size()) < -14.0);
+}

+ 1 - 0
tests/tests.cpp

@@ -16425,6 +16425,7 @@ TEST (plugin_layout_options_match_the_engine_values)
 #include "Parity150bTests.inc"
 #include "Parity152Tests.inc"
 #include "Tp172dTests.inc"
+#include "Verb183bHaloTests.inc"
 #include "Parity152aTests.inc"
 #include "Parity152bTests.inc"
 #include "Parity152cTests.inc"