it2taud, instrument format changes

This commit is contained in:
minjaesong
2026-04-29 09:21:28 +09:00
parent e7287fae37
commit 2282e0c10b
3 changed files with 1704 additions and 33 deletions

View File

@@ -2001,13 +2001,28 @@ Instrument bin: Registry for 256 instruments, formatted as:
Uint16 Play Start (usually 0 but not always)
Uint16 Loop Start (can be smaller than Play Start)
Uint16 Loop End
Bit32 Flags
Bit8 Sample Flags
0b hhhh 00pp
h: sample pointer high bit
pp: loop mode. 0-no loop, 1-loop, 2-backandforth, 3-oneshot (ignores note length unless overridden by other notes)
Bit16x24 Volume envelopes
Byte 1: Volume
Bit8 Volume envelope sustain loops
0b u0 eee sss
s: sustain loop start index
e: sustain loop end index
u: set to enable the loop
Bit8 Panning envelope sustain loops
0b u0 eee sss
s: sustain loop start index
e: sustain loop end index
u: set to enable the loop
Bit8 Reserved
Bit16x8 Volume envelopes
Byte 1: Volume (00..3F)
Byte 2: Second offset from the prev point, in 3.5 Unsigned Minifloat
Bit16x8 Panning envelopes
Byte 1: Pan (00..FF)
Byte 2: Second offset from the prev point, in 3.5 Unsigned Minifloat
Bit16x8 Reserved
Play Data: play data are series of tracker-like instructions, visualised as: