Ver Fonte

Helix: FL slide notes, channel porta / mono; the control audit's contexts (rollup 0.1.30)

Helix (round 190ja) failed the three FL-Data audits Tetra failed before round 190ix (73 failures in the rollup's full
suite): issue14_pitch_audit (slide +0 cents), mono168l (no porta) and ctlwake173d (71 controls 'change nothing').
- Each voice keeps a HostSlide added to its pitch at the control step: a note the rack's porta starts takes
  HostSlide::pendingGlide (Helix hears a note's own cents only through the matrix, so the voice starts at the porta's
  offset and glides to its pitch), slideTo moves the held voices; followsChannelPorta is true. Voices without a glide
  add exactly 0 (renders unchanged).
- The 71 were sections a new Helix (Live's default Wavetable) has off or unrouted: oscillator 2, the sub, filter 2,
  envelopes 2 / 3 and the LFOs (no matrix cell), the effect modes at amount 0, Morph / band-pass circuit / Drive on
  their filter types, unison voices / amount, Glide in Mono, the amp loop. Helix hints in tools/CtlWake.h, keys from a
  tools/ctlwake survey (100 controls, 68 dependent, 0 dead) in CtlWake173dKnown.inc; the morph filter's half-cycle try
  also matches 'Filter N Morph'; HiQ is allowed (Helix is always band-limited, the switch is kept for Live's round
  trip). Helix's audit is its own test and runs without FL's Data (CI).
- scripts/ctlwake-known.py took an all-digit hint id (e.g. hint:01290173) for an older survey's index and dropped it.
New tests: rollup030_helix_follows_slide_notes, rollup030_helix_follows_channel_porta_and_mono,
ctlwake173d_generator_controls_helix.
Ka1-S há 2 semanas atrás
pai
commit
4e96e6088b

+ 1 - 1
scripts/ctlwake-known.py

@@ -20,7 +20,7 @@ if args[:1] == ["--hints"]:
 
 
 def stable(engine, key, note):
-    m = re.match(r"hint:(\d+)(\+.*)?$", key)
+    m = re.match(r"hint:(\d{1,5})(\+.*)?$", key)  # (an older survey's index; a stable id is 8 hex digits, some all digits)
     if not m:
         return key
     best = None

+ 31 - 1
src/core/WavetableSynth.cpp

@@ -343,6 +343,7 @@ struct Voice
     std::array<double, 2> lfoPhase {};
     std::array<float, 2> lfoHeld {}, lfoAge {};
     float glideFrom = 0.0f, glidePos = 1.0f;   // semitones below / above the note at the start, 0…1 through the glide
+    HostSlide host;                            // FL's channel porta and slide notes (rollup 0.1.30, core/HostSlide.h): cents
     std::array<OscState, 2> osc {};
     std::uint32_t subPhase = 0;
     FilterState f1, f2;
@@ -452,6 +453,17 @@ struct Engine::Impl
         v.pressure = pressure;
         v.gate = true;
         v.age = ++clock;
+        // FL's channel porta (rollup 0.1.30, as round 190ix's Tetra): the rack starts the note `fromCents` from its own
+        // pitch and puts that in the note's cents, which Helix hears only through the matrix (Live's Note PB): the voice
+        // starts there and glides to its own pitch (HostSlide::pendingGlide); a slide note moves it later (slideTo). The
+        // channel's live pitch moves every voice through pitchOffset, so the slide does not track it.
+        v.host = {};
+        if (auto& g = HostSlide::pendingGlide(); g.samples > 0.0f)
+        {
+            v.host.cents = g.fromCents;
+            v.host.start (0.0f, g.samples);
+            g.taken = true;
+        }
         if (legato && v.active)
             return; // (mono legato: the envelopes go on)
         v.active = true;
@@ -679,7 +691,8 @@ struct Engine::Impl
             v.glidePos = std::min (1.0f, v.glidePos + (float) (dt / g));
         }
         const auto glideNow = v.glideFrom * (1.0f - v.glidePos);
