A cue sheet’s commands take their values from short lists of codes. These are the
lists, as set out in
Appendix C of the GNU ccd2cue manual
and the CueSharp reference,
checked against Appendix A (“Cuesheet Commands”) of the CDRWIN User’s Guide, version 3.8
(a copy of Golden Hawk’s cdrwin.pdf kept by the Internet Archive).
FILE types
The last argument of FILE.
| Type | Meaning |
|---|---|
BINARY | Raw data, little-endian (least significant byte first). |
MOTOROLA | Raw data, big-endian (most significant byte first). |
AIFF | Audio in AIFF format. |
WAVE | Audio in WAVE format. |
MP3 | Audio in MP3 format. |
FLAC | Audio in FLAC format. Not in the CDRWIN guide, GNU’s manual or CueSharp; libcue’s scanner reads it as a file type. |
The CDRWIN guide lists exactly these five types, describes BINARY as
“Intel binary file” and MOTOROLA as “Motorola binary file”, both “for data
files”, and gives AIFF, WAVE and MP3 as
“44.1KHz 16-bit stereo”. For audio files whose length is not a multiple of the 2352-byte
sector, CDRWIN pads the last sector with zeros when recording. CueSharp treats the type as optional,
but it is required in the original format. FLAC or WavPack files marked
WAVE are a non-standard
practice.
TRACK modes
The last argument of TRACK.
The sector size is the number of bytes per sector stored in the image. The CDRWIN
guide lists eight modes: AUDIO, CDG, MODE1/2048,
MODE1/2352, MODE2/2336, MODE2/2352,
CDI/2336 and CDI/2352; it describes the two Mode 2 entries
only as “CD-ROM XA Mode2 Data”. Its table of recorder support shows which of
AUDIO 2352, AUDIO 2448, MODE1 2048 and 2352 and
MODE2 2336 and 2352 each of eight recorder makes (JVC, Olympus, Panasonic, Philips, Pinnacle, Ricoh, Sony, Yamaha) supported.
| Mode | Sector size | Meaning |
|---|---|---|
AUDIO | 2352 | Audio or music: 588 samples of 16-bit stereo per sector. |
CDG | 2448 | Karaoke CD+G. |
MODE1/2048 | 2048 | CD-ROM Mode 1 data, cooked (user data only). |
MODE1/2352 | 2352 | CD-ROM Mode 1 data, raw. |
MODE2/2048 | 2048 | CD-ROM XA Mode 2 data, form 1. Not defined in the original format. |
MODE2/2324 | 2324 | CD-ROM XA Mode 2 data, form 2. Not defined in the original format. |
MODE2/2336 | 2336 | CD-ROM XA Mode 2 data, form mix. |
MODE2/2352 | 2352 | CD-ROM XA Mode 2 data, raw. |
CDI/2336 | 2336 | CD-i Mode 2 data. |
CDI/2352 | 2352 | CD-i Mode 2 data. |
libcue’s scanner reads AUDIO, MODE1/2048, MODE1/2352,
MODE2/2336, MODE2/2048, MODE2/2342,
MODE2/2332 and MODE2/2352. It has no CDG or
CDI/… type (a sheet that uses one is refused, with its parse error), and it
spells the form 2 and form-mix sizes 2342 and 2332, where GNU
lists MODE2/2324 and MODE2/2336. mpv reads only tracks whose
type contains AUDIO and skips the rest. The numeric sector sizes are
the bytes the CDRWIN guide and GNU’s manual give.
FLAGS
The arguments of FLAGS.
These are CD sub-code flags for the track.
| Flag | Meaning |
|---|---|
DCP | Digital copy permitted. |
4CH | Four-channel audio. |
PRE | Pre-emphasis enabled. Audio tracks only. |
SCMS | Serial Copy Management System. |
libcue maps the four flags to bits (PRE 0x01, DCP 0x02,
DATA 0x04, 4CH 0x08, SCMS 0x10) and does not read
DATA from a sheet. RFC 9639 stores only the track type and the
pre-emphasis flag in a FLAC cue sheet block.
Both GNU’s manual and the CDRWIN guide name a fifth flag, DATA, which is
set automatically from the track’s file type and is not written in the sheet. The
CDRWIN guide notes that SCMS is “not supported by all recorders”.
INDEX numbers
| Number | Meaning |
|---|---|
00 | Start of the track’s pregap in the current file. Optional. (CDRWIN: “the starting time of the track pregap”.) |
01 | Start of the track. Required. The only index stored in the disc’s table of contents. |
02 to 99 | Sub-indexes within the track. Index n is the start of sub-index n − 1. |
CD-Text keywords
The original format has three CD-Text commands: TITLE,
PERFORMER and SONGWRITER. CueSharp documents a longer set
of keywords. Binary ones cannot be written directly in a cue sheet, because the format
has no way of holding binary text.
| Keyword | Scope | Format |
|---|---|---|
ARRANGER | any | character |
COMPOSER | any | character |
DISC_ID | any | binary |
GENRE | any | binary |
ISRC | track | character |
MESSAGE | any | character |
PERFORMER | any | character |
SONGWRITER | any | character |
TITLE | any | character |
TOC_INFO | any | binary |
TOC_INFO2 | any | binary |
UPC_EAN | disc | character |
SIZE_INFO | any | binary |
CueSharp’s table comes from the MMC-3 draft (whose address, an FTP link, no longer works); libcdio’s CD Text guide gives the byte each type has in a CD-Text pack, which is how these keywords reach the disc:
| Keyword | Pack type | libcue token |
|---|---|---|
TITLE | 0x80 title | TITLE |
PERFORMER | 0x81 performers | PERFORMER |
SONGWRITER | 0x82 songwriters | SONGWRITER |
COMPOSER | 0x83 composers | COMPOSER (also REM COMPOSER) |
ARRANGER | 0x84 arrangers | ARRANGER |
MESSAGE | 0x85 message area | MESSAGE |
DISC_ID | 0x86 disc identification | DISC_ID (also REM DISCID) |
GENRE | 0x87 genre identification | GENRE (also REM GENRE) |
TOC_INFO1 (CueSharp: TOC_INFO) | 0x88 table of contents | TOC_INFO1 |
TOC_INFO2 | 0x89 second table of contents | TOC_INFO2 |
UPC_EAN, quoted ISRC | 0x8e UPC/EAN of the album, ISRC of each track | UPC_EAN, ISRC before a quote |
SIZE_INFO | 0x8f block size information | SIZE_INFO |
Pack types 0x8a to 0x8c are reserved and 0x8d
(closed information, libcdio guide) has no keyword in CueSharp’s table or in libcue (CueSharp:
“Three are reserved and have no corresponding keywords”). CueSharp’s page says the table describes MMC-3’s 16 types.