* Mod parser parses patterns, just got to figure out what the period values mean...
[pineappletracker.git] / packedformat
blobe9cae429326fdf7d02d418fa3fb5bf6ce99a83dd
3 resource 0 = song
4 resource 1 = instrument 1
5 ...
6 resource 15 = instrument 15
7 resource 16 = track 1
8 ...
10 resource table:
11         xxxxxxxxxxxxx                   = byte offset into songdata
12         (for each resource)
14 song:
15         0xxxxxx                         = track x, transp 0
16         1xxxxxxyyyy                     = track x, transp y (signed)
17         (times four, for each line)
19 instrument:
20         00000000                        = end
21         0000ccccpppppppp                = command c, parameter p
22         (for each cmd)
24 track:
25         000                             = blank line
26         100xxxxxxx                      = note x, instr 0 (last)
27         110xxxxxxxiiii                  = note x, instr i
28         001ccccpppppppp                 = cmd c, param p
29         101xxxxxxxccccpppppppp          = note x, instr 0 (last), cmd c, param p
30         111xxxxxxxiiiiccccpppppppp      = note x, instr i, cmd c, param p
31         (for each line)