TRACK definition (3 tracks for each sub-song)
Byte Value
Meanings





0 Pattern
First element must be a pattern to execute
1 Pattern/command
Pattern or command to execute
..



xx RST command
The last two bytes must be a restart command
xx+1 position
xx+1 at max is 255










TRACK values
Value
next value
Meanings





0 Pattern 0

Execute pattern 0
..



DE Pattern DE

Execute pattern DE
DF REP number
Repeat the next pattern(s) the specified number of time
E0 TR-15

Set the transpose for next pattern to -15 semitones
E1 TR-14

Set the transpose for next pattern to -14 semitones

..


EE TR-1

Set the transpose for next pattern to -1 semitone
EF TR+0

Set no transpose
F0 TR+1

Set the transpose for next pattern to +1 semitone

..


FD TR+14

Set the transpose for next pattern to +13 semitones
FE TR+15

Set the transpose for next pattern to +14 semitones
FF RST position
Restart to the given position . $FF is for not restarting










NOTE: upper nibble of REP number is the number of next commands to repeat (+1 to add)
lower nibble is the number of time to repeat (+1 to add)

Back