| Field name | header | tune | elsewhere | Used by | Examples and notes | |
|---|---|---|---|---|---|---|
| A: | area | optional | A:Donegal, A:Bampton | |||
| B: | book | optional | yes | archive | B:O'Neills | |
| C: | composer | optional | C:Trad. | |||
| D: | discography | optional | archive | D:Chieftans IV | ||
| E: | elemskip | optional | yes | see Line Breaking | ||
| F: | file name | yes | see index.tex | |||
| G: | group | optional | yes | archive | G:flute | |
| H: | history | optional | yes | archive | H:This tune said to ... | |
| I: | information | optional | yes | playabc | ||
| K: | key | last | yes | K:G, K:Dm, K:AMix | ||
| L: | note length | optional | yes | L:1/4, L:1/8 | ||
| M: | meter | optional | yes | yes | M:3/4, M:4/4 | |
| N: | notes | optional | N:see also O'Neills - 234 | |||
| O: | origin | optional | yes | index | O:I, O:Irish, O:English | |
| P: | parts | optional | yes | P:ABAC, P:A, P:B | ||
| Q: | tempo | optional | yes | Q:200, Q:1/4=120, Q:C2=200 | ||
| R: | rhythm | optional | yes | index | R:R, R:reel | |
| V: | voice | optional | yes | V: 2=2nd violin, V:3 | ||
| S: | source | optional | S:collected in Brittany | |||
| T: | title | second | yes | T:Paddy O'Rafferty | ||
| W: | words | yes | yes | Words placed below the last staff | ||
| w: | words | no | yes | Words placed below the notes | ||
| X: | index number | first | X:1, X:2 | |||
| Z: | transcription | optional | Z:Joe Smith <js@fu.bar.com> from handwritten copy |
Some of these make sense only in the header portion of a tune, while others may be used inside the music portion to change the information.
Some programs (such as abc2ps) now accept notation such as: [K:...] to change information inside a line of music. But this notation might be ignored by some ABC software.
Now for detailed descriptions:
| K:D | D major | 2 sharps |
| K:Dmaj | D major | 2 sharps |
| K:Dmajor | D major | 2 sharps |
| K:Dm | D minor | 1 flat |
| K:Dmin | D minor | 1 flat |
| K:Dminor | D minor | 1 flat |
| K:C | C major | No sharps or flats |
| K:Am | A minor | No sharps or flats |
| K:DDor | D Dorian | No sharps or flats |
| K:DDorian | D Dorian | No sharps or flats |
| K:ELyd | E Lydian | No sharps or flats |
| K:DMix | D Mixolydian | 1 sharp |
| K:DPhr | D Phrygian | 2 flats |
| K:DLyd | D Lydian | 3 sharps |
| K:Amix=g | A mixolydian | two sharps + advisory G natural |
| K:Dphr^F | D hijaz/freygish | 2 flats and 1 sharp |
| K:Cdor^F | C misheberach | 2 flats and 1 sharp |
| K:_B_e^F | same, no tonic | 2 flats and 1 sharp |
| K:D_e_B^f^c | D zengule | 2 flats and 2 sharps |
| K:GDor^c | G misheberach | Bb plus C# |
It is conventional to use upper-case letters for the key, though there have been enough examples of lower-case keys to encourage the software to ignore the case. The mode names may be upper or lower case, and are usually abbreviated. The "maj" and "major" mode indicators are almost never used, and some software might not recognize it. For explicit key signatures, the case is significant to formatting programs, since this says where to put the accidental on the staff.
In addition, there are two keys specifically for notating highland bagpipe tunes: K:HP doesn't put a key signature on the music, as is common with many tune books of this music, while K:Hp marks the stave with F sharp, C sharp and G natural. Both force all the beams and staffs to go downwards. These correspond to the two conventional ways of notating bagpipe music.
| M:C | Common time, the same as M:4/4. |
| M:C| | Cut time, the same as M:2/2. |
| M:none | Free meter, no time signature and no checking. |
| Q:1/4=112 | Note and count (preferred) |
| Q:140 | Count only, L: used for note length |
| Q:C2=80 | C is the basic note length from the L: line |
| Q:Andante | Words are only printed, not used |
The value on an X: line should be a (non-negative) integer. Some people have suggested using arbitrary strings as indentifiers, but this will confuse a some software. X:0 seems to work with all ABC software, and it is sometimes used for introductory musical information in a file with multiple tunes - often with no actual music, just headers.
Every tune in a file should have a different X: number, because if two have the same number, you may not be able to use the second. It's probably a good idea to make sure that the numbers are in increasing order. They don't need to be consecutive.
Copyright 2001, 2002 by John Chambers