mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-06 05:28:31 +09:00
fix: random pitch changes; NNA note cut (not off!) for MOD and S3M
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user