home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Animation & Sound / SOS-ANIM_SOUND.ISO / archiv / imphob_5.zip / VP20.ARJ / VPENG.DOC < prev    next >
Text File  |  1993-03-29  |  18KB  |  424 lines

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