home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / ibm / pc / soundcar / 1476 < prev    next >
Encoding:
Text File  |  1992-08-27  |  2.7 KB  |  96 lines

  1. Newsgroups: comp.sys.ibm.pc.soundcard
  2. Path: sparky!uunet!psinntp!dg-rtp!webo!mrx.webo.dg.com!holmes
  3. From: holmes@mrx.webo.dg.com (Chris Holmes)
  4. Subject: Adlib .ROL file format
  5. Message-ID: <1992Aug26.120443.24180@webo.dg.com>
  6. Sender: holmes@mrx (Chris Holmes)
  7. Date: Wed, 26 Aug 92 12:04:43 GMT
  8. Reply-To: holmes@mrx.webo.dg.com
  9. Organization: Data General Corporation, Westborough, MA
  10. Lines: 84
  11.  
  12. I requested this a while back and got a couple of requests for a summary, 
  13. so here goes:
  14.  
  15. Files containing note information (i.e. songs) are suffixed with ".ROL".
  16. ("File version" and "editing scale" are non-musical information used by Visual
  17. Composer (TM).)
  18.  
  19. Structure of .ROL files:
  20. __________________________________________________________________
  21.  
  22. fld #   size   type    description
  23.     (bytes)
  24.  
  25. 1    2    int    file version, major
  26. 2    2    int    file version, minor
  27. 3    40    char    unused
  28. 4    2    int    ticks per beat
  29. 5    2    int    beats per measure
  30. 6    2    int    editing scale (Y axis)
  31. 7    2    int    editing scale (X axis)
  32. 8    1    char    unused
  33. 9    1    char    0 = percussive mode
  34.             1 = melodic mode
  35. 10    90    char    unused
  36. 11    38    char    filler
  37. 12    15    char    filler
  38. 13    4    float    basic tempo
  39.  
  40. Field 14 indicates the number of times to repeat fields 15 and 16:
  41.  
  42. 14    2    int    number of tempo events
  43. 15    2    int    time of events, in ticks
  44. 16    4    float    tempo multiplier (0.01 - 10.0)
  45.  
  46. The remaining fields (17 to 34) are to be repeated for each of 11 voices:
  47.  
  48. 17    15    char    filler
  49. 18    2    int    time (in ticks) of last note +1
  50.  
  51. Repeat the next two fields (19 and 20) while the summation of field 20 is
  52. less than the value of field 18:
  53.  
  54. 19    2    int    note number: 0 => silence
  55.             from 12 to 107 => normal note (you must
  56.             subtract 60 to obtain the correct value
  57.             for the sound driver)
  58. 20    2    int    note duration, in ticks
  59. 21    15    char    filler
  60.  
  61. Field 22 indicates the number of times to repeat fields 23 to 26:
  62.  
  63. 22    2    int    number of instrument events
  64. 23    2    int    time of events, in ticks
  65. 24    9    char    instrument name
  66. 25    1    char    filler
  67. 26    2    int    unused
  68. 27    15    char    filler
  69.  
  70. Field 28 indicates the number of times to repeat fields 29 and 30:
  71.  
  72. 28    2    int    number of volume events
  73. 29    2    int    time of events, in ticks
  74. 30    4    float    volume multiplier (0.0 - 1.0)
  75. 31    15    char    filler
  76.  
  77. Field 32 indicates the number of times to repeat fields 33 and 34:
  78.  
  79. 32    2    int    number of pitch events
  80. 33    2    int    time of events, in ticks
  81. 34    4    float    pitch variation (0.0 - 2.0, nominal is 1.0)
  82.  
  83. Notes
  84. _____
  85.  
  86. Fields #1 and #2 should be set to 0 and 4 respectively. Field #10 should
  87. be filled with zeros.
  88.  
  89.  
  90. -- 
  91. -----------------------------+------------------------------------------------
  92. Chris Holmes                 | Deliberate misuse by concentrating and inhaling
  93. Terminals Group                 | fumes may be harmful or fatal.
  94. Data General Corporation     |
  95. Westboro, MA                 | Internet: holmes@mrx.webo.dg.com
  96.