-        auto notePitch = (double) v.key + fp (transpose) + glideNow + pitchOffset + bend + laws.pitchSemis * mod[tgt::pitch];
+        const auto hostSt = v.host.left > 0.0f || v.host.cents != 0.0f ? v.host.advance ((float) n) * 0.01f : 0.0f; // (FL's porta / slides)
+        auto notePitch = (double) v.key + fp (transpose) + glideNow + hostSt + pitchOffset + bend + laws.pitchSemis * mod[tgt::pitch];
         if (p[(std::size_t) matrixIndex (tgt::pitch, src::notePitchBend)] == 0.0)
             notePitch += 0.0; // (the note's own pitch is a matrix source; without its cell it does not move the pitch, as in Live)
         // unison
@@ -1098,6 +1111,15 @@ void Engine::note (int key, float velocity, float pitch, float slide, float pres
     impl->note (key, std::clamp (velocity, 0.0f, 1.0f), std::isfinite (pitch) ? pitch : 0.0f, slide, std::clamp (pressure, 0.0f, 1.0f));
 }
 
+void Engine::slideTo (float semitones, float samples) noexcept
+{
+    if (! std::isfinite (semitones) || ! std::isfinite (samples))
+        return;
+    for (auto& v : impl->voices)
+        if (v.active && v.gate)
+            v.host.start ((semitones - (float) v.key) * 100.0f, std::max (samples, 1.0f));
+}
+
 void Engine::notePitch (int key, float semitones) noexcept
 {
     for (auto& v : impl->voices)
@@ -1596,6 +1618,14 @@ public:
     }
 
     void noteOff (int key) noexcept override { engine.note (std::clamp (key, 0, 127), 0.0f); }
+    // FL's channel porta / Mono and slide notes (rollup 0.1.30, as round 190ix's Tetra): the voices take
+    // HostSlide::pendingGlide at note on and glide to a slide note's pitch (`cents`: the note's cents, as noteOn's)
+    bool followsChannelPorta() const noexcept override { return true; }
+    void slideTo (int key, float cents, float samples) noexcept override
+    {
+        take();
+        engine.slideTo ((float) std::clamp (key, 0, 127) + (cents - liveRest()) * 0.01f, samples);
+    }
     void allNotesOff() noexcept override { engine.allNotesOff(); }
     void panic() noexcept override { engine.reset(); }
     bool idle() const noexcept override { return engine.idle(); }

+ 2 - 0
src/core/WavetableSynth.h

@@ -157,6 +157,8 @@ public:
     void note (int key, float velocity, float pitch = 0.0f, float slide = -1.0f, float pressure = 0.0f) noexcept;
     // MPE: a sounding note's own pitch (semitones), slide (0…1) or pressure (0…1) changed
     void notePitch (int key, float semitones) noexcept;
+    // the held voices glide to `semitones` (a key, with its cents) over `samples` (FL's slide notes; rollup 0.1.30)
+    void slideTo (float semitones, float samples) noexcept;
     void noteSlide (int key, float slide) noexcept;
     void notePressure (int key, float pressure) noexcept;
     void setPitchOffset (float semitones) noexcept;  // the channel's pitch, live

+ 70 - 0
tests/CtlWake173dKnown.inc

@@ -1069,6 +1069,76 @@
 { "Tetra", "Shaper Drive", "hint:33d673ac" },
 { "Tetra", "Shaper Dry/Wet", "hint:33d673ac" },
 { "Tetra", "Tone", "hint:36e8dd18" },
