Key signature


In musical notation, a key signature is a set of sharp, flat, and rarely, natural symbols placed together on the staff. Key signatures are generally written immediately after the clef at the beginning of a line of musical notation, although they can appear in other parts of a score, notably after a double barline.
A key signature designates notes that are to be played higher or lower than the corresponding natural notes and applies through to the end of the piece or up to the next key signature. A sharp symbol on a line or space in the key signature raises the notes on that line or space one semitone above the natural, and a flat lowers such notes one semitone. Further, a symbol in the key signature affects all the notes of one letter: for instance, a sharp on the top line of the treble staff applies to Fs not only on that line, but also to Fs in the bottom space of the staff, and to any other Fs. This convention was not universal until the late Baroque and early Classical period, however; music published in the 1720s and 1730s, for example, uses key signatures showing sharps or flats on both octaves for notes which fall within the staff.
An accidental is an exception to the key signature, applying only to the measure and octave in which it appears.
Although a key signature may be written using any combination of sharp and flat symbols, the most common series of fifteen homogeneous key signatures—ranging from seven flats to seven sharps, with each successive flat or sharp placed on the note a perfect fifth below or above, respectively, the previous one—is assumed in much of this article. A piece scored using a single diatonic key signature and no accidentals contains notes of at most seven of the twelve pitch classes, which seven being determined by the particular key signature.
Each major and minor key has an associated key signature that sharpens or flattens the notes which are used in its scale. However, it is not uncommon for a piece to be written with a key signature that does not match its key, for example, in some Baroque pieces, or in transcriptions of traditional modal folk tunes.
Later on, this use of a key signature that is theoretically incorrect for a piece as a whole or a self-contained section of a piece became less common ; but it can be found at least as late as one of Beethoven's very late piano sonatas. For example, in his Sonata No. 31 in A major, Op. 110, the first appearance of the Arioso section in the final movement is notated throughout in six flats; but it both begins and ends in A minor and has a significant modulation to C major, and both these keys theoretically require seven flats in their key signature.

Conventions

In principle, any piece can be written with any key signature, using accidentals to correct the pattern of whole and half steps. The purpose of the key signature is to minimize the number of such accidentals required to notate the music. The sequence of sharps or flats in key signatures is generally rigid in modern music notation. This allows musicians to identify the key simply by the number of sharps or flats, rather than their position on the staff. For example, if a key signature has only one sharp, it must be an F-sharp, which corresponds to a G major or an E minor key.
However, in 20th-century music, there are occasional exceptions to this, where a piece uses an unorthodox or synthetic scale, where a key signature may be invented to reflect this. This may consist of a number of sharps or flats that are not the normal ones, or it may consist of one or more sharps combined with one or more flats. Key signatures of this kind can be found in the music of Béla Bartók, for example.
The effect of a key signature continues throughout a piece or movement, unless explicitly cancelled by another key signature. For example, if a five-sharp key signature is placed at the beginning of a piece, every A in the piece in any octave will be played as A sharp, unless preceded by an accidental.
In a score containing more than one instrument, all the instruments are usually written with the same key signature. Exceptions include:
showing major and minor keys and their signatures

Notational conventions

