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:Chieftains 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. |
X: 1 T: Constant Billy O: England A: Bucknell P: A(A2B)3.A2 M: 6/8 L: 1/8 K: G P: A |:G2d BGB | c2A AFD | BAG E2E | AGF G3 :| P: B | Gee e>de | ABc dBG | ABc dBG | ABc d3 \ | G2d BGB | c2A AFD "S"|BAG E2E | DEF G3 || P: S Last time - Caper out | ((2BA) G3 | ((2E>F) G3 | ((2D>E) F3 | G6 |]In this tune, there are are two parts, plus a sort of coda. The first P: line says to play the parts in the order AAABAABAABAA, and then the last part will be played (until the dancers have gotten out of the dance area).
Note that the P: lines in the music may be single letters, in which case a lot of software that plays ABC will follow the order given by the P: line in the header. Or the P: lines may contain longer descriptions. Classical works may use lines like P:Adagio or P:Trio to label the sections. Probably not much software will be able to use this for playback.
In general, the contents of P: lines in the header are not very well defined, and they are really only useful for giving instructions to humans that understand the musical style. This may be improved in the future (or it may get more complex as ABC is used for more musical styles).
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 by software |
The Q: header is often used to place arbitrary text above the left end of the first staff. This isn't a good idea, since various ABC software will attempt to interpret the text as tempo instructions, with confusing results.
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