+{ "Helix", "Amp Loop Mode", "hint:77191755+pat:long" },
+{ "Helix", "Env 2 Attack", "hint:e026a009" },
+{ "Helix", "Env 2 Attack Slope", "hint:e026a009" },
+{ "Helix", "Env 2 Decay", "hint:e026a009" },
+{ "Helix", "Env 2 Decay Slope", "hint:e026a009" },
+{ "Helix", "Env 2 Final", "hint:e026a009" },
+{ "Helix", "Env 2 Initial", "hint:e026a009" },
+{ "Helix", "Env 2 Loop Mode", "hint:e026a009" },
+{ "Helix", "Env 2 Peak", "hint:e026a009" },
+{ "Helix", "Env 2 Release", "hint:e026a009" },
+{ "Helix", "Env 2 Release Slope", "hint:e026a009" },
+{ "Helix", "Env 2 Sustain", "hint:e026a009" },
+{ "Helix", "Env 3 Attack", "hint:5948aa8a" },
+{ "Helix", "Env 3 Attack Slope", "hint:5948aa8a" },
+{ "Helix", "Env 3 Decay", "hint:5948aa8a" },
+{ "Helix", "Env 3 Decay Slope", "hint:5948aa8a" },
+{ "Helix", "Env 3 Final", "hint:5948aa8a" },
+{ "Helix", "Env 3 Initial", "hint:5948aa8a" },
+{ "Helix", "Env 3 Loop Mode", "hint:5948aa8a" },
+{ "Helix", "Env 3 Peak", "hint:5948aa8a" },
+{ "Helix", "Env 3 Release", "hint:5948aa8a" },
+{ "Helix", "Env 3 Release Slope", "hint:5948aa8a" },
+{ "Helix", "Env 3 Sustain", "hint:5948aa8a" },
+{ "Helix", "Filter 1 Circuit BP", "hint:1e348583" },
+{ "Helix", "Filter 1 Drive", "hint:b18ef072" },
+{ "Helix", "Filter 1 Morph", "hint:1e348583" },
+{ "Helix", "Filter 1 Type", "hint:b18ef072" },
+{ "Helix", "Filter 2 Circuit", "hint:01290173" },
+{ "Helix", "Filter 2 Circuit BP", "hint:4f1095ee" },
+{ "Helix", "Filter 2 Drive", "hint:f2caf43f" },
+{ "Helix", "Filter 2 Freq", "hint:01290173" },
+{ "Helix", "Filter 2 Morph", "hint:4f1095ee" },
+{ "Helix", "Filter 2 Res", "hint:01290173" },
+{ "Helix", "Filter 2 Slope", "hint:01290173" },
+{ "Helix", "Filter 2 Type", "hint:01290173" },
+{ "Helix", "Filter Routing", "hint:be44d039" },
+{ "Helix", "Glide", "hint:9dac2b69+pat:mono" },
+{ "Helix", "Global Mod Amount", "hint:e026a009" },
+{ "Helix", "LFO 1 Amount", "hint:51886a16" },
+{ "Helix", "LFO 1 Attack", "hint:51886a16" },
+{ "Helix", "LFO 1 Phase", "hint:51886a16" },
+{ "Helix", "LFO 1 Rate", "hint:51886a16" },
+{ "Helix", "LFO 1 Retrigger", "hint:51886a16" },
+{ "Helix", "LFO 1 Shape", "hint:51886a16" },
+{ "Helix", "LFO 1 Shaping", "hint:51886a16" },
+{ "Helix", "LFO 1 Sync", "hint:2461a227" },
+{ "Helix", "LFO 1 Sync Rate", "hint:2461a227" },
+{ "Helix", "LFO 2 Amount", "hint:ee73b925" },
+{ "Helix", "LFO 2 Attack", "hint:ee73b925" },
+{ "Helix", "LFO 2 Phase", "hint:ee73b925" },
+{ "Helix", "LFO 2 Rate", "hint:ee73b925" },
+{ "Helix", "LFO 2 Retrigger", "hint:ee73b925" },
+{ "Helix", "LFO 2 Shape", "hint:ee73b925" },
+{ "Helix", "LFO 2 Shaping", "hint:ee73b925" },
+{ "Helix", "LFO 2 Sync", "hint:28ec87da" },
+{ "Helix", "LFO 2 Sync Rate", "hint:28ec87da" },
+{ "Helix", "Osc 1 Effect Mode", "hint:b28cd253" },
+{ "Helix", "Osc 2 Detune", "hint:be44d039" },
+{ "Helix", "Osc 2 Effect 1", "hint:b28cd253" },
+{ "Helix", "Osc 2 Effect 2", "hint:b28cd253" },
+{ "Helix", "Osc 2 Effect Mode", "hint:b28cd253" },
+{ "Helix", "Osc 2 Gain", "hint:be44d039" },
+{ "Helix", "Osc 2 Pan", "hint:be44d039" },
+{ "Helix", "Osc 2 Pos", "hint:be44d039" },
+{ "Helix", "Osc 2 Transpose", "hint:be44d039" },
+{ "Helix", "Sub Gain", "hint:8a17b21b" },
+{ "Helix", "Sub Octave", "hint:8a17b21b" },
+{ "Helix", "Sub Tone", "hint:8a17b21b" },
+{ "Helix", "Unison Amount", "hint:3cb275e3" },
+{ "Helix", "Unison Voices", "hint:3cb275e3" },
 { "Toxic Biohazard", "Decay", "set:5:0" },
 { "Toxic Biohazard", "FX 1 chorus depth", "hint:f567d98a+pat:long" },
 { "Toxic Biohazard", "FX 1 chorus mix", "hint:f567d98a+pat:long" },