The convention for the notation of key signatures follows the circle of fifths. Starting from C major which has no sharps or flats, successively raising the key by a fifth adds a sharp, going clockwise round the circle of fifths. The new sharp is placed on the new key's leading note for major keys or supertonic for minor keys. Thus G major has one sharp which is on the F; then D major has two sharps on F and C and so on.
Similarly, successively lowering the key by a fifth adds a flat, going counterclockwise around the circle of fifths. The new flat is placed on the subdominant for major keys or submediant for minor keys. Thus F major has one flat which is on the B; then B major has two flats and so on.
Put another way: for key signatures with sharps, the first sharp is placed on F with subsequent sharps on C, G, D, A, E and B; for key signatures with flats, the first flat is placed on B with subsequent flats on E, A, D, G, C and F. There are thus 15 conventional key signatures, with up to seven sharps or flats and including the empty signature of C major.
Corollaries:
The relative minor is a minor third down from the major, regardless of whether it is a flat or a sharp key signature.
The key signatures with seven flats and seven sharps are rarely used because they have simpler enharmonic equivalents. For example, the key of C major is more simply represented as D major. For modern practical purposes these keys are the same, because C and D are enharmonically the same note. Pieces are written in these extreme sharp or flat keys, however: for example, Bach's Prelude and Fugue No. 3 from Book 1 of The Well-Tempered Clavier BWV 848 is in C major. The modern musical Seussical by Flaherty and Ahrens also has several songs written in these extreme keys.
Key signatures can be further extended through double sharps and double flats. As with the seven-sharp and seven-flat examples, it is rarely necessary to express music in such keys when simpler enharmonic examples can instead be used.
The key signature may be changed at any time in a piece, usually at the beginning of a measure, simply by notating the new signature; although if the new signature has no sharps or flats, a signature of naturals, as shown, is needed to cancel the preceding signature. If a change in signature occurs at the start of a new line on the page, where a signature would normally appear anyway, the new signature is customarily repeated at the end of the previous line to make the change more conspicuous.

Variants of standard conventions

In traditional use, when the key signature change goes from sharps to flats or vice versa, the old key signature is cancelled with the appropriate number of naturals before the new one is inserted; but many more recent publications dispense with the naturals and simply insert the new signature.
Similarly, when a signature with either flats or sharps in it changes to a smaller signature of the same type, strict application of tradition or convention would require that naturals first be used to cancel just those flats or sharps that are being subtracted in the new signature before the new signature itself is written; but, again, more modern usage often dispenses with these naturals.
When the signature changes from a smaller to a larger signature of the same type, the new signature is simply written in by itself, in both traditional and newer styles.
At one time it was usual to precede the new signature with a double barline, even if it was not required by the structure of the music to mark sections within the movement; but more recently it has increasingly become usual to use just a single barline. The courtesy signature that appears at the end of a line immediately before a change is usually preceded by an additional barline; the line at the very end of the staff is omitted in this case.
If both naturals and a new key signature appear at a key signature change, there are also more recently variations about where a barline will be placed. For example, in some scores by Debussy, in this situation the barline is placed after the naturals but before the new key signature. Hitherto, it would have been more usual to place all the symbols after the barline.
In key signatures of five or more sharps or of seven flats, one occasionally encounters variant positions of particular symbols in the key signatures, both of them in the bass clef.
The A which is the fifth sharp in the sharp signatures may occasionally be notated on the top line of the bass staff, whereas it is more usually found in the lowest space on that staff. An example of this can be seen in the full score of Ottorino Respighi's Pines of Rome, in the third section, "Pines of the Janiculum", in the bass-clef instrumental parts.
In the case of seven-flat key signatures, the final F may occasionally be seen on the second-top line of the bass staff, whereas it would more usually appear below the bottom line. An example of this can be seen in Isaac Albéniz's Iberia: first movement, "Evocación", which is in A minor.

Major scale structure

Except for C major, key signatures appear in two varieties, "sharp key signatures" and "flat key signatures", so called because they contain only one or other.

Scales with sharp key signatures

Sharp key signatures consist of a number of sharps between one and seven, applied in this order:. A mnemonic device often used to remember this is "Father Charles Goes Down And Ends Battle", or “Father Christmas Gave Dad An Electric Blanket.” The key note or tonic of a piece in a major key is immediately above the last sharp in the signature. For example, one sharp in the key signature of a piece in a major key indicates the key of G major, the next note above F.
Major keyNumber
of sharps
Sharp notesMinor keyEnharmonic
equivalent
C major0A minor-
G major1FE minor-
D major2F, CB minor-
A major3F, C, GF minor-
E major4F, C, G, DC minor-
B major5F, C, G, D, AG minorC major/A minor
F major6F, C, G, D, A, ED minorG major/E minor
C major7F, C, G, D, A, E, BA minorD major/B minor

This table shows that each scale starting on the fifth scale degree of the previous scale has one new sharp, added in the order given above.

