ws-audio2: music/stm (Scream Tracker 2): s3m family with the ST2 tempo byte, deferred Bxx, no effect memory
This commit is contained in:
1 parent
33d87e0c4d
commit
80f5fd2c5b
6 files changed
+396
No files matched your search
@@ -0,0 +1,19 @@
|
||||
-- music/stm tests: generated Scream Tracker 2 modules (tools/fixtures/stm.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 Stm = require("@formats/music/stm")
|
||||
local Cases = require("@tests/gen/stm_cases")
|
||||
|
||||
local t = T.suite("stm")
|
||||
|
||||
t:eq(Stm.name, "stm", "name")
|
||||
t:eq(Stm.category, "music", "category")
|
||||
t:check(Stm.caps.decode and not Stm.caps.encode, "caps")
|
||||
|
||||
local mods = S.against(t, Stm, Cases, { gainDb = 0.5, envErr = 1.0, spectral = 0.95, balance = 0.04, duration = 0.01 }, "s3m")
|
||||
t:check(mods[1] and mods[1].meta.source.tracker == "!Scream!", "tracker name")
|
||||
|
||||
t:fuzz("decode", S.fuzzer(Stm), S.samples(Cases), { mutations = 30 })
|
||||
t:done()
|
||||
Reference in new issue
Block a user