+ 7 - 1
tests/CtlWake173dTests.inc

@@ -61,6 +61,9 @@ const std::vector<Allowed>& allowed()
         // rows only, a filter's input comes from the FM layer (REA_rodada11 §1.5, FUN_0086dd40 [DECOMP + EXEC])
         { "Sytrus", "RM op * to filter *", "fl-inert: FL's voice assembly reads the RM layer for operators only; a filter's input is the FM layer's row (REA_rodada11 §1.5)" },
         { "Harmless", "Threaded", "non-audio: renders the voices on worker threads (same output)" },
+        // (rollup 0.1.30) Helix keeps Live's HiQ switch for the .als round trip; its oscillators are always band-limited
+        // (round 190ja: every table's mipmaps), so the switch changes nothing in LYNX
+        { "Helix", "HiQ", "non-audio: Helix is always band-limited (round 190ja); HiQ is kept for Live's round trip" },
     };
     // FL's Drumaxx engine reads pad 1's Noise Retrig and EG Retrig (pad fields 5, 6) for every pad (REA_rodada67 §6.2),
     // so pads 2…16's own switches do nothing in FL either
@@ -173,7 +176,7 @@ void auditEngines (const std::set<std::string>& names, bool except, bool without
 // the slow engines in tests of their own (the build runs the chunks in parallel)
 const std::set<std::string>& slow()
 {
-    static const std::set<std::string> s { "GMS", "Sawer", "Toxic Biohazard", "Harmless", "Kepler Exo", "Transistor Bass", "Sytrus", "Drumaxx", "Tetra" };
+    static const std::set<std::string> s { "GMS", "Sawer", "Toxic Biohazard", "Harmless", "Kepler Exo", "Transistor Bass", "Sytrus", "Drumaxx", "Tetra", "Helix" };
     return s;
 }
 } // namespace ctlwake173d
@@ -190,6 +193,9 @@ TEST (ctlwake173d_generator_controls_transistor_bass) { ctlwake173d::auditEngine
 TEST (ctlwake173d_generator_controls_drumaxx) { ctlwake173d::auditEngines ({ "Drumaxx" }, false); }
 // (round 190ix: LYNX's own FM synth needs nothing of FL, so it runs on CI too; its contexts are Tetra hints in tools/CtlWake.h)
 TEST (ctlwake173d_generator_controls_tetra) { ctlwake173d::auditEngines ({ "Tetra" }, false, true); }
+// (rollup 0.1.30: Helix, LYNX's own wavetable synth (round 190ja), needs nothing of FL either; its contexts are Helix hints in
+// tools/CtlWake.h, its keys from a tools/ctlwake survey: 100 controls, 0 dead, HiQ allowed)
+TEST (ctlwake173d_generator_controls_helix) { ctlwake173d::auditEngines ({ "Helix" }, false, true); }
 
 // every editor control reads and writes on the engine's new channel: a state saved before a parameter existed (Slayer's
 // version 0, Kepler's 34 floats, Kepler Exo's 151) silently dropped its edits

+ 85 - 0
tests/Rollup030Tests.inc

@@ -153,3 +153,88 @@ TEST (rollup030_directwave_copy_for_an_older_release_completes_short_records)
     auto fullDoc = lynx::dw::readDoc (full);
     CHECK (fullDoc && lynx::dw::completeShortZoneRecords (*fullDoc) == 0 && lynx::dw::writeDoc (*fullDoc) == full);
 }
