home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 September / Chip_2000-09_cd1.bin / sharewar / Slunec / app / 16 / MOD.SWG / 0020_PTM.pas < prev    next >
Pascal/Delphi Source File  |  1996-09-04  |  3KB  |  61 lines

  1. --------M-PTM-------------------------------
  2.  
  3. Poly  Tracker is a Scream Tracker 3  like tracker written by Lone Ranger
  4. of  AcmE. This is a description of version 2.03 of the PTM format. Early
  5. formats  are no longer used or supported  by the current version of Poly
  6. Tracker (it still says "version 1.0ß", but there have been about a dozen
  7. different  versions,  including  some  customized  test  versions).  The
  8. samples are stored using delta-compression.
  9.  
  10. OFFSET              Count TYPE   Description
  11. 0000h                  28 char   Songname in ASCIZ format, 0 padded
  12. 001Ch                   1 char   ID=#26
  13. 001Dh                   1 word   File type version, currently 0203h
  14. 001Fh                   1 byte   reserved (0)
  15. 0020h                   1 word   Number of orders
  16.                                  ="ORD"
  17. 0022h                   1 word   Number of instruments
  18.                                  ="INS"
  19. 0024h                   1 word   Number of patterns
  20.                                  ="PAT"
  21. 0026h                   1 word   Number of voices used
  22.                                  ="CHN"
  23. 0028h                   1 word   File flags (always 0 ??)
  24. 002Ah                   1 word   reserved (0)
  25. 002Ch                   4 char   ID='PTMF'
  26. 0030h                  16 byte   reserved (0)
  27. 0040h                  32 byte   Pan settings for each channel :
  28.                                  0 = left, 7 = middle, 15 = right
  29. 0060h                 256 byte   Order list, valid entries are 0.."ORD"
  30. 0160h                 128 word   (Pattern offsets) div 16
  31.  
  32. The instruments data follows immediately after the header.
  33.  
  34. --- PTM instrument format
  35.  
  36. There are 0.."INS" instruments in the file, each of the following format :
  37. OFFSET              Count TYPE   Description
  38. 0000h                   1 byte   Sample type (bit mapped)
  39.                                  0,1 : 0 - no sample (instrument info only)
  40.                                        1 - normal sample (FileOfs / Length fields are valid)
  41.                                        2 - OPL2 / OPL3 instrument (not used)
  42.                                        3 - MIDI instrument (not used)
  43.                                  2 - sample loop (0 = no loop, 1 = loop)
  44.                                  3 - loop type (0 = unidirectional, 1 = bidirectional)
  45.                                  4 - sample resolution (0 = 8 bits, 1 = 16 bits)
  46. 0001h                  12 char   Name of external sample file
  47. 000Dh                   1 byte   Default volume for sample
  48. 000Eh                   1 word   C4 speed
  49. 0010h                   1 word   reserved (0)
  50. 0012h                   1 dword  absolute? offset of sample data
  51. 0016h                   1 dword  Size of sample in bytes
  52. 001Ah                   1 dword  Start of loop
  53. 001Eh                   1 dword  End of loop
  54. 0022h                  13 byte   reserved (0)
  55. 0030h                  28 char   ASCIZ name of sample
  56. 004Ch                   4 char   ID='PTMS'
  57.  
  58. EXTENSION:PTM
  59. OCCURENCES:PC
  60.  
  61.