ws-audio2: music/ult (UltraTracker): it family, two effect columns folded into the IT volume column, sustain loops, auto tone portamento (also from the volume column)
This commit is contained in:
1 parent
80f5fd2c5b
commit
f3299bf70f
8 files changed
+489
-2
No files matched your search
@@ -0,0 +1,19 @@
|
||||
-- music/ult tests: generated UltraTracker modules (tools/fixtures/ult.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 Ult = require("@formats/music/ult")
|
||||
local Cases = require("@tests/gen/ult_cases")
|
||||
|
||||
local t = T.suite("ult")
|
||||
|
||||
t:eq(Ult.name, "ult", "name")
|
||||
t:eq(Ult.category, "music", "category")
|
||||
t:check(Ult.caps.decode and not Ult.caps.encode, "caps")
|
||||
|
||||
local mods = S.against(t, Ult, Cases, { gainDb = 0.5, envErr = 1.0, spectral = 0.95, balance = 0.04, duration = 0.01 }, "it")
|
||||
t:check(mods[1] and mods[1].samples[3].bits == 16 and mods[1].samples[3].susType == 2, "16-bit ping-pong sustain loop")
|
||||
|
||||
t:fuzz("decode", S.fuzzer(Ult), S.samples(Cases), { mutations = 30 })
|
||||
t:done()
|
||||
Reference in new issue
Block a user