home *** CD-ROM | disk | FTP | other *** search
- Documentation for cdda2wav.exe, the full digital sampling utility
-
- Lucky owners of a toshiba scsi (small computers system interface) cdrom drive
- (type XM3401) are able to copy parts of an AUDIO or multimedia cdrom
- (containing AUDIO parts) directly via scsi bus.
- Needed is of course an scsi controller and an ASPI (Advanced SCSI
- programmimg interface) driver running under DOS. A cd driver like aspicd.sys
- and mscdex.exe are not required, but don't interfere as well.
-
- cdda2wav stands for CDDA to WAV (where CDDA stands for compact disc digital
- audio and WAV is another sound sample format introduced by Windoze 3.1). It
- allows copying CDDA audio data from the cdrom drive into a file on your ram-,
- hard-, floppy- or whatever-disk in the very common WAV format
- (notice that this sampling has not to be done in realtime, data is read on
- request).
-
- cdda2wav may not be used to circumvent copyright restrictions!
- ==============================================================
-
- cdda2wav has the following parameters:
-
- cdda2wav [-cchans] [-s] [-m] [-bbits] [-rrate] [-ttrack] [-ooffset]
- [wavfile.wav]
-
- options: -c channels : set 1 for mono, or 2 for stereo recording.
- -s : set to stereo recording.
- -m : set to mono recording.
- -b bits : set bits per sample per channel (8, 12 or 16 bits).
- -r rate : set rate in samples per second. Possible values are:
- 44100,22050,14700,11025,7350,3675,3150,1575,900 Hertz.
- -t track : select start track.
- -o offset : start 'offset' sectors behind start track.
- one sector equivalents 1/75 second.
- -d duration : set recording time in seconds or 0 for whole track.
- -w : wait for signal, then start recording.
- -q : quiet operation, no screen output.
- defaults: mono, 16 bit, 22050 Hz, track 1, no offset, 16 seconds, 'audio.wav'
- don't wait for signal, not quiet
-
- If your cdrom is loaded with an audio cd, you may simply invoke 'cdda2wav'
- and it will create the sound file audio.wav recording 16 seconds beginning
- with track 1 in mono at 16 bit at 22050 Hz, if your current drive has 705644
- bytes free. Otherwise recording time will be limited.
-
- Table of Contents
- =================
- The display will show the table of contents with number of tracks and
- total time (displayed in mm:ss.hh format, mm = minutes, ss = seconds,
- hh = 1/100 seconds).
- The following list displays track number and track time for each entry.
-
- Recording display
- =================
- During recording the additional track, time and indexing information from the
- audio cd is shown on the screen. The time display is independent from the
- recording time and your computer clock and may even go much slower when
- copying to slow output e.g. floppy disk. It simply shows which part is
- currently read. The displayed time is always related to start of the track.
-
- Options
- =======
- Most of the options are used to control the format of the WAV file. In the
- following text all of them are described.
-
- Select mono or stereo recording
- ===============================
- -m[ono] or -c[hannels] 1
- selects mono recording (both stereo channels are mixed)
-
- -s[tereo] or -c[hannels] 2
- selects stereo recording (doubles file size)
-
-
-
- Select sample quality
- =====================
- -b[its] 8 specifies 8 bit (1 Byte) for each sample in each channel
- -b[its] 12 specifies 12 bit (2 Byte) for each sample in each channel
- -b[its] 16 specifies 16 bit (2 Byte) for each sample in each channel
-
- (Ensure that your sample player or sound card is capable of playing
- 12-bit or 16-bit samples). Selecting 12 or 16 bits doubles file size.
- 12-bit samples are aligned to 16-bit samples, so they waste some disk space.
-
- Select sample rate
- ==================
- -r[ate] samplerate selects a sample rate
-
- samplerate may any value out of the following ones:
- 44100,22050,14700,11025,7350,3675,3150,1575 or 900.
-
- These sample rates may seem rather randomly choosen, but there is a deeper
- sense in them. At first all the rates are dividable by 44100 Hertz (the audio
- cd sampling rate), dividends are 1, 2, 3, 4, 6, 12, 14, 28 and 49.
-
- To make the sound smoother at lower sampling rates, cdda2wav sums over n
- samples (where n is the specific dividend). So for 22050 Hertz output
- we have to sum over 2 samples, for 900 Hertz we have to sum over 49 samples.
- This cancels higher frequencies. Standard sector size of an audio cd (ignoring
- additional information) is 2352 Bytes. In order to finish summing for an output
- sample at sector boundaries the rates above have to be choosen.
-
- Arbitrary sampling rates in high quality would require some interpolation
- scheme, which needs much more sophisticated programming.
-
- Select start track
- ==================
- -t[rack] n select one of the tracks displayed in the table of contents
-
- This sets the track where recording begins, but recording can advance through
- the following tracks as well (depending on recording time).
-
- Set recording time
- ==================
- -d[uration] n set recording time to n seconds or
- set recording time for whole track (n = 0)
-
- Recording time is defined as the time the generated sample will play (at the
- defined sample rate). Since it's related to the amount of generated samples,
- it's not the time of the sampling process itself (which can be greater).
- It's neither strictly coupled with the time information on the
- audio cd (shown by your hifi cd player and cdda2awv's display). Differences
- can occur by the usage of the -o option see below.
-
- Notice that recording time will be limited, unless enough disk space exists.
- Recording can be aborted at anytime by pressing by ESC key.
-
- Set start sector offset
- =======================
- -o[ffset] sectors increments start sector of the track by sectors
-
- By this option you are able to skip a certain amount at the beginning of
- a track so you can pick exactly the part you want. Each sector runs 1/75
- second, so you have very fine control. If your offset is so high that it
- would not fit into the current track, a warning message is issued and the
- offset is ignored.
- Recording time is not reduced.
- (To skip introductory quiet passages automagically, use the -w option see
- below.)
-
- Wait for signal option
- ======================
- -w[ait]
-
- Turning on this option will suppress all silent output at startup, reducing
- possibly file size. Cdda2wav will watch for any signal in the output signal
- and switches on writing to file.
-
- Quiet option
- ============
- -q[uiet] suppress all screen output except error messages
-
-
- Hints
- =====
- Don't create samples you cannot read. First check your sample player software
- and sound card hardware. I experienced problems with very low sample rates
- (stereo <= 1575 Hz, mono <= 3675 Hz) when trying to play them with standard
- WAV players for sound blaster (may be they are not legal in WAV format).
-
- If you really want to sample more than one track in one file, this is
- currently possible with the -d[uration] option. When recording time exceeds
- the track limit the next track will be recorded too.
-
- Performance issues
- ==================
-
- Sampling is done by reading from cd and writing to disk alternatingly.
- An experimental parameter in this is NSECTORS, which determines how much
- will be read before written. In my system NSECTORS=1 worked fastest. Others
- had to increase it to do sampling in realtime. A new compilation is needed.
- Feel free to try out some values to get the best performance.
-
- state of the software
- =====================
- This software is covered by the GNU Public License 2.
-
-
- and now catch some sounds,
- Heiko Eissfeldt heiko@colossus.escape.de
-