home *** CD-ROM | disk | FTP | other *** search
/ Media Share 8 / MEDIASHARE_08.ISO / runtime / dmp.doc < prev    next >
Text File  |  1994-01-02  |  11KB  |  232 lines

  1.  
  2.  
  3.                                 DMP.DOC
  4.  
  5.              Documentation for the Dual Module Player v2.79
  6.  
  7.                   Copyright (C) 1992,1993 Otto Chrons
  8.  
  9.  
  10.  DMP.EXE is  a program  demonstrating the  capabilities of the DSMI
  11.  programming interface (DSMI stands for Digital Sound & Music
  12.  Interface). It's a standalone module  player with  which  you can play
  13.  STM, S3M, 669, FAR and MTM files  as well  as Amiga modules (MOD or
  14.  NST). DMP is cardware so you  can freely distribute  it and I hope you
  15.  did, as long as you include this help file with the executable. If you
  16.  like the product, please send me a postcard to the address shown on the
  17.  endscreen of DMP!!
  18.  
  19.            Here is the command line syntax:
  20.  
  21.            DMP [options] [modulename] [@listfile] [options]
  22.  
  23.            Where:
  24.            ------
  25.            modulename : name of a module (wildcards *,? allowed)
  26.            listfile   : name of a file containing list of module names
  27.  
  28.            options  : -Sxxxx          set sampling rate 4000-44100
  29.                                       alternatively 4-44
  30.                       -H or -?        show help screen
  31.                       -Ix             interrupt number
  32.                       -Pxxx           port address (use 42 for PC speaker)
  33.                       -Dx             DMA channel
  34.                       -O              Scramble module order
  35.                       -L              Inhibit looping
  36.                       -M              Mono mode (SB16 & PAS)
  37.                       -Q              Quality mode (on 8-bit cards only)
  38.                       -Cx             Desired card where x is:
  39.                                         1 for Sound Blaster
  40.                                         2 for Sound Blaster Pro
  41.                                         3 for PAS+
  42.                                         4 for PAS16
  43.                                         5 for SB16
  44.                                         6 for general DAC (Covox)
  45.                                         7 for Aria cards
  46.                                         8 for Windows Sound System & compat.
  47.                                         9 for Gravis Ultrasound
  48.                                         10 for PC Speaker
  49.                                         11 for Stereo DAC (LPT1 & 2)
  50.                                         12 for Stereo-on-1 DAC
  51.                       -Txxx           Buffer size xxx (0-32000)
  52.                       -E              Disable extended tempos (MOD only)
  53.                       -Axxx           Amplify by xxx, 31 is normal volume
  54.                       -B              Disable EMS usage
  55.                       -8              Force an 16-bit card into 8-bit
  56.                                       mode (works with Aria, PAS16 and WSS)
  57.                       -Nxx            Set default panning to xx (0-63,100)
  58.                                       100 = Surround sound
  59.                       -W[command]     Automatic DOS shell, executes optional
  60.                                       'command'.
  61.  
  62.  If you use some options all the time, you can put them into an
  63.  environment variable DMP:
  64.  
  65.         Example:
  66.  
  67.  You always want to use quality mode and sampleing rate of 22kHz and
  68.  mono mode, put following line into your AUTOEXEC.BAT
  69.  
  70.         SET DMP=-q -s22 -m
  71.  
  72.  NOTE!  You cannot override single letter options (-l,-o,-m,-q) with
  73.  command line parameters. All other options can be overriden.
  74.  
  75.  Alternatively you can use the CmdLine parameter in DMP.INI for same
  76.  purpose.
  77.  
  78.  You may have to  give your soundcard's IRQ  number and/or port address
  79.  if DMP fails to find them. If you don't provide both values then DMP
  80.  will assume 220h for port address, and 7 for interrupt number. Giving
  81.  wrong address  will hang  your machine,  but wrong interrupt number
  82.  only stops the playing after a second. The "/C" option is useful if you
  83.  want to use some other card, than the one DMP automatically detects.
  84.  
  85.  You don't  have  to add  any extension  to  the name,  because the
  86.  program will try  extensions MTM, AMF, STM, 669, S3M, FAR, MOD and NST
  87.  if it doesn't find the file. Note that you can supply many modulenames
  88.  and list files.
  89.  
  90.            Example:
  91.  
  92.            DMP beyond -s20 *.NST @goodmods
  93.  
  94.            goodmods is a text file containing following lines:
  95.            occ-san
  96.            stars
  97.            intro3
  98.  
  99.  DMP  will use  the  sampling  rate  of  20KHz  and  play following
  100.  modules: BEYOND.MOD,  OCC-SAN.STM, STARS.MOD, INTRO3.MOD  and all
  101.  .NST-files in the current directory.
  102.  
  103.  DMP has also a config file called DMP.INI. It should be placed in the
  104.  same directory with DMP.EXE but DMP will also find it if it's somewhere
  105.  in the PATH. See the file itself for explanations on config switches
  106.  and strings.
  107.  
  108.  You can also play modules inside archives by specifying in DMP.INI how
  109.  to extract files from the archive.
  110.  
  111.  
  112.                               Using stereo DACs
  113.  
  114.  If you have two DACs on LPT1 and LPT2 you can use them as one stereo
  115.  source with following command line:
  116.  
  117.  DMP -c11 ...
  118.  
  119.  Note that you don't have to specify port address.
  120.  
  121.  If you have a Stereo-on-1 DAC you can use it with following options:
  122.  
  123.  DMP -c12 -pXXX ...
  124.  
  125.  where XXX is the address of the DAC (LPT1 = 378)
  126.  
  127.  
  128.                                 How to use DMP
  129.  
  130.  After DMP has  loaded the first  module, it starts  to play it and
  131.  shows some information about  it. DMP displays module's  name, its file
  132.  size, the amount of  memory used for module and sampling rate.  Because
  133.  of the AMP's Intelligent Module Loader  (IML) modules  usually take
  134.  10-30% less  space. I've  seen a 244Kb module shrink into 151Kb when I
  135.  loaded it with DMP. While playing, DMP updates fields showing current
  136.  pattern, row, elapsed time, volume and sampling rate. Under these
  137.  fields are four lines showing the current status of the corresponding
  138.  tracks. Here is an example:
  139.  
  140.  ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  141.    bassdrum            │ F#2 │ 64 │               │ ■■■■■■■■■■■■■■■■■■■■■
  142.    strings7            │ D-3 │ 20 │ ARPEGGIO      │ ■■■■■■■■■■■■■■■
  143.    guitar42            │ E-2 │ 12 │ PORT.NOTE     │ ■■■■■■■■■■■
  144.    guitar44            │ G-2 │ 57 │ FINE VOL      │ ■■■■■■■■■■■■■■■■■■
  145.  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  146.  
  147.  The first  field shows  the instrument  currently playing  on that
  148.  track. Second is the note value, third its volume and fourth indicates
  149.  what special command is running. The bar simulates a VU  meter on music
  150.  equipment, but you shouldn't take it  as  an exact  representation of
  151.  the music  level, it's there because it looks nice!
  152.  
  153.  The rest of the screen is filled with instrument names. The numbers before an
  154.  instrument name indicate the channels that instrument is playing on.
  155.  
  156.  Pressing 'H'  brings up a  quick-help showing  command line options and
  157.  keys used to control the program.
  158.  
  159.            Keys :
  160.           ────────
  161.  
  162.            P            pause module, any key resumes
  163.            1-9          turn track xx on/off
  164.            0            turn selected track on/off
  165.            D            DOS shell (write EXIT to get back)
  166.            N            load next module (if you have supplied more than one)
  167.            S            stereo mode on/off (SB Pro), default is on
  168.            F            filter on/off (SB Pro), default is off
  169.            left/right   Jump to next/previous pattern
  170.            up/down      select track
  171.            F1-F10,+,-   set volume
  172.            [,]          Set new speed
  173.            {,}          Set new tempo
  174.            V            Real/fake volume bars
  175.            L,M,R,U      Panning full left/mid/right/surround
  176.            , .          Panning left/right
  177.            H            Help screen
  178.            ESC          exit
  179.  
  180.  Try this module player  with all the modules  you have, and if you
  181.  encounter problems with any modules, inform the author. Have fun.
  182.  
  183.  
  184.                            ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  185.                             Contacting the author
  186.                            ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  187.  
  188.        ┌─────────────────────────────────────────────────────────────────────┐
  189.        │                                                                     │
  190.        │   By mail:                                                          │
  191.        │   ────────                                                          │
  192.        │                                                                     │
  193.        │            Otto Chrons                                              │
  194.        │            Pyydyspolku 5                                            │
  195.        │            FIN-36200 Kangasala                                       │
  196.        │            FINLAND                                                  │
  197.        │                                                                     │
  198.        │   InterNet:                                                         │
  199.        │   ──────────                                                        │
  200.        │            c142092@cc.tut.fi (fastest method to contact)            │
  201.        │                                                                     │
  202.        └─────────────────────────────────────────────────────────────────────┘
  203.  
  204.         Newest version is always available at:
  205.  
  206.        ┌────────────────────────────────────────────┐
  207.        │ R.A. LAW         +358-37-49007    24h      │
  208.        │ ftp.uwp.edu      /pub/msdos/modplayers     │
  209.        │ ftp.wustl.edu    /pub/msdos_uploads/sounds │
  210.        └────────────────────────────────────────────┘
  211.  
  212.         See CABINET.DMP for a list of DMP support sites in Finland.
  213.  
  214.         See DMP.REV for revision history.
  215.  
  216.                             ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  217.                              For programmers only
  218.                             ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  219.  
  220.  
  221.  DMP was  created with  Borland C++  3.1 and  it is  based on DSMI's
  222.  routines, so by ordering DSMI interface you could write programs with
  223.  similar capabilities. DSMI is a collection of  routines (for C and
  224.  Turbo Pascal) that allows programmers to play  modules in the
  225.  background, but unlike any other module player it also allows
  226.  simultaneous sound effects!! Up to 32 channels can be used which means
  227.  that you can have a module and sound effects playing in full stereo (on
  228.  cards which support stereo sound)! DSMI is available and the price is
  229.  270FMK ($70). Packet includes full documentation (printed), OBJ files &
  230.  libraries for C version, TPUs for Turbo Pascal and also most of the
  231.  source code so you can modify the behaviour of DSMI.
  232.