home *** CD-ROM | disk | FTP | other *** search
/ Computer Installation Guide - Dragon Clan Series / CD2.iso / Audio / CDDA2WAV / CDDA2WAV.DOC < prev    next >
Encoding:
Text File  |  1994-06-14  |  7.7 KB  |  181 lines

  1. Documentation for cdda2wav.exe, the full digital sampling utility
  2.  
  3. Lucky owners of a toshiba scsi (small computers system interface) cdrom drive
  4. (type XM3401) are able to copy parts of an AUDIO or multimedia cdrom 
  5. (containing AUDIO parts) directly via scsi bus.
  6. Needed is of course an scsi controller and an ASPI (Advanced SCSI 
  7. programmimg interface) driver running under DOS. A cd driver like aspicd.sys
  8. and mscdex.exe are not required, but don't interfere as well.
  9.  
  10. cdda2wav stands for CDDA to WAV (where CDDA stands for compact disc digital 
  11. audio and WAV is another sound sample format introduced by Windoze 3.1). It
  12. allows copying CDDA audio data from the cdrom drive into a file on your ram-, 
  13. hard-, floppy- or whatever-disk in the very common WAV format
  14. (notice that this sampling has not to be done in realtime, data is read on 
  15. request).
  16.  
  17. cdda2wav may not be used to circumvent copyright restrictions!
  18. ==============================================================
  19.  
  20. cdda2wav has the following parameters:
  21.  
  22. cdda2wav [-cchans] [-s] [-m] [-bbits] [-rrate] [-ttrack] [-ooffset]
  23.          [wavfile.wav]
  24.  
  25. options: -c channels : set 1 for mono, or 2 for stereo recording.
  26.          -s          : set to stereo recording.
  27.          -m          : set to mono recording.
  28.          -b bits     : set bits per sample per channel (8, 12 or 16 bits).
  29.          -r rate     : set rate in samples per second. Possible values are:
  30.             44100,22050,14700,11025,7350,3675,3150,1575,900 Hertz.
  31.          -t track    : select start track.
  32.          -o offset   : start 'offset' sectors behind start track.
  33.                        one sector equivalents 1/75 second.
  34.          -d duration : set recording time in seconds or 0 for whole track.
  35.          -w          : wait for signal, then start recording.
  36.          -q          : quiet operation, no screen output.
  37. defaults: mono, 16 bit, 22050 Hz, track 1, no offset, 16 seconds, 'audio.wav'
  38.           don't wait for signal, not quiet
  39.  
  40. If your cdrom is loaded with an audio cd, you may simply invoke 'cdda2wav'
  41. and it will create the sound file audio.wav recording 16 seconds beginning 
  42. with track 1 in mono at 16 bit at 22050 Hz, if your current drive has 705644
  43. bytes free. Otherwise recording time will be limited.
  44.  
  45. Table of Contents
  46. =================
  47. The display will show the table of contents with number of tracks and
  48. total time (displayed in mm:ss.hh format, mm = minutes, ss = seconds, 
  49. hh = 1/100 seconds).
  50. The following list displays track number and track time for each entry.
  51.  
  52. Recording display
  53. =================
  54. During recording the additional track, time and indexing information from the 
  55. audio cd is shown on the screen. The time display is independent from the 
  56. recording time and your computer clock and may even go much slower when 
  57. copying to slow output e.g. floppy disk. It simply shows which part is 
  58. currently read. The displayed time is always related to start of the track.
  59.  
  60. Options
  61. =======
  62. Most of the options are used to control the format of the WAV file. In the 
  63. following text all of them are described.
  64.  
  65. Select mono or stereo recording
  66. ===============================
  67. -m[ono]        or    -c[hannels] 1
  68.     selects mono recording (both stereo channels are mixed)
  69.  
  70. -s[tereo]    or    -c[hannels] 2
  71.     selects stereo recording (doubles file size)
  72.  
  73.  
  74.  
  75. Select sample quality
  76. =====================
  77. -b[its]  8    specifies 8 bit (1 Byte) for each sample in each channel
  78. -b[its] 12    specifies 12 bit (2 Byte) for each sample in each channel
  79. -b[its] 16    specifies 16 bit (2 Byte) for each sample in each channel
  80.  
  81. (Ensure that your sample player or sound card is capable of playing 
  82. 12-bit or 16-bit samples). Selecting 12 or 16 bits doubles file size.
  83. 12-bit samples are aligned to 16-bit samples, so they waste some disk space.
  84.  
  85. Select sample rate
  86. ==================
  87. -r[ate] samplerate    selects a sample rate
  88.  
  89. samplerate may any value out of the following ones:
  90.             44100,22050,14700,11025,7350,3675,3150,1575 or 900.
  91.  
  92. These sample rates may seem rather randomly choosen, but there is a deeper
  93. sense in them. At first all the rates are dividable by 44100 Hertz (the audio
  94. cd sampling rate), dividends are 1, 2, 3, 4, 6, 12, 14, 28 and 49.
  95.  
  96. To make the sound smoother at lower sampling rates, cdda2wav sums over n
  97. samples (where n is the specific dividend). So for 22050 Hertz output 
  98. we have to sum over 2 samples, for 900 Hertz we have to sum over 49 samples.
  99. This cancels higher frequencies. Standard sector size of an audio cd (ignoring
  100. additional information) is 2352 Bytes. In order to finish summing for an output
  101. sample at sector boundaries the rates above have to be choosen.
  102.  
  103. Arbitrary sampling rates in high quality would require some interpolation 
  104. scheme, which needs much more sophisticated programming.
  105.  
  106. Select start track
  107. ==================
  108. -t[rack] n    select one of the tracks displayed in the table of contents
  109.  
  110. This sets the track where recording begins, but recording can advance through
  111. the following tracks as well (depending on recording time).
  112.  
  113. Set recording time
  114. ==================
  115. -d[uration]    n    set recording time to n seconds    or
  116.             set recording time for whole track (n = 0)
  117.  
  118. Recording time is defined as the time the generated sample will play (at the
  119. defined sample rate). Since it's related to the amount of generated samples,
  120.  it's not the time of the sampling process itself (which can be greater).
  121. It's neither strictly coupled with the time information on the
  122. audio cd (shown by your hifi cd player and cdda2awv's display). Differences
  123. can occur by the usage of the -o option see below.
  124.  
  125. Notice that recording time will be limited, unless enough disk space exists.
  126. Recording can be aborted at anytime by pressing by ESC key.
  127.  
  128. Set start sector offset
  129. =======================
  130. -o[ffset] sectors    increments start sector of the track by sectors
  131.  
  132. By this option you are able to skip a certain amount at the beginning of 
  133. a track so you can pick exactly the part you want. Each sector runs 1/75
  134. second, so you have very fine control. If your offset is so high that it
  135. would not fit into the current track, a warning message is issued and the
  136. offset is ignored.
  137. Recording time is not reduced.
  138. (To skip introductory quiet passages automagically, use the -w option see 
  139. below.)
  140.  
  141. Wait for signal option
  142. ======================
  143. -w[ait]
  144.  
  145. Turning on this option will suppress all silent output at startup, reducing
  146. possibly file size. Cdda2wav will watch for any signal in the output signal
  147. and switches on writing to file.
  148.  
  149. Quiet option
  150. ============
  151. -q[uiet]    suppress all screen output except error messages
  152.  
  153.  
  154. Hints
  155. =====
  156. Don't create samples you cannot read. First check your sample player software
  157. and sound card hardware. I experienced problems with very low sample rates
  158. (stereo <= 1575 Hz, mono <= 3675 Hz) when trying to play them with standard
  159. WAV players for sound blaster (may be they are not legal in WAV format).
  160.  
  161. If you really want to sample more than one track in one file, this is 
  162. currently possible with the -d[uration] option. When recording time exceeds 
  163. the track limit the next track will be recorded too.
  164.  
  165. Performance issues
  166. ==================
  167.  
  168. Sampling is done by reading from cd and writing to disk alternatingly.
  169. An experimental parameter in this is NSECTORS, which determines how much
  170. will be read before written. In my system NSECTORS=1 worked fastest. Others
  171. had to increase it to do sampling in realtime. A new compilation is needed.
  172. Feel free to try out some values to get the best performance.
  173.  
  174. state of the software
  175. =====================
  176. This software is covered by the GNU Public License 2.
  177.  
  178.  
  179. and now catch some sounds,
  180. Heiko Eissfeldt                    heiko@colossus.escape.de
  181.