Scales with flat key signatures

"Flat key signatures" consist of one to seven flats, applied as: The mnemonic device is then reversed for use in the flat keys: "Battle Ends And Down Goes Charles' Father", or "Blanket Exploded And Dad Got Cold Feet.” The major scale with one flat is F major. In all other "flat major scales", the tonic or key note of a piece in a major key is four notes below the last flat, which is the same as the second-to-last flat in the signature. In the major key with four flats, for example, the penultimate flat is A, indicating a key of A major.
Major keyNumber
of flats
Flat notesMinor keyEnharmonic
equivalent
C major0A minor-
F major1BD minor-
B major2B, EG minor-
E major3B, E, AC minor-
A major4B, E, A, DF minor-
D major5B, E, A, D, GB minorC major/A minor
G major6B, E, A, D, G, CE minorF major/D minor
C major7B, E, A, D, G, C, FA minorB major/G minor

In this case each new scale starts a fifth below the previous one.

Relationship between ''key signature'' and ''key''

A key signature is not the same as a key; key signatures are merely notational devices. They are convenient principally for diatonic or tonal music.
The key signature defines the diatonic scale that a piece of music uses without the need for accidentals. Most scales require that some notes be consistently sharped or flatted. For example, the only sharp in the G major scale is F sharp, so the key signature associated with the G major key is the one-sharp key signature. However, it is only a notational convenience; a piece with a one-sharp key signature is not necessarily in the key of G major, and likewise, a piece in G major may not always be written with a one-sharp key signature; this is particularly true in pre-Baroque music, when the concept of key had not yet evolved to its present state.
In any case, more extensive pieces often change key during contrasting sections, and only sometimes is this change indicated with a change of key signature; if not, the passage in the second key will not have a matching key signature.
The Toccata and Fugue in D minor, BWV 538 by Bach has no key signature, leading it to be called the Dorian, but it is still in D minor; the Bs that occur in the piece are written with accidentals.

Additional terminology

Keys which are associated with the same key signature are called relative keys.
When musical modes, such as Lydian or Dorian, are written using key signatures, they are called transposed modes.

Exceptions

Exceptions to common-practice-period use may be found in Klezmer scales, such as Freygish. In the 20th century, composers such as Bartók and Rzewski began experimenting with unusual key signatures that departed from the standard order.
Because of the limitations of the traditional highland bagpipe scale, key signatures are often omitted from written pipe music, which otherwise would be written with two sharps, the usual
F and C.

Unusual signatures

The above 15 key signatures only express the diatonic scale, and are therefore sometimes called standard key signatures. Other scales are written either with a standard key signature and use accidental as required, or with a nonstandard key signature. Examples of the latter include the E, and F and G used for the E diminished scale in Bartók's Crossed Hands, or the B, E and F used for the D Phrygian dominant scale in Frederic Rzewski's God to a Hungry Child.
The absence of a key signature does not always mean that the music is in the key of C major / A minor as each accidental may be notated explicitly as required, or the piece may be modal or atonal. An example is Bartók's Piano Sonata, which has no fixed key and is highly chromatic.
If not bound by common practice conventions, microtones can also be notated in a key signature; which microtonal symbols are used depends on the system.
The common practice period conventions are so firmly established that some musical notation programs have been unable to show nonstandard key signatures until recently.

History

The use of a one-flat signature developed in the Medieval period, but signatures with more than one flat did not appear until the 16th century, and signatures with sharps not until the mid-17th century.
When signatures with multiple flats first came in, the order of the flats was not standardized, and often a flat appeared in two different octaves, as shown at right. In the late 15th and early 16th centuries, it was common for different voice parts in the same composition to have different signatures, a situation called a partial signature or conflicting signature. This was actually more common than complete signatures in the 15th century. The 16th-century motet Absolon fili mi by Pierre de La Rue features two voice parts with two flats, one part with three flats, and one part with four flats.
Baroque music written in minor keys often was written with a key signature with fewer flats than we now associate with their keys; for example, movements in C minor often had only two flats.

Table