ws-audio2: music/mtm (MultiTracker) on the tracker engine; engine: m.engine family, m.preamp, flags (periods amiga/hz, fastPortas, autoTonePorta, autoReset, st2Tempo, oktSlides), extension effects (note slides, auto portamento, frequency adjust), codecs/audio/Tracker/Load helpers (OpenMPT BSD)
Engine changes are backward compatible: m.engine defaults to m.format; the channel / sample / instrument global volumes now apply in every family (defaults leave MOD / S3M / XM unchanged); mod/s3m/xm/it tests green.
This commit is contained in:
1 parent
de4f14a343
commit
384cdc407d
13 files changed
+1026
-52
No files matched your search
@@ -0,0 +1,20 @@
|
||||
-- music/mtm tests: generated MultiTracker modules (tools/fixtures/mtm.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 Mtm = require("@formats/music/mtm")
|
||||
local Cases = require("@tests/gen/mtm_cases")
|
||||
|
||||
local t = T.suite("mtm")
|
||||
|
||||
t:eq(Mtm.name, "mtm", "name")
|
||||
t:eq(Mtm.category, "music", "category")
|
||||
t:check(Mtm.caps.decode and not Mtm.caps.encode, "caps")
|
||||
|
||||
local mods = S.against(t, Mtm, Cases, { gainDb = 0.5, envErr = 1.0, spectral = 0.95, balance = 0.04, duration = 0.01 }, "xm")
|
||||
t:check(mods[1] and #mods[1].samples == 5 and mods[1].samples[3].bits == 16, "16-bit sample")
|
||||
t:check(mods[1] and mods[1].meta.message ~= nil, "message")
|
||||
|
||||
t:fuzz("decode", S.fuzzer(Mtm), S.samples(Cases), { mutations = 30 })
|
||||
t:done()
|
||||
Reference in new issue
Block a user