| |
Format name
: Tracker Packer v1
Created by : Crazy Crack / MEXX
Sources :
* One TP1 file sent by Gryzor (thx !)
|
OFFSET
|
SIZE (bytes)
|
COMMENT
|
|
0
4
8
1Ch
|
4
4
14h
4
|
- ID "MEXX"
- size of the module
- title
- address of the sample data (in the file !)
|
The following is repeated 31 times
with 8 bytes description for one sample
|
20h
21h
22h
24h
26h
|
1
1
2
2
2
|
- Finetune (0 -> F)
- Volume (0 - 40h)
- Sample Size / 2
- Loop Start / 2
- Loop Size / 2
|
|
118h
119h
11Ah
31Ah
|
1
1
200h
?!?
|
- ?!? ($00)
- size of the pattern list
- pattern addresses (+10000h !)
- pattern data |
we get something like that :
pattern 0 :
row 0 | voice 1 | voice 2 | voice 3 | voice 4 |
row 1 | voice 1 | voice 2 | voice 3 | voice 4 |
row 2 ...
row 63| voice 1 | voice 2 | voice 3 | voice 4 |
pattern 1 : ...
the size of each pattern is variable and is between 100h and 300h
bytes. One voice can be 1,2 or 3 bytes long. it depends if bit 7 of
first byte is set to 1. If so, you have to check if the bit 6 is also
set to 1 or not. If it is set to 1, then it's an empty row. If not,
then, there's only an effect and its value
Note Packing :
* case 1 :
1100-0000
||
if these bits are set, nothing follows and this is an
empty note. it meens for PTK four bytes set to 00h
|
* case 2 :
-description bit set to 0
/
|
1000-0000 0000-0000
| | | | |
| \ / \ /
| effect effect value
\
-description bit set to 1
|
* case 3 (if first bit is set to 0):
0000-0000 0000-0000 0000-0000
|| | | | | | |
/ \ / \ / \/ \ /
| relative sample effect effect
| note number value
| number
|------------description bit set to 0
|
the first bit of 'relative note number' and the last of 'sample number'
are the same but can only be used by the sample number because the note
value is even ... thus, its first bit is never used
relative note number: (Protracker)
C-1 to B-1 : 856,808,762,720,678,640,604,570,538,508,480,453
C-2 to B-2 : 428,404,381,360,339,320,302,285,269,254,240,226
C-3 to B-3 : 214,202,190,180,170,160,151,143,135,127,120,113
|
becomes : (TP1)
C-1 to B-1 : 02,04,06,08,0a,0c,0e,10,12,14,16,18
C-2 to B-2 : 1a,1c,1e,20,22,24,26,28,2a,2c,2e,30
C-3 to B-3 : 32,34,36,38,3a,3c,3e,40,42,44,46,48
|
Follow Sample datas stored
like Protracker. Nothing is packed..
|
|