The first byte of a pack is its type. The sources are the libcdio guide “CD Text Encoding and Decoding Guide” (the guide), the MMC-3 draft revision 10g, Annex J (MMC-3) and Sony’s “CD TEXT authoring and mastering” documents (Sony, with the document number).
The types
The guide: within a block there are 13 categories of information, called pack types, each with a single-byte code. MMC-3 Table J.2 gives the same 16 values with 0x8a, 0x8b and 0x8c reserved and 0x8d “reserved for content provider only”.
| Type | Name | Holds | Scope |
|---|---|---|---|
| 0x80 | Title | Text: the album title (track 0) and the track titles. | Disc and tracks |
| 0x81 | Performers | Text: the names of the performers. | Disc and tracks |
| 0x82 | Songwriters | Text: the names of the songwriters. | Disc and tracks |
| 0x83 | Composers | Text: the names of the composers. | Disc and tracks |
| 0x84 | Arrangers | Text: the names of the arrangers. | Disc and tracks |
| 0x85 | Message area | Text: messages from the content provider or artist. | Disc and tracks |
| 0x86 | Disc identification | The catalogue number of the album, in ASCII. | Disc only |
| 0x87 | Genre identification | A 16-bit genre code and ASCII text that supplements it. | Disc only |
| 0x88 | Table of contents | Binary: the first and last track, the lead-out and the start of each track. | Disc only |
| 0x89 | Second table of contents | Binary: intervals with a priority, a start point and an end point. | Disc only |
| 0x8a to 0x8c | Reserved | “Although not specified are reserved for potential future use” (the guide). | |
| 0x8d | Closed information | Text, ISO-8859-1, that CD-Text players do not show. | Disc only |
| 0x8e | UPC/EAN and ISRC | Text: the UPC/EAN code of the album (track 0) and the ISRC of each track. | Disc and tracks |
| 0x8f | Block size information | Binary: the block size record, in three packs. | Block |
The scope column is the guide’s: 0x86 to 0x89 and 0x8d “apply to the whole disc, and cannot be attached to individual tracks”; 0x80 to 0x85 and 0x8e “have to be attributed to each track if they are present for the whole disc”. MMC-3 describes 0x81 to 0x84 as names “in ASCII”; the guide says all of 0x80 to 0x85 follow the block’s character code, ISO-8859-1, 7-bit ASCII or MS-JIS, and the explorer follows the guide. The explorer reports a type byte outside 0x80 to 0x8f and a reserved type as problems.
The text types (0x80 to 0x85 and 0x8e)
Each holds NUL-terminated strings (two zero bytes for double-byte text): the guide says to put one for the disc and one for each track, and the sequence is described on the pack structure page. Types 0x80 to 0x85 use the block’s character code. For 0x8e the guide quotes Sony: the UPC/EAN code of the album is “typically … 13 characters” and always ASCII; the ISRC of a track “typically consists of 12 characters” and is always ISO-8859-1. The guide gives the ISRC as 2 country characters [0-9A-Z], 3 owner characters [0-9A-Z], 2 digits for the year and 5 for a serial number, and the catalogue number as 13 decimal digits.
Disc identification (0x86), genre (0x87), closed information (0x8d)
0x86. Sony: “Catalog Number: (use ASCII Code) Catalog Number of the album”. The
guide notes it is not really binary and should hold only bytes with bit 7 zero. Sony’s example
has SRCS-6789 (DOC06). The explorer reports a byte with bit 7 set.
0x87. Two binary bytes (a big-endian genre code) followed by NUL-terminated text.
The guide: “you can either specify a genre code or the supplementary genre information (without
the code) or both. Neither is mandatory”. The two bytes “are written to the first 0x87 pack of
a block. They may or may not be repeated at the start of the follow-up packs”. The text is
ASCII, so the explorer takes the first two bytes of a 0x87 pack as the code when the first
byte is 0 to 31, and as text otherwise. Sony’s example has the code 0x0017, Rock Music, then
American Rock Music. Sony’s checker (rule 1-12) accepts codes 0 to 28; the
guide’s table below ends at 27 (0x001b), and the explorer reports a code above 28.
| Code | Genre | Code | Genre |
|---|---|---|---|
| 0x0000 | Not Used. Sony prescribes this when no genre applies | 0x000e | Jazz |
| 0x0001 | Not Defined | 0x000f | Latin |
| 0x0002 | Adult Contemporary | 0x0010 | Musical |
| 0x0003 | Alternative Rock | 0x0011 | New Age |
| 0x0004 | Children's Music | 0x0012 | Opera |
| 0x0005 | Classical | 0x0013 | Operetta |
| 0x0006 | Contemporary Christian | 0x0014 | Pop Music |
| 0x0007 | Country | 0x0015 | Rap |
| 0x0008 | Dance | 0x0016 | Reggae |
| 0x0009 | Easy Listening | 0x0017 | Rock Music |
| 0x000a | Erotic | 0x0018 | Rhythm & Blues |
| 0x000b | Folk | 0x0019 | Sound Effects |
| 0x000c | Gospel | 0x001a | Spoken Word |
| 0x000d | Hip Hop | 0x001b | World Music |
The table is the guide’s (Table “Genre Categories”). Sony describes the supplementary text as “genre information that would supplement the Genre Code, such as ‘USA Rock music in the 60’s’”.
0x8d. Sony: “Closed Information: (use 8859-1 Code) Any information can be
recorded on disc as memorandum. Information in this field will not be read by CD-TEXT players
available to the public.” The guide adds that a program can read it with the MMC command READ
TOC/PMA/ATIP. Sony’s example holds Ver1.01, 1996.07.10.
Table of contents (0x88)
The guide: type 0x88 records information from the disc’s table of contents, as READ TOC/PMA/ATIP
format 0010b returns it (MMC-3 Table 237), and “duplicates information stored elsewhere”. All
times are minutes, seconds and frames as three binary bytes (Sony’s TOC file line
04 11:47:62 becomes the bytes 0b 2f 3e).
| Pack | Payload bytes | Meaning |
|---|---|---|
| First (track byte 0) | 1 | First track number. |
| 2 | Last track number. | |
| 3 | Not described: “unknown, 0 in Sony example” (the guide). See below. | |
| 4 to 6 | Start of the lead-out (minutes, seconds, frames). | |
| 7 to 12 | Zero (Sony’s checker, rule 2-5). | |
| Each next | 1 to 12 | Four times, three bytes each: the start of the track named by the pack’s track byte and of the next three tracks. The track byte of the second pack is the first track and each pack adds 4 (Sony, rule 2-8). The last pack is padded with zeros (rule 2-12). |
Sony’s checker requires the track in the first pack to match the first and last track of the block size record (rule 2-6), the highest track byte not to pass the last track (2-9), the times to rise (2-10) and no time to pass 83:59:74 (2-7, 2-11). The explorer applies all of them.
The guide labels the first two numbers “PMIN of POINT A1” and “PMIN of POINT A2”. MMC-3 puts the first track in the A0 row of the table of contents, the last track in A1 and the lead-out in A2 (Table 237), so the guide’s labels are one point off; the order of the bytes, which the guide’s example and Sony’s hex dump settle, is first track, last track, then the lead-out.
Not described. The third byte is zero in Sony’s example (a disc whose first track starts at 00:02:00 and whose lead-out is 63:02:18) and in every other file read here. MMC-3’s A0 row has a “Disc Type” byte (00h CD-DA or CD-ROM, 10h CD-I, 20h CD-ROM-XA), but no source says this byte is that. The explorer shows it labelled “not described by Sony”.
Sony’s example, from cdtext.zip (DOC06): the TOC file lines A0 01,
A1 14, A2 63:02:18, 01 00:02:00 … 14 57:03:25
make the packs 88 00 23 00 01 0e 00 3f 02 12 …, 88 01 24 00 00 02 00 04 0b 19
08 02 32 0b 2f 3e … and so on.
Second table of contents (0x89)
Sony’s Binary Checker (DOC10, rules 2-13 to 2-17) defines every byte of a 0x89 pack.
| Byte | Name in Sony’s checker | Rule |
|---|---|---|
| Track byte (header byte 1) | Track Number | From the first to the last track of the block size record (2-14). |
| Payload 1 | Priority Number | “Begins from 00H and increases by 1” (2-13). |
| Payload 2 | Number of Intervals | The number of 0x89 packs in the block (2-17). |
| Payload 3 to 6 | Reserved | 00 (2-16). |
| Payload 7 to 9 | Start point | Minutes, seconds, frames; not above 83:59:74 (2-15). |
| Payload 10 to 12 | End point | The same (2-15). |
Sony’s example (DOC06) is four packs. Its TOC file lines
01 02:41:48 01 02:52:58, 06 23:14:25 06 23:29:60,
07 28:30:39 07 28:42:30 and 13 55:13:26 13 55:31:50 become the packs
89 01 28 00 01 04 00 00 00 00 02 29 30 02 34 3a … and three more, with the track byte
1, 6, 7 and 13, the priority numbers 1, 2, 3 and 4, and 4 in the second payload byte. So the
track number is written once in the pack although the TOC file line names it twice, and
Sony’s own example starts its priority numbers at 1 where its checker says 0; the explorer
checks that they rise by 1 and does not test the first. In the example each interval lies
inside the time range of its track (the guide).
What the intervals are for is not stated. The guide says the type “is not yet clear” and “might be a representation of Playback Skip Interval, Mode-5 Q sub-channel, POINT 01 to 40” of MMC-3. MMC-3 describes those points as skip intervals, each with a stop time and a start time, and notes that they “are seldom written by recorders and typically ignored by readers” (section 4.2.3.6.3). libburn’s notes add that, if so, the type would not apply to a disc written from a cue sheet, which cannot express Mode-5 Q. Neither Sony’s documents nor MMC-3 say it is so; the explorer shows the fields as Sony names them.