ws-audio2: music/okt (Oktalyzer): it family with ProTracker periods (PAL), mixed channel pairs and their shared volume, three arpeggios, note slides, sustain loops released by R

This commit is contained in:
4DBug committed 2026-10-31 14:40:13 -05:00
1 parent 6b5e8ec6cf
commit 9a5f3796e2
6 files changed
+455

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
-- music/okt tests: generated Oktalyzer modules (tools/fixtures/okt.py) parsed, rendered through codecs/audio/Tracker
-- and compared with openmpt123's render (loudness envelope, band spectrum, stereo balance, song length), the contract,
-- and the fuzz no-throw pass.
local T = require("@tests/T")
local S = require("@tests/music/_similar")
local Okt = require("@formats/music/okt")
local Cases = require("@tests/gen/okt_cases")
local t = T.suite("okt")
t:eq(Okt.name, "okt", "name")
t:eq(Okt.category, "music", "category")
t:check(Okt.caps.decode and not Okt.caps.encode, "caps")
local mods = S.against(t, Okt, Cases, { gainDb = 0.5, envErr = 1.0, spectral = 0.95, balance = 0.04, duration = 0.01 }, "it")
t:check(mods[2] and mods[2].channels == 6, "two mixed pairs: 6 channels")
t:fuzz("decode", S.fuzzer(Okt), S.samples(Cases), { mutations = 30 })
t:done()