home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 February
/
PCWorld_2000-02_cd.bin
/
Software
/
Servis
/
FFE
/
MOD.SWG
/
0020_PTM.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-09-04
|
3KB
|
61 lines
--------M-PTM-------------------------------
Poly Tracker is a Scream Tracker 3 like tracker written by Lone Ranger
of AcmE. This is a description of version 2.03 of the PTM format. Early
formats are no longer used or supported by the current version of Poly
Tracker (it still says "version 1.0ß", but there have been about a dozen
different versions, including some customized test versions). The
samples are stored using delta-compression.
OFFSET Count TYPE Description
0000h 28 char Songname in ASCIZ format, 0 padded
001Ch 1 char ID=#26
001Dh 1 word File type version, currently 0203h
001Fh 1 byte reserved (0)
0020h 1 word Number of orders
="ORD"
0022h 1 word Number of instruments
="INS"
0024h 1 word Number of patterns
="PAT"
0026h 1 word Number of voices used
="CHN"
0028h 1 word File flags (always 0 ??)
002Ah 1 word reserved (0)
002Ch 4 char ID='PTMF'
0030h 16 byte reserved (0)
0040h 32 byte Pan settings for each channel :
0 = left, 7 = middle, 15 = right
0060h 256 byte Order list, valid entries are 0.."ORD"
0160h 128 word (Pattern offsets) div 16
The instruments data follows immediately after the header.
--- PTM instrument format
There are 0.."INS" instruments in the file, each of the following format :
OFFSET Count TYPE Description
0000h 1 byte Sample type (bit mapped)
0,1 : 0 - no sample (instrument info only)
1 - normal sample (FileOfs / Length fields are valid)
2 - OPL2 / OPL3 instrument (not used)
3 - MIDI instrument (not used)
2 - sample loop (0 = no loop, 1 = loop)
3 - loop type (0 = unidirectional, 1 = bidirectional)
4 - sample resolution (0 = 8 bits, 1 = 16 bits)
0001h 12 char Name of external sample file
000Dh 1 byte Default volume for sample
000Eh 1 word C4 speed
0010h 1 word reserved (0)
0012h 1 dword absolute? offset of sample data
0016h 1 dword Size of sample in bytes
001Ah 1 dword Start of loop
001Eh 1 dword End of loop
0022h 13 byte reserved (0)
0030h 28 char ASCIZ name of sample
004Ch 4 char ID='PTMS'
EXTENSION:PTM
OCCURENCES:PC