mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-06 05:28:31 +09:00
it2taud, instrument format changes
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user