home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Spezial / SPEZIAL2_97.zip / SPEZIAL2_97.iso / ANWEND / MULTIMED / TMIXER13 / tmidi.doc < prev    next >
Text File  |  1997-03-20  |  8KB  |  197 lines

  1.  tmidi.doc                                   Copyright (C)1997 Cornel Huth
  2.  Release 1.5                                                   20-Mar-1997
  3.  
  4.  
  5. tmidi is a real-time, VIO-based standard MIDI file player.  Files
  6. included are:
  7.  
  8.         1. paradise.sys
  9.         2. tmidi.exe
  10.         3. several SMFs, documentation
  11.  
  12. Optionally, if you are running Warp 3 or earlier:
  13.  
  14.         4. clock01.sys  (clock02.sys available by request, for MCA)
  15.  
  16.  
  17. No other drivers are needed.  MMPM/2 is not required (but is okay), nor
  18. are any soundcard drivers.  This package includes everything you need for
  19. perfect MIDI playback, even under heavy multitasking.  tmidi transmits
  20. all MIDI data to the device, including sysex messages.  You can now
  21. specify the playback mode (GM, GS, or XG) if not already in the SMF.
  22.  
  23.  ============
  24.   NEW in 1.5  Sound Blaster Driver Fixed
  25.  ============
  26.  
  27. Version 1.5 introduces fixes that allow it to work in spite of the
  28. (an unnamed) driver that resets the MPU interface every chance it gets,
  29. such as when you start/end a wave play and do not already have MIDI going.
  30. Oh, by the way, this fix in tmidi only relates to those of you using
  31. cards that use SB16D2.SYS (and perhaps the AWE version).  In the end,
  32. tmidi plays on, albeit with a burp or two when you play a wave.  I was
  33. made aware of this only today.  I think their driver does this in an
  34. attempt to deal with "hanging notes" that SBs are said to cause.  I've
  35. never had a problem with hanging notes, so I consider this tactic of
  36. doing an MPU reset at -WAVE- play start/end tantamount to shooting one's
  37. foot.
  38.  
  39. Also recently available is tmixer 1.2, in a separate package called
  40. tmixer*.zip.
  41.  
  42.  
  43. Installation
  44. ------------
  45.  
  46. Install the (two) SYS driver(s) in your boot drive's root directory and
  47. include a reference for the paradise driver in your config.sys:
  48.  
  49.         DEVICE=G:\PARADISE.SYS     (optional -q for quiet install)
  50.  
  51. CLOCK01.SYS, installed automatically by the boot process and so has no
  52. reference in the config.sys file, is based on the Warp 4.0 driver.  It
  53. can be used in previous OS/2 versions, too.  If you are using Warp 4.0,
  54. your CLOCK driver already has the IDC hook, so you can use the one you
  55. already have.  The included CLOCK01.SYS driver is only for those running
  56. Warp 3 or earlier.
  57.  
  58. If you have the old clock driver installed, paradise.sys will gracefully
  59. tell you so, and not install itself.  If you get this message at boot, use
  60. the included clock01.sys.
  61.  
  62. Note:  Due to a long-standing bug in OS/2, detection of obsolete clock
  63. drivers is not as straight-forward as it should be.  However, if the
  64. obsolete clock is not found during boot, it likely will be found by tmidi.
  65. If it still gets by you will likely crash your machine.  Keep a boot floppy
  66. available and simply replace your obsolete clock01.sys driver with the
  67. one included in this package.
  68.  
  69. The clock01.sys driver in Warp 3's fixpack #26 is -not- an up-to-date
  70. driver.  If the clock01.sys driver is less than 4000 bytes (e.g.,
  71. 3520 bytes, like the fp26 one (date 10-10-96)) you need to install the
  72. clock01.sys driver included in this package.
  73.  
  74. Once you have the driver(s) installed, reboot.
  75.  
  76. Using tmidi
  77. -----------
  78.  
  79.         [G:\]tmidi [-p1:330] file.mid [<-gm,-gs-xg>] [-w1:n]
  80.  
  81. For example:
  82.  
  83.         [G:\]tmidi -p1:330 cometomy.mid
  84.  
  85. The default MPU port is 330h, and if there, does not need to be specified.
  86. The Paradise driver handles up to 126 ports, but tmidi, being what it is,
  87. directs everything out port 1 (where a port here is a particular device).
  88.  
  89. So, just:
  90.  
  91.         [G:\]tmidi alliwann.mid
  92.  
  93. Once you hit enter, the SMF is loaded and play starts.  Any key press (just
  94. about) exits tmidi and stops all sounds.  In case of emergency, an exit list
  95. handler is installed to ensure everything gets shut down.
  96.  
  97.  [I:\tmidi\mids]tmidi reaperxg.mid -xg
  98.  mpu: 330, type: 1, tracks: 20, div: 120, mode: XG
  99.  -008222116
  100.  
  101. The above is an example of an SMF without an embedded mode, so -xg is needed
  102. to make it sound its best.  Not all MPU devices have XG mode, or GS, but
  103. most are GM-capable.
  104.  
  105. If an error in the SMF is detected, the track and tick count where the
  106. problem occured is shown.
  107.  
  108.  
  109. Specifying Mode
  110. ---------------
  111.  
  112. An optional switch is the MIDI playback mode:  GM, GS, or XG.  If the
  113. SMF contains embedded mode, you can specifiy it via the command line.
  114. If the SMF already contains a mode, you cannot override it.  If the
  115. SMF contains no specific mode, and you do not specifiy one on the
  116. command line, the playback is in whatever mode the MPU is already in.
  117. There is no reset at the end of play; tmidi leaves the MPU in whatever
  118. mode was last used.
  119.  
  120. For example:
  121.  
  122.         [G:\]tmidi file.mid -gm
  123.  
  124. If file.mid has no embedded mode, GM mode will be used.  If file.mid
  125. does contain a mode, the mode in the file is always used.
  126.  
  127.  
  128. Specifying Waits
  129. ----------------
  130.  
  131. To detect when the MPU interface has been reset out from under it, the
  132. Paradise driver checks for a timeout condition to occur.  By default, it
  133. counts down 10,000 times before concluding that something's gone wrong.
  134.  
  135. For very fast systems this may be too soon.  If you get a time-out error
  136. reported, or otherwise do not hear anything when you expect you should,
  137. use the -w1: switch to set this wait timeout value.  The valid range is
  138. 1000 to 65535, with the default set to 10,000.
  139.  
  140. An additional fail-safe has been added to this time-out check:  when a
  141. time-out condition has occured 3 times in a row the current play is
  142. stopped and tmidi exits.  The next play should go as expected.
  143.  
  144.  
  145. Limitations
  146. -----------
  147.  
  148. A compatible MPU-401 device is required.  This includes not only
  149. real MPU-401 devices, but cards like the Sound Blaster 16, AWE32, etc.,
  150. with either a daughterboard (CL Wave Blaster, Yamaha DB50XG, etc.), or
  151. a sound module or keyboard attached to the external MIDI port.  Stand-
  152. alone cards, like the Yamaha SW60XG, can be used, too.  There are no
  153. plans to work with other, non-MPU devices at this time.
  154.  
  155.  
  156. Tips
  157. ----
  158. If the SMF has no internal play mode specified (GM, GS, or XG), tmidi
  159. plays it using whatever the MPU device was last set to.  To prevent
  160. playing a "generic" (a file with no internal play mode) in whatever
  161. mode was last set, add -gm to each command line until you are sure
  162. that the "generic" SMF is really a GS or XG.  If there is an internal
  163. play mode, adding -gm won't have any affect.
  164.  
  165. Since this is just a test bed for the Paradise MIDI driver you don't
  166. have a slick UI.  To play a whole lot of files without having to keep
  167. feeding the command line, create a cmd file like this:
  168.  
  169.         dir *.mid /b > all.cmd
  170.  
  171. Edit all.cmd by placing a ` in column 1 for all rows.  Go back and
  172. replace the ` with a tmidi<space> (or tmidi<space><quote>).  If you
  173. are using quotes around the name (spaces in the names), change .mid to
  174. .mid<quote>.  Then, just type in all.cmd.  If you don't like a
  175. tune, just hit a key (ctrl-C to exit for good).  Stayed tuned for the
  176. first part of the Paradise System, probably available in a month or so.
  177.  
  178. See the README file for more.
  179.  
  180.  README
  181.  tmidi 1.5
  182.  20-March-1997
  183.  
  184.  See tmidi.doc for install and use instructions.
  185.  
  186.  Changes from 1.3:
  187.  
  188.  1.  Package named tmidi_15.zip
  189.  2.  No longer locks OS/2 when used with the Sound Blaster SB*.SYS driver
  190.  3.  Added -w1: switch
  191.  4.  New PARADISE.SYS 1.2 driver
  192.  5.  A VIO-based mixer is now available (separately, tmixer*.zip)
  193.  
  194.  
  195. Filename is tmidi_15.zip.  At ftp://hobbes.nmsu.edu/os2/mmedia and at the
  196. sites listed below.  This version replaces all previous versions.
  197.