Browse Source

Wave Traveller: native-engine and pitch-audit tests know it plays the channel's sample; spec status

Ka1-S 1 month ago
parent
commit
f44bbd9f9e

+ 2 - 2
docs/analise/REA_rodada167f-wavetraveller.md

@@ -151,5 +151,5 @@ LYNX reproduces exactly.
 - Pitch changes after the note starts (pitch bend, slides) do not change a sounding voice's speed in FL either (the
   step is computed at trigger) [DECOMP]; LYNX matches.
 
-Where I stopped: spec complete; engine, import, save/load, editor, i18n and tests done; next would be FL's own
-converter for non-44.1 kHz samples and the real SmpRateConv value.
+Where I stopped: done — spec, engine, import, save / load, editor, 15 languages, tests (full core suite green on
+2026-10-31). Open: FL's own converter for samples not at 16-bit / 44.1 kHz and the host's real SmpRateConv value.

+ 2 - 1
tests/Issue14bugsTests.inc

@@ -126,7 +126,8 @@ TEST (issue14_pitch_audit_of_the_instruments)
     // the pitch of a guitar / string model and of drums can't be read by the autocorrelation estimate (Sakura: C4 reads as
     // 870 Hz and G4 lower than C4; Ogun's held C4 reads 2 octaves apart at 0.3 s and 1.0 s, its slide +726…+740 cents at
     // 0.6…0.65 s with LYNX_PITCH_TRACE; Drumpad doesn't follow the key)
-    const std::set<std::string> unreadable { "FL Slayer", "Fruity Granulizer", "Drumaxx", "Fruit Kick", "BassDrum", "Drumpad", "Sakura", "Ogun" };
+    // Wave Traveller plays the channel's sample (none here: silent, as FL) and its pitch changes the curve's speed (REA_rodada167f)
+    const std::set<std::string> unreadable { "FL Slayer", "Fruity Granulizer", "Wave Traveller", "Drumaxx", "Fruit Kick", "BassDrum", "Drumpad", "Sakura", "Ogun" };
     // Plucked! reads Final.Pitch only when a voice starts (REA_rodada65 §1.2: it sizes the delay line): FL can't glide it
     const std::set<std::string> noSlide { "Plucked!" };
     const auto fl = natives142::flAccess();

+ 3 - 2
tests/Natives142Tests.inc

@@ -101,7 +101,8 @@ TEST (natives142_lists_and_no_fl_installation)
         if (c)
         {
             CHECK (c->instrument == e.kind && c->name == e.name);
-            CHECK (natives142::renderChannel (*c, none) > 1.0e-3);
+            CHECK (e.kind == InstrumentKind::wavetraveller // (plays the channel's sample: none yet, silent as FL)
+                   || natives142::renderChannel (*c, none) > 1.0e-3);
         }
     }
     for (const auto& e : natives::effectEngines())
@@ -157,7 +158,7 @@ TEST (natives142_engines_from_the_fl_installation)
         }
         ++made;
         CHECK (c->instrument == e.kind && c->name == e.name);
-        if (e.kind == InstrumentKind::granulizer) // (plays the channel's sample: none yet)
+        if (e.kind == InstrumentKind::granulizer || e.kind == InstrumentKind::wavetraveller) // (play the channel's sample: none yet)
             continue;
         const auto rms = natives142::renderChannel (*c, fl, e.kind == InstrumentKind::drumaxx ? 48 : 60);
         CHECK (rms > 1.0e-3 && std::isfinite (rms));