blob: 67f6a028f0debefd748ffae42d77eb831f8b3387 [file] [log] [blame]
Guido van Rossum73b715e1992-06-03 16:50:01 +00001Introduction.
2
3A number of programs have been written which access the Silicon
4Graphics CD-ROM player. These programs all use the interface defined
5in readcd.py (see readcd.doc for documentation).
6
7Specifying music stretches.
8
9The programs that are capable of reading music CD's all use the same
10syntax to describe which part of the CD is to be read. The syntax
11closely corresponds to the available methods in readcd.py.
12
13The music to be read is divided into stretches of music. Each stretch
14must be specified as a separate argument on the command line. A
15stretch can be a whole CD track, specified as a single number; or it
16can be a start time and a end time. The start and end times must be
17specified as a tuple, thus: ``(starttime, endtime)''. Don't forget to
18quote the parenthesis to the shell. Both starttime and endtime can be
19``None'', a simple number which refers to a CD track, or a tuple
20consisting of either 3 or 4 elements. A starttime of ``None'' refers
21to the start of the CD, an endtime of ``None'' refers to the end of
22the CD. A tuple of 3 elements is an absolute time on the CD. The
23three elements are (minutes, seconds, frames). A tuple of 4 elements
24is a track-relative time. The four elements are (track, minutes,
25seconds, frames).
26
27When one stretch ends at the end of a track and the following stretch
28starts at the next track, there is the option of either playing or not
29playing the pause between the two tracks. When either the end time of
30the first stretch or the start time of the second stretch is specified
31using absolute or track-relative times, the pause will not be played.
32When both times are specified as simple track numbers, the pause will
33be played.
34
35If no stretches are specified, the whole CD will be played.
36
37The programs.
38
39Currently, the following programs exist.
40playcd [ stretch specification ]
41 Play (part of) a CD through the system loadspeaker or
42 headphone set.
43cdaiff [ file [ stretch specification ] ]
44 Copy (part of) a CD to a file. The file will be written in
45 AIFF format. If no file is specified, cdaiff will write to
46 the file ``@'' in the current directory.