home *** CD-ROM | disk | FTP | other *** search
/ Fun & Games 9 / fun_&_games_nr9.iso / fg9 / music / players / vp / vpeng.doc < prev    next >
Encoding:
Text File  |  1993-05-02  |  17.0 KB  |  420 lines

  1. Visual Player
  2. Version 2.0, Barcelona, March '93
  3. Programmed by:
  4. Héctor Martínez, Luis Crespo, Luis Ubeda, David López y Angel Trigo.
  5.  
  6.  
  7. Visual Player is a graphic MOD player.
  8. While the music is playing, Visual Player can display the waveform of the
  9. four voices of the MOD, the final waveform, four real volume bars, a
  10. realtime spectrum analyzer and psychedelic lights. This program has been
  11. made to "look" at the music while you listen to it. Everything in Visual
  12. Player is real, everything that is displayed is calculated from the digital
  13. data and not from the score.
  14.  
  15.  
  16. How to use VP:
  17. --------------
  18. To run Visual Player, you must enter:
  19.  
  20.    VP
  21.  
  22. At the DOS command prompt. Optionally, you can use wildcards when specifying
  23. the file name, for example:
  24.  
  25.    VP a*
  26.  
  27. Will play all the MOD files that start with "a".
  28.  
  29.  
  30. Hardware requirements:
  31. ----------------------
  32. VP can play music through the following devices:
  33. - The internal PC speaker
  34. - Sound Blaster
  35. - Sound Blaster Pro (stereo)
  36. - Sound Blaster 16 ASP (stereo, 16 bits, 44.1 KHz)
  37. - Adlib
  38. - Stereo In One
  39. - One or two Digital to Analog Converters (DAC) connected to LPT1 and LPT2.
  40.  
  41. It is very cheap and easy to build a DAC and plug it on the printer port.
  42. A simple circuit design is given below.
  43.  
  44. VP needs a VGA card, and because of the graphic features of the program, the
  45. faster the computer is, the better VP will run. The sound processing speed
  46. depends also very much on the sound device. If you use a sound device without
  47. DMA, such as the internal PC speaker or the DAC in the LPT, it is better not
  48. to use programs and drivers that leave the 386 in virtual mode, like EMM386,
  49. QEMM, 386MAX, etc, because they slow down the computer and they decrease the
  50. sound quality.
  51.  
  52. If the display is refreshed very slowly, you can disable some graphic options
  53. or decrease the sampling frequency. If your screen shows some kind of snow,
  54. it can be because of the psychedelic lights option, so to avoid the snow you
  55. should disable that option.
  56.  
  57. The mouse is completely necessary, because the program works by pushing
  58. buttons, selecting options, moving controls, etc, very much like Windows.
  59.  
  60. VP takes up quite a bit of memory, so if more memory is available to the
  61. program, it will be possible to load greater MOD files.
  62.  
  63.  
  64.  
  65. The Keys:
  66. ---------
  67. Here is a quick keyboard reference for the impatient people:
  68.  
  69.  
  70.         PgUp     : Decrement Pattern
  71.         PgDown   : Increment Pattern
  72.  
  73.         +        : Increment Sampling Frequency
  74.         -        : Decrement Sampling Frequency
  75.  
  76.         1..4     : Toggle Voice
  77.  
  78.         S        : OS Shell
  79.         Enter    : Next MOD
  80.         ESC      : Quit Visual Player
  81.  
  82.         F1       : Help
  83.         F3       : File load window
  84.  
  85.  
  86. The mixing frequency:
  87. ---------------------
  88. The mixing frequency, also called sampling frequency or sampling rate, is
  89. the speed at which the sound is processed. That means that the higher the
  90. sampling frequency, the better the quality of the sound, especially with
  91. the high pitched sounds like charles, bells, etc. A fast machine will allow
  92. a faster sampling frequency, and a sound device with DMA will allow higher
  93. sampling frequencies. If you have a slow machine and run the program with
  94. a high sampling rate, the graphic display will slow down, because the
  95. program will dedicate more time to process the sound.
  96.  
  97.  
  98. The graphic options:
  99. --------------------
  100. Each of the graphic element shown on screen can be enabled or disabled
  101. independently.
  102. To do it, you just have to click the mouse button with the mouse pointer
  103. inside the desired element. For example, if you want to disable the central
  104. oscilloscope, you must click the mouse button with the mouse pointer inside
  105. the central oscilloscope frame. If you click the mouse button again inside
  106. the frame, the oscilloscope gets enabled again.
  107.  
  108.  
  109. The oscilloscopes:
  110. ------------------
  111. The 4 upper oscilloscopes display the waveform of the voices that are being
  112. played, and the central oscilloscope displays the sum of the 4 voices. The
  113. graphs are synchronized with the beginning of the waveform, so that in
  114. most of the cases the waveform will be displayed at the same place.
  115.  
  116. The disposition of the 4 oscilloscopes has changed from previous versions of
  117. the program. In this version, the oscilloscopes labelled as "voice 1" and
  118. "voice 2" at the left side of the screen will sound through the left channel
  119. and the ones labelled as "voice 3" and "voice 4" will sound through the right
  120. channel.
  121.  
  122.  
  123. The volume bars:
  124. ----------------
  125. The volume bars are located at each side of the central oscilloscope, and are
  126. placed so that the voices that sound through the left channel, voices 1 and 2,
  127. are at the left side of the oscilloscope, and the voices that sound through
  128. the right channel, voices 3 and 4, are at the right side of the oscilloscope.
  129.  
  130. Remark that from the point of view of a MOD composer or any other MOD player,
  131. voices 1 and 2 match with 1 and 4, and 3 and 4 with 2 and 3 respectively.
  132.  
  133.  
  134. The spectrum analyzer:
  135. ----------------------
  136. The spectrum analyzer is the most time-consuming feature of the program. It
  137. displays the power of each frequency in the sound. The spectrum analyzer is
  138. implemented with an FFT algorithm with integer arithmetic. The FFT is
  139. calculated from N samples taken from a buffer that sounds during a 1/50th of
  140. second, so that the first spectrum bar shows the power of F=0 Hz, the second
  141. shows F=50 Hz, the third F=100 Hz, the fourth F=150 Hz, and so on,
  142. independently of the mixing frequency.
  143.  
  144. There are 5 different spectrum analyzers. The first one analyzes 128 samples
  145. and displays 64 bars (the other 64 are symmetrical). The second method
  146. analyzes 64 samples and displays 32 bars, so it is faster but less precise
  147. than the first method. The third method analyzes 128 samples and displays 32.
  148. The fourth and the fifth display a stereo spectrum analyzer. The fourth
  149. method analyzes 64 samples for each channel and displays 32 bars for each
  150. channel, and the fifth analyzes 128 samples and displays 32 bars for each
  151. channel. The later method is the one that consumes more CPU time.
  152.  
  153.  
  154. The psychedelic lights:
  155. -----------------------
  156. The 3 circles at the right side of the central oscilloscope are 3 psychedelic
  157. lights. The red light will shine with the bass frequencies, the green one
  158. with the middle frequencies and the yellow one with the high frequencies. To
  159. know the intensity of each light the FFT has to be calculated, the same way
  160. as the spectrum analyzer. So if you disable only one of both options, the FFT
  161. will still be calculated to display the other one.
  162.  
  163.  
  164. The lower button panel:
  165. -----------------------
  166. When VP is loaded, you can only see 6 buttons on screen: 4 buttons to toggle
  167. the voices, one to get help and another one to quit the program. But the
  168. screen does not end at the lower part of the spectrum analyzer. If you move
  169. the mouse down, the whole screen will scroll up, letting you see the lower
  170. part of the program panel. Three different parts can be distinguished there:
  171.  
  172. - at the left side, the name of each instrument of the current MOD file is
  173. shown. This zone will change depending of the selected function on the right
  174. button panel.
  175. - at the center-right part, there is a button panel with the look of a CD or
  176. cassette player panel, with very similar functions to those devices. The
  177. lower buttons on this panel allow you to increment or decrement the current
  178. pattern, and to load the next or previous MOD file.
  179. - at the lower-right part there is a group of buttons which cover all kind of
  180. functions, that are described further:
  181.  
  182.    Load MOD:
  183.    ---------
  184.    Opens a window with a listing of MOD files, and lets you select one to
  185.    load it and play it.
  186.  
  187.    Load FLI:
  188.    ---------
  189.    Opens a window with a listing of FLI files, and lets you load one to XMS
  190.    and animate it while the music sounds. This option is only available on
  191.    the registered version. With the registered version, you can also load a
  192.    FLI file from the command line, by writing something like:
  193.  
  194.        VP modfile /FLI=flifile
  195.  
  196.    In such a case the FLI will be animated while the MOD sounds, until a key
  197.    is pressed, going back to the command line.
  198.  
  199.    SB Mixer:
  200.    ---------
  201.    Opens a window with the SB Pro mixer controls. The changes that you make
  202.    to the mixer never get saved to the configuration file because it is
  203.    supposed that every user has the mixer already configured externally.
  204.  
  205.    ADC Mode:
  206.    ---------
  207.    This feature is independent with all relating to MOD files. When you push
  208.    the ADC mode button, the signal that is analyzed and displayed on the
  209.    oscilloscopes, spectrum analyzer, etc, is the input read from the SB, SB
  210.    Pro or SB 16 ASP.
  211.    So you can use Visual Player to listen to any kind of music and "see" it
  212.    on your screen. If the sound card is an SB, or an SB Pro, the 4 voices will
  213.    contain the same signal, and if the sound card is an SB 16 ASP, voices 1
  214.    and 2 will show the left channel and voices 3 and 4 will show the right
  215.    channel (in the next version, the SB Pro will also analyze in stereo mode).
  216.  
  217.    Play Device:
  218.    ------------
  219.    This window lets you select your sound hardware and the mixing frequency.
  220.  
  221.    Config:
  222.    -------
  223.    Opens a window from which you can configure a lot of options of the
  224.    program. Four different sections can be configured:
  225.  
  226.       - Palette: The program's color palette
  227.       - Spectrum: Lets you select the type of spectrum analyzer, the speed of
  228.         its bars, etc.
  229.       - Psycho: Lets you calibrate the sensibility of each psychedelic light
  230.         to the power of its frequency range.
  231.       - Misc: miscellaneous options.
  232.            - Loop MOD: if this option is activated, the MOD will be played
  233.              again when it finishes.
  234.       - Allow backward jumps: if activated, the program will allow backward
  235.         jumps on the music score. This means that maybe the MOD will never
  236.         end.
  237.       - Stereo mixing: If you are listening to the music with a stereo device,
  238.         the left and right channels can be mixed to achieve a less artificial
  239.         sensation. If this option is enabled, the program will mix a 75% of
  240.         the left channel and a 25% of the right channel to the left channel,
  241.         and vice-versa. This option is especially recommended if you use
  242.         headphones.
  243.       - Defective MOD loading: specifies the behavior in front of a
  244.         defective MOD. The file can be loaded always (ignoring the errors),
  245.         skipped if an error is found, or the program can show an error
  246.         message and ask the user if the file should be loaded or not.
  247.  
  248.    At the bottom right part of the configuration window, there is a button
  249.    that lets you save the configuration, if you have the registered version
  250.    of the program. Remark that the "save" button will save the options of the
  251.    configuration windows and also the whole state of the program, including
  252.    the sound device, the mixing frequency, the graphic options, etc.
  253.  
  254.    Big Psycho:
  255.    -----------
  256.    Shows a full-screen 256 color psychedelic. This feature is very useful for
  257.    parties, if combined with de ADC mode option ;-). All the usual keys work
  258.    the same way as in the normal mode, including ESC, that exits the program.
  259.    To go back to the normal mode you must just push the a mouse button.
  260.  
  261.    OS Shell:
  262.    ---------
  263.    Loads the command interpreter while the MOD file still sounds. To go back
  264.    to VP, type EXIT on the command line.
  265.  
  266.  
  267.  
  268. New in Version 2.0:
  269. -------------------
  270. - New graphic shell, with mouse support, 3d-buttons, windows-like controls,
  271.   vertical scroll, etc.
  272. - SB 16 ASP support, at 16 bits, stereo and 44.1 KHz.
  273. - The SB and SB Pro do not reverberate any more if an expanded memory
  274.   controller is loaded.
  275. - The spectrum analyzer is more precise in the logarithmic scale.
  276. - New graphic options: stereo spectrum analyzer, psychedelic lights.
  277. - Load window, allowing to select a MOD from a directory.
  278. - SB Pro mixer control.
  279. - FLI animation while playing a MOD file.
  280. - Input signal analyses, with the SB, SB Pro or SB 16 ASP (ADC Mode).
  281. - Help window.
  282. - Configuration window.
  283.  
  284.  
  285.  
  286. Next versions:
  287. --------------
  288. We have tested the program in a great variety of configurations, but due
  289. to the size of the program, some bugs may still exist in this version. The
  290. same way as with version 1.0, we would release version 2.1 to correct the
  291. possible bugs.
  292.  
  293. Also, in the next versions, our program will have:
  294.  
  295. - Juke Box mode, allowing to play various MOD files from a list.
  296. - Total SB 16 ASP mixer control.
  297. - Resident OS Shell mode, allowing to control the state and options of the
  298.   program through a hotkey.
  299. - Efficient XMS usage, to play several MOD files from an OS Shell.
  300. - Packed MOD file format, to save disk space.
  301.  
  302. The latest version of the program can be found in:
  303.  
  304.   - Dracker BBS, FidoNet 2:343/116, SBCNet 14:4500/100, CDNet 94:62/0.
  305.     Tel +34-3-3853393, HST D/S V32bis, 16800 bps.
  306.  
  307.   - ST-Telecos, FidoNet 2:343/108
  308.     Tel +34-3-4017068, V32bis.
  309.  
  310.  
  311. Credits:
  312. --------
  313. Greetings go to:
  314. Juan Carlos Arévalo, Rob de Luna, Alex Miquel, Joffre Heredia, Victor Neira,
  315. Manolo Ruiz Moscoso, Juan Pedro Teruel, David López Vinacua, Hakan Gustavsson
  316. (The CodeBlasters, Sweeden), James Chow (SBNet, Canada), Steve McKnelly, José
  317. María Alvarez, David Sánchez, Xavier Mundó Balcells, Carlos López Marco and
  318. all the registered users of VP 1.1.
  319.  
  320.  
  321.  
  322. Shareware:
  323. ----------
  324. Visual Player is distributed as shareware. Registering VP for personal use is
  325. optional, but if you use the program for commercial purposes (for example, to
  326. sell sound cards), you must register inconditionally.
  327.  
  328. If you have obtained VP from a friend, a BBS or similar source, you have an
  329. unregistered version. The unregistered version sounds through the internal PC
  330. speaker from the second MOD file, does not have some features of the program,
  331. the ADC mode only lasts a while, and the program waits for a few seconds
  332. before exiting.
  333.  
  334. When you register, you get:
  335. - A 3'5", diskette with a copy of the latest version of VP registered
  336.   to you, with all the features fully working.
  337. - Free next version registration.
  338. - Due notice of every new version.
  339. - Some MOD files that fit into the program diskette.
  340.  
  341. To register, send a letter to:
  342.  
  343.    Luis Crespo
  344.    P.O. Box 93142
  345.    08080 Barcelona, SPAIN
  346.  
  347. With your full name and address and 3.000 Ptas if you live in Spain, or $30
  348. if you live outside Spain. You can also register of only one version of
  349. Visual Player, by sending 2.000 Ptas or $20.
  350.  
  351.  
  352. Copyright/License/Warranty:
  353. ---------------------------
  354. Visual Player must be distributed unmodified and with its full
  355. documentation and files. The registered version must not be distributed.
  356.  
  357. Visual Player is copyright of the authors. The authors allow to: use
  358. software, make copies of it, give copies to anybody and distribute it
  359. through electronic media.
  360.  
  361. It is not allowed to ask for money or donations for any copy or copies of
  362. the program, neither distribute the software and/or documentation with
  363. commercial products, without previous written acknowledgement of the
  364. authors.
  365.  
  366. There is not warranty of any kind, and the authors are not responsible for
  367. any kind of damage that the use of the software may cause. When using this
  368. software, you agree with everything written above.
  369.  
  370.  
  371. How to contact the authors:
  372. ---------------------------
  373. We are waiting for your comments and opinions about our program. Our
  374. electronic addresses are:
  375.  
  376. Luis Crespo: FidoNet 2:343/108.21
  377. David López: FidoNet 2:343/107.989
  378.  
  379. The circuit:
  380. ------------
  381. And here it is the circuit: a Digital to Analog Converter that plugs into
  382. the printer port and to the amplifier. To build it, you will just need 18 1%
  383. resistors, 2 capacitors, a male D-25 connector, and a jack. It is very
  384. important that the resistors have 1% tolerance, because if they have 5% or
  385. more, the thing will sound like hell.
  386.  
  387.  
  388.           Printer Port
  389.  
  390.           signal   pin
  391.                               20k   20k
  392.           D0       2      >───░░░─┬─░░░──0v (GND, pin 20)
  393.                               20k ░ 10k
  394.           D1       3      >───░░░─┤
  395.                               20k ░ 10k
  396.           D2       4      >───░░░─┤
  397.                               20k ░ 10k
  398.           D3       5      >───░░░─┤
  399.                               20k ░ 10k
  400.           D4       6      >───░░░─┤
  401.                               20k ░ 10k
  402.           D5       7      >───░░░─┤
  403.                               20k ░ 10k
  404.           D6       8      >───░░░─┤
  405.                               20k ░ 10k
  406.           D7       9      >───░░░─┤
  407.                               20k ░ 10k  100nF
  408.                                   ├──────┤├─┬──> To Amplifier
  409.                                   │         │
  410.                                   ░ 10k     ┴ 10nF
  411.                                   │         ┬
  412.           GND      20     >───────┼─────────┴──>
  413.                                   0v
  414.  
  415.  
  416. This circuit is an enhancement from Luis Ubeda from the one that came with
  417. Mark J.Cox's ModPlay, so we thank Harry Stox for his original design.
  418.  
  419.  
  420.