+
+// Rollup 0.1.30 step 3 (round 190jk): Helix (round 190ja) follows FL's host pitch features as round 190ix made Tetra do: a
+// slide note moves the held voices (issue #14), a Porta channel starts a note at the last one's pitch and glides (round
+// 168l), a Mono channel moves its voice legato. The FL-Data audits check every engine; these run without FL's Data (CI).
+namespace rollup030
+{
+inline lynx::ChannelDef helixChannel()
+{
+    lynx::ChannelDef c;
+    c.name = "Helix";
+    c.instrument = lynx::InstrumentKind::helix;
+    return c;
+}
+} // namespace rollup030
+
+TEST (rollup030_helix_follows_slide_notes)
+{
+    using namespace lynx;
+    const auto c = rollup030::helixChannel();
+    Note held;
+    held.key = 60;
+    held.length = ppq * 8;
+    held.velocity = 0.8f;
+    Note slide;
+    slide.key = 67;
+    slide.start = ppq;
+    slide.length = ppq / 4;
+    slide.slide = true;
+    auto fifth = held;
+    fifth.key = 67;
+    const auto base = issue14::pitchAt (issue14::renderPattern (c, { held }, 0.0f, 1.5), 1.0);
+    const auto ref = issue14::pitchAt (issue14::renderPattern (c, { fifth }, 0.0f, 1.5), 1.0);
+    const auto out = issue14::renderPattern (c, { held, slide }, 0.0f, 1.5);
+    CHECK (base > 200.0 && std::abs (issue14::cents (base, ref) - 700.0) < 10.0);
+    CHECK (std::abs (issue14::cents (ref, issue14::pitchAt (out, 1.0))) < 10.0);
+    CHECK (std::abs (issue14::cents (base, issue14::pitchAt (out, 0.3))) < 10.0); // (before the slide note)
+    const auto mid = issue14::cents (base, issue14::pitchAt (out, 0.53));
+    CHECK (mid > 100.0 && mid < 650.0);
+    // the main pitch still moves a slid voice
+    const auto master = issue14::pitchAt (issue14::renderPattern (c, { held, slide }, 100.0f, 1.5), 1.0);
+    CHECK (std::abs (issue14::cents (ref, master) - 100.0) < 10.0);
+}
+
+TEST (rollup030_helix_follows_channel_porta_and_mono)
+{
+    using namespace lynx;
+    auto inst = makeInstrument (InstrumentKind::helix);
+    CHECK (inst != nullptr && inst->followsChannelPorta() && inst->followsSlides());
+    if (inst == nullptr)
+        return;
+    inst->prepare (48000.0);
+    inst->configure (rollup030::helixChannel(), 120.0);
+    HostSlide::pendingGlide() = { -700.0f, 1000.0f, false };
+    inst->setNextNoteExpression (0.0f, -700.0f, false);
+    inst->noteOn (60, 0.8f);
+    CHECK (HostSlide::pendingGlide().taken);
+    HostSlide::pendingGlide() = {};
+
+    const auto c = rollup030::helixChannel();
+    Note low;
+    low.key = 60;
+    low.velocity = 0.8f;
+    auto high = low;
+    high.key = 67;
+    auto held = low;
+    held.key = 67;
+    held.length = ppq * 8;
+    const auto ref = issue14::pitchAt (issue14::renderPattern (c, { held }, 0.0f, 1.6), 1.0);
+    auto porta = c;
+    setChannelPortamento (porta, true, 1.0f);
+    low.length = ppq / 2;
+    high.start = ppq;
+    high.length = ppq * 3;
+    const auto glide = issue14::renderPattern (porta, { low, high }, 0.0f, 1.6);
+    const auto mid = issue14::cents (ref, issue14::pitchAt (glide, 0.6)), end = issue14::cents (ref, issue14::pitchAt (glide, 1.2));
+    CHECK (mid > -620.0 && mid < -250.0);
+    CHECK (std::abs (end) < 10.0);
+    auto mono = c;
+    setChannelMono (mono, true);
+    low.length = ppq * 2;
+    high.length = ppq * 2;
+    const auto legato = issue14::renderPattern (mono, { low, high }, 0.0f, 1.6);
+    CHECK (std::abs (issue14::cents (ref, issue14::pitchAt (legato, 0.3)) + 700.0) < 10.0);
+    CHECK (std::abs (issue14::cents (ref, issue14::pitchAt (legato, 1.1))) < 10.0);
+}

