home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 September / Chip_2000-09_cd1.bin / sharewar / Slunec / app / 16 / MOD.SWG / 0052_AM.pas < prev    next >
Pascal/Delphi Source File  |  1997-05-08  |  4KB  |  95 lines

  1.  
  2.        The AM module format description.
  3.  
  4.        By THOR, 1995. (There's no such files released yet)
  5.  
  6.  ---------------------------------------------------------------------------
  7.  
  8.     Offset Length Type
  9.  
  10.        0     10   (char)        'AWE Module'
  11.       10      2   (word)        format version (01)
  12.       12      2   (word)        header size
  13.  
  14.   ----------------------- Header ------------------------
  15.  
  16.        0      2   (byte)        channels
  17.        2      1   (byte)        song lenght
  18.        3    256   (byte)        pattern order
  19.      259      1   (byte)        restart order
  20.      260      1   (byte)        start tempo
  21.      261      1   (byte)        start BPM
  22.      262    256   (byte)        pattern lenghts
  23.      518    128   (byte)        instrument types
  24.      646      1   (byte)        frequency table type
  25.      647     32   (char)        song name
  26.      ...    ...   ......        (reserved)
  27.  
  28.   ----------------------- Patterns ----------------------
  29.  
  30.        0      1   (byte)        pattern number
  31.        1      2   (word)        packed pattern size
  32.        3      ^                 packed pattern data
  33.  
  34.   ----------------------- Instruments -------------------
  35.  
  36.        0      1   (byte)        instrument number
  37.        1     32   (char)        instrument name
  38.        33     1   (byte)        number of samples
  39.        34     2   (word)        instrument header size
  40.  
  41.          ----------- Instrument header ----------
  42.  
  43.         0  96*4   (byte)        sample number for notes (4 layers)
  44.       384                       volume \
  45.                                 pan    | envelopes (points, sustain,
  46.                                 pitch  |            loop start, loop end,
  47.                                 filter /            type, point datas [1+2])
  48.               2   (word)        volume fadeout
  49.               1   (byte)        pitch sweep
  50.       ...   ...   ......        (reserved)
  51.  
  52.   ------------------------ Samples ----------------------
  53.  
  54.         0     1   (byte)        sample number
  55.         1     2   (word)        sample header size
  56.  
  57.          ------------- Sample header ------------
  58.  
  59.         0    32   (char)        sample name
  60.         32    1   (byte)        sample type
  61.         33    4   (dword)       sample length/start address
  62.         37    4   (dword)       sample loop start
  63.         41    4   (dword)       sample loop end
  64.         45    1   (byte)        volume
  65.         46    1   (byte)        finetune
  66.         47    1   (byte)        relative note
  67.         48    1   (byte)        panning
  68.         49    1   (byte)        reverb
  69.         50    1   (byte)        chorus
  70.         51    1   (byte)        cut-off
  71.         52    1   (byte)        filterQ
  72.         53   12                 volume \ h. envelope (delay, attack, decay,
  73.         65   12                 pi/fi. /              sustain, hold, release)
  74.         77    2                 pitch/filter to h. envelope2
  75.         79    3                 LFO1   \ low frequency oscillators
  76.         82    3                 LFO2   /             (delay, frequency)
  77.         85    1   (byte)        vibrato1
  78.         86    1   (byte)        vibrato2
  79.         87    1   (byte)        tremolo
  80.         88    1   (byte)        wah-wah
  81.        ...  ...   ......        (reserved)
  82.  
  83.          --------------- Sample ---------------
  84.  
  85.        ...  ...   ......        (pure, [un]signed)
  86.  
  87.  
  88.  
  89. Some extra commands, with AWE specifics, will be:
  90.      Wxy
  91.  
  92.  
  93. 1995.IV.1
  94.                         Thor
  95.