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

  1. --------S-S3I-------------------------------
  2.  
  3. This  is  the  Digiplayer/ST3.0 digital  sample  file format. The sample
  4. files  include  information about the loop  of the instrument. The AdLib
  5. instruments have another format listed below.
  6.  
  7. OFFSET              Count TYPE   Description
  8. 0000h                   1 byte   ID=01h
  9. 0001h                  12 char   DOS filename
  10. 000Dh                   1 byte   reserved (0)
  11. 000Eh                   1 word   Paragraph offset of the raw sample data
  12.                                  from beginning of file.
  13. 0010h                   1 dword  Sample length in bytes
  14. 0014h                   1 dword  Start of sample loop
  15. 0018h                   1 dword  End of sample loop
  16. 001Ch                   1 byte   Playback volumne of sample
  17. 001Dh                   1 byte   ??? "DSK" what ever that means
  18. 001Eh                   1 byte   Pack type
  19.                                  0 - unpacked
  20.                                  1 - DP30ADPCM 1
  21. 001Fh                   1 byte   Flags (bitmapped)
  22.                                  0 - loop on/off
  23.                                  1 - stereo sample (length bytes for left channel,
  24.                                      then another length bytes for right channel!)
  25.                                  2 - 16-Bit samples (in Intel byte order)
  26. 0020h                   1 dword  C2 frequency
  27. 0024h                   1 dword  reserved
  28. 0028h                   1 word   reserved
  29. 002Ah                   1 word   ID=512
  30. 002Ch                   1 dword  ?? Date of last modification ?? (see table 0009)
  31. 0030h                  28 char   ASCIIZ Sample name
  32. 003Ch                   4 char   ID='SCRS'
  33. 0040h                   ? byte   Raw sample data
  34.  
  35. Here  follows  the  AdLib instrument format  for  which I don't know the
  36. extension (yet) :
  37.  
  38. OFFSET              Count TYPE   Description
  39. 0000h                   1 byte   Instrument type
  40.                                  2 - melodic instrument
  41.                                  3 - bass drum
  42.                                  4 - snare drum
  43.                                  5 - tom tom
  44.                                  6 - cymbal
  45.                                  7 - hihat
  46. 0001h                  12 char   DOS file name
  47. 000Dh                   3 byte   reserved
  48. 0010h                   1 byte   Modulator description (bitmapped)
  49.                                  0-3 - frequency multiplier
  50.                                    4 - scale envelope
  51.                                    5 - sustain
  52.                                    6 - pitch vibrato
  53.                                    7 - volume vibrato
  54. 0011h                   1 byte   Carrier description (same as modulator)
  55. 0012h                   1 byte   Modulator miscellaneous (bitmapped)
  56.                                  0-5 - 63-volume
  57.                                    6 - MSB of levelscale
  58.                                    7 - LSB of levelscale
  59. 0013h                   1 byte   Carrier description (same as modulator)
  60. 0014h                   1 byte   Modulator attack / decay byte (bitmapped)
  61.                                  0-3 - Decay
  62.                                  4-7 - Attack
  63. 0015h                   1 byte   Carrier description (same as modulator)
  64. 0016h                   1 byte   Modulator sustain / release byte (bitmapped)
  65.                                  0-3 - Release count
  66.                                  4-7 - 15-Sustain
  67. 0017h                   1 byte   Carrier description (same as modulator)
  68. 0018h                   1 byte   Modulator wave select
  69. 0019h                   1 byte   Carrier wave select
  70. 001Ah                   1 byte   Modulator feedback byte (bitmapped)
  71.                                    0 - additive synthesis on/off
  72.                                  1-7 - modulation feedback
  73. 001Bh                   1 byte   reserved
  74. 001Ch                   1 byte   Instrument playback volume
  75. 001Dh                   1 byte   ??? "DSK"
  76. 001Eh                   1 word   reserved
  77. 0020h                   1 dword  C2 frequency
  78. 0024h                  12 byte   reserved
  79. 0030h                  28 char   ASCIIZ Instrument name
  80. 004Ch                   4 char   ID='SCRI'
  81.  
  82. EXTENSION:S3I,SMP
  83. OCCURENCES:PC
  84. PROGRAMS:ScreamTracker 3.0
  85. SEE ALSO:MTM,S3M,STM
  86.  
  87.