+ 82 - 1
tools/CtlWake.h

@@ -32,6 +32,7 @@
 
 #include "CtlAudit.h"
 #include "core/FmSynth.h"
+#include "core/WavetableSynth.h"
 #include "core/Morphine.h"
 #include "core/TransistorBass.h"
 
@@ -445,6 +446,84 @@ inline std::vector<Hint> hintsFor (InstrumentKind kind, const std::vector<Contro
             }
             break;
         }
+        case InstrumentKind::helix:
+        {
+            // (rollup 0.1.30, round 190jk) Helix's new channel is Live's default Wavetable (core/WavetableSynth.cpp
+            // defaults): oscillator 1 alone through filter 1 wide open, the sub and filter 2 off, an empty matrix apart from
+            // the MIDI rows, so envelopes 2 / 3 and the LFOs move nothing until a matrix cell routes them; the effects'
+            // modes are heard with their amounts up, a band-pass circuit on a band pass, Morph on the morph type, Drive on
+            // a driven circuit, Unison's voices / amount with a unison mode, Glide on a Mono voice's legato note
+            const auto routed = [] (std::vector<std::pair<int, float>> cells) {
+                return [cells] (ChannelDef& d) {
+                    if ((int) d.modelParams.size() < wt::stateSize)
+                    {
+                        const auto def = helixDefaults();
+                        const auto have = d.modelParams.size();
+                        d.modelParams.resize ((std::size_t) wt::stateSize);
+                        std::copy (def.begin() + (std::ptrdiff_t) have, def.end(), d.modelParams.begin() + (std::ptrdiff_t) have);
+                    }
+                    for (const auto& [cell, v] : cells)
+                        d.modelParams[(std::size_t) cell] = v;
+                };
+            };
+            using namespace wt;
+            named ("oscillator 2 on, a fifth up", { { "Osc 2 On", 1.0f }, { "Osc 2 Transpose", 7.0f }, { "Osc 2 Gain", 0.7f } });
+            named ("both oscillators' effects at half, oscillator 2 on", { { "Osc 1 Effect 1", 0.5f }, { "Osc 1 Effect 2", 0.5f }, { "Osc 2 On", 1.0f },
+                                                                           { "Osc 2 Effect Mode", 3.0f }, { "Osc 2 Effect 1", 0.5f }, { "Osc 2 Effect 2", 0.5f } });
+            named ("the sub on", { { "Sub On", 1.0f }, { "Sub Gain", 0.8f }, { "Sub Tone", 0.5f } });
+            for (int k = 1; k <= 2; ++k)
+            {
+                const auto f = "Filter " + std::to_string (k);
+                std::vector<std::pair<std::string, float>> at1k { { f + " On", 1.0f }, { f + " Freq", 1000.0f }, { f + " Res", 0.8f } };
+                auto plus = [&at1k] (std::vector<std::pair<std::string, float>> more) {
+                    auto v = at1k;
+                    v.insert (v.end(), more.begin(), more.end());
+                    return v;
+                };
+                named ("filter " + std::to_string (k) + " on at 1 kHz, resonant", at1k);
+                named ("filter " + std::to_string (k) + " on at 1 kHz as a morph filter", plus ({ { f + " Type", 4.0f } }));
+                named ("filter " + std::to_string (k) + " on at 1 kHz as a band pass", plus ({ { f + " Type", 2.0f } }));
+                named ("filter " + std::to_string (k) + " on at 1 kHz, a driven circuit", plus ({ { f + " Circuit", 1.0f }, { f + " Drive", 12.0f } }));
+            }
+            named ("both filters on at 1 kHz, filter 2 a high pass", { { "Filter 1 Freq", 1000.0f }, { "Filter 1 Res", 0.8f }, { "Filter 2 On", 1.0f },
+                                                                       { "Filter 2 Type", 1.0f }, { "Filter 2 Freq", 1000.0f }, { "Filter 2 Res", 0.8f } });
+            // envelopes 2 and 3 slow and shaped, routed to oscillator 1's pitch and filter 1 (at 1 kHz); looping on held notes
+            for (int k = 2; k <= 3; ++k)
+            {
+                const auto e = "Env " + std::to_string (k);
+                const auto source = k == 2 ? src::env2 : src::env3;
+                const std::vector<std::pair<std::string, float>> shaped { { e + " Attack", 0.15f }, { e + " Decay", 0.15f }, { e + " Release", 0.2f },
+                                                                          { e + " Sustain", 0.3f }, { e + " Initial", 0.2f }, { e + " Final", 0.5f },
+                                                                          { "Filter 1 Freq", 1000.0f }, { "Filter 1 Res", 0.5f } };
+                const auto cells = routed ({ { matrixIndex (tgt::oscPitch, source), 0.3f }, { matrixIndex (tgt::filterFreq, source), 0.5f } });
+                named (e + " slow and shaped, on oscillator 1's pitch and filter 1", shaped);
+                out.back().apply = cells;
+                auto looping = shaped;
+                looping.push_back ({ e + " Loop Mode", 2.0f });
+                named (e + " slow and shaped, on oscillator 1's pitch and filter 1, looping", looping, "pat:long");
+                out.back().apply = cells;
+            }
+            // the LFOs on oscillator 1's pitch and filter 1: free at 4 Hz, tempo-synced, after a gap
+            for (int k = 1; k <= 2; ++k)
+            {
+                const auto l = "LFO " + std::to_string (k);
+                const auto source = k == 1 ? src::lfo1 : src::lfo2;
+                const auto cells = routed ({ { matrixIndex (tgt::oscPitch, source), 0.3f }, { matrixIndex (tgt::filterFreq, source), 0.5f } });
+                const std::vector<std::pair<std::string, float>> at4 { { l + " Rate", 4.0f }, { l + " Attack", 0.0f }, { "Filter 1 Freq", 1000.0f } };
+                named (l + " at 4 Hz on oscillator 1's pitch and filter 1", at4);
+                out.back().apply = cells;
+                named (l + " tempo-synced on oscillator 1's pitch and filter 1", { { l + " Sync", 1.0f }, { "Filter 1 Freq", 1000.0f } });
+                out.back().apply = cells;
+                named (l + " at 4 Hz on oscillator 1's pitch, a note after a gap", at4, "pat:gap");
+                out.back().apply = cells;
+                named (l + " at 4 Hz on oscillator 1's pitch, its attack slow", { { l + " Rate", 4.0f }, { l + " Attack", 0.3f } });
+                out.back().apply = cells;
+            }
+            named ("unison on (Classic)", { { "Unison Mode", 1.0f }, { "Unison Amount", 0.5f } });
+            named ("mono, a legato second note", { { "Poly", 0.0f }, { "Glide", 0.3f } }, "pat:mono");
+            named ("the amp envelope shaped, held long", { { "Amp Decay", 0.15f }, { "Amp Sustain", 0.3f }, { "Amp Loop Mode", 2.0f } }, "pat:long");
+            break;
+        }
         default:
             break;
     }
@@ -582,7 +661,9 @@ inline std::vector<float> valuesFrom (const Control& k, float v)
         const auto n = std::strlen (tail);
         return k.name.size() >= n && k.name.compare (k.name.size() - n, n, tail) == 0;
     };
-    if (endsWith ("phase") || endsWith ("Phase") || endsWith ("Filter Morph"))
+    // (rollup 0.1.30: Helix's "Filter 1 Morph" / "Filter 2 Morph", the same cyclic morph filter as Tetra's)
+    const auto helixMorph = k.name.rfind ("Filter ", 0) == 0 && endsWith (" Morph");
+    if (endsWith ("phase") || endsWith ("Phase") || endsWith ("Filter Morph") || helixMorph)
         out.push_back (0.5f * (k.low + k.high) + (v < 0.5f * (k.low + k.high) ? 0.0f : -0.25f * (k.high - k.low)));
     return out;
 }