ws-music: music/it read + render (IT 2.14/2.15 decompression, NNA, filters, pitch-pan, OpenMPT note-fade coding), tracker tests tightened, MOD->XM + API checks, tracker bench lines, NOTICE

This commit is contained in:
4DBug committed 2026-10-31 09:31:34 -05:00
1 parent 8b8b64885f
commit 7754646a86
14 files changed
+964 -28

No files matched your search

+2 -2
View File
@@ -305,7 +305,7 @@ def write_it(title, samples, instruments, orders, patterns, channels, speed=6, t
instruments: None (sample mode) or [{name, nna, dct, dca, fadeout, gbv, pan | None, pps, ppc, ifc, ifr,
keymap: [(note, sample)] * 120, volenv / panenv / pitchenv: {points [(tick, value)], loop, sustain, filter}}];
patterns: [[row: [(note, ins, vol, cmd, param)] * channels]] with note 0 = none else IT note + 1 (1 = C-0) or
255 / 254 / 253; vol None or the raw volume byte; cmd 0 = none (A = 1)."""
255 off / 254 cut / 253 fade (stored as 246, like IT); vol None or the raw volume byte; cmd 0 = none (A = 1)."""
ins_list = instruments or []
ordn = list(orders) + [255]
flags = 1 | (4 if instruments else 0) | (8 if linear else 0) | (16 if old else 0) | (32 if compat else 0)
@@ -351,7 +351,7 @@ def write_it(title, samples, instruments, orders, patterns, channels, speed=6, t
if mask:
pk += bytes([(ch + 1) | 128, mask])
if note:
pk.append(note - 1 if note < 253 else note)
pk.append(note - 1 if note < 253 else (246 if note == 253 else note))
if ins:
pk.append(ins)
if vol is not None: