fix: random pitch changes; NNA note cut (not off!) for MOD and S3M

This commit is contained in:
minjaesong
2026-05-02 03:25:57 +09:00
parent f84d317f95
commit 2b91251d6e
3 changed files with 11 additions and 8 deletions

View File

@@ -514,9 +514,10 @@ def build_sample_inst_bin(instruments: list) -> tuple:
inst_bin[base + 21] = env_vol
inst_bin[base + 22] = 0
inst_bin[base + 171] = 0xFF # instrument global volume
inst_bin[base + 176] = 0xFF # default pan = off
inst_bin[base + 181] = 0xFF # filter cutoff = off
inst_bin[base + 182] = 0xFF # filter resonance = off
inst_bin[base + 177] = 0x80 # default pan = centre (unused; pan env "p" flag not set)
inst_bin[base + 182] = 0xFF # filter cutoff = off
inst_bin[base + 183] = 0xFF # filter resonance = off
inst_bin[base + 186] = 1 # NNA: note cut
vprint(f" instrument[{base // 192}] '{inst.name}' ptr: '{ptr}', sampling rate: '{inst.c2spd}'")
if inst.c2spd > 65535: