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

  1. --------M-STM-------------------------------
  2.  
  3. The  ScreamTracker  1.0  format  was  the  module  format  used  by  the
  4. ScreamTracker before version 2.0.
  5.  
  6. OFFSET              Count TYPE   Description
  7. 0000h                  20 char   ASCIIZ song name
  8. 0014h                   8 char   Tracker name
  9. 001Ch                   1 byte   ID=1Ah
  10. 001Dh                   1 byte   File type
  11.                                  1 - song (contains no samples)
  12.                                  2 - module (contains samples)
  13. 001Eh                   1 byte   Major version number
  14. 001Fh                   1 byte   Minor version number
  15. 0020h                   1 byte   Playback tempo
  16. 0021h                   1 byte   Number of patterns
  17.                                  ="PAT"
  18. 0022h                   1 byte   Global playback volume
  19. 0023h                  13 byte   reserved
  20. 0030h                  31 rec    Instrument data
  21.                        12 char   ASCIIZ instrument name
  22.                         1 byte   ID=0
  23.                         1 byte   Instrument disk
  24.                         1 word   reserved
  25.                         1 word   Sample length in bytes
  26.                         1 word   Sample loop start
  27.                         1 word   Sample loop end
  28.                         1 byte   Sample playback volume
  29.                         1 byte   reserved
  30.                         1 word   C3 frequency in Hz
  31.                         1 dword  reserved
  32.                         1 word   length in paragraphs
  33.                                  (only for modules,in songs:reserved)
  34. 03D0h                  64 byte   Pattern orders
  35. 0410h          4*64*"PAT" rec    Pattern data. Each pattern consists of
  36.                                  64 rows, each 4 channels. The channels
  37.                                  are stored from left ro right, row by row.
  38.                         1 byte   Note byte :
  39.                                    251 - last 3 bytes not stored, all bytes 0
  40.                                    252 - last 3 bytes not stored, note -0-,
  41.                                          whatever that means.
  42.                                    253 - last 3 bytes not stored, note ...
  43.                                    254 - undefined (reserved for run-time)
  44.                                    255 - undefined (reserved for run-time)
  45.                                    otherwise bit mapped :
  46.                                    0-3 : note (c=0,c#=1...)
  47.                                    4-7 : octave
  48.                         1 byte   Only valid if above byte < 251, bit mapped
  49.                                    0-2 ; lower bit of note volume
  50.                                    3-7 : instrument number
  51.                         1 byte   bit mapped
  52.                                    0-3 : Effect command in ProTracker format
  53.                                          seems to be overlapped by volume
  54.                                          bits...
  55.                                    4-6 : upper bits of volume
  56.                         1 byte   command data in ProTracker format
  57. 0410h+                  ? byte   Raw sample data padded to 16 byte boundaries.
  58.  4*64*4*"PAT"
  59.  
  60. EXTENSION:STM
  61. OCCURENCES:PC
  62. PROGRAMS:ScreamTracker 1.0
  63. REFERENCE:
  64. SEE ALSO:S3M,MOD
  65.  
  66.