In music theory, atheoretical key or impossible key is a key whose key signature has at least one double-flat or double-sharp. Double-flats and double-sharps are often used as accidentals, but placing them in the key signature makes the music generally impractical to read.
For example, the key of G-sharp major is a key of this type, because its corresponding key signature has an F, giving it eight sharps. An equal-tempered scale of G-sharp major scale consists of the same pitches as the A-flat majorscale, so that the two scales sound exactly the same; such key pairs are said to be enharmonically equivalent. Consequently, the theoretical key of G-sharp major is usually notated as A-flat major which has four flats. Even when enharmonic equivalence is not resorted to, it is more common to use either no key signature or one with single-sharps and to provide accidentals as needed for the Fs, than to incorporate double-sharps into the key signature. Nevertheless, examples of the latter can be found.
Modulation
While a piece of Western music generally has a home key, a passage within it may modulate to another key, which is usually closely related to the home key, that is, close to the original around the circle of fifths. When the key is near the top of the circle, the notation of both keys is straightforward. But if the home key is near the bottom of the circle, and particularly if the new key is on the opposite side, it becomes necessary to consider enharmonic equivalence. In each of the bottom three places on the circle of fifths the two enharmonic equivalents can be notated entirely with single accidentals and so do not classify as 'theoretical keys':
However, when a parallel key ascends the opposite side of the circle from its home key, then theory suggests that double-sharps and double-flats would have to be incorporated into the notated key signature. The following keys would require up to seven double-sharps or double-flats:
For example, pieces in the major mode commonly modulate up a fifth to the dominant; for a key with sharps in the signature this leads to a key whose key signature has an additional sharp. A piece in C-sharp that performs this modulation would lead to the theoretical key of G-sharp major, requiring eight sharps, meaning an F in place of the F already present. To write that passage with a new key signature would require recasting the new section using the enharmonically equivalent key signature of A-flat major. An example of such recasting is Claude Debussy's Suite bergamasque: in the third movement "Clair de lune" the key shifts for a few measures from D-flat major to D-flat minor, but the passage is notated in C-sharp minor for ease of reading; the same happens in the final movement "Passepied", which reaches theoretical G-sharp major written as A-flat major.
Notation
Such passages may instead be notated with the use of double-sharp or double-flat accidentals, as in this example from Johann Sebastian Bach's Well-Tempered Clavier, in G-sharp major : In very few cases, theoretical keys are in fact used directly, putting the necessary double-accidentals in the key signature. The final pages of John Foulds' A World Requiem are written in G major, and the third movement of Victor Ewald's Brass Quintet Op. 8 is written in F major. Examples of theoretical key signatures are pictured below: \relative c'
There does not appear to be a standard on how to notate theoretical key signatures:
The default behaviour of LilyPond writes all single sharps in the circle-of-fifths order, before proceeding to the double sharps. This is the format used in John Foulds' A World Requiem, Op. 60, which ends with the key signature of G major exactly as displayed above. The sharps in the key signature of G major here proceed C, G, D, A, E, B, F.
The single sharps or flats at the beginning are sometimes repeated as a courtesy, e.g. Max Reger's Supplement to the Theory of Modulation, which contains D minor key signatures on pp. 42–45. These have a B at the start and also a B at the end, going B, E, A, D, G, C, F, B. The convention of LilyPond and Foulds would suppress the initial B.
Sometimes the double signs are written at the beginning of the key signature, followed by the single signs. For example, the F key signature is notated as B, E, A, D, G, C, F. This convention is used by Victor Ewald, by the programFinale, and by some theoretical works.
Tunings other than twelve-tone equal-temperament
In a different tuning system there may be keys that do require a double-sharp or double-flat in the key signature, and no longer have conventional equivalents. For example, in 19 tone equal temperament, the key of B major is equivalent to A-sharp major. Thus in non-12-tone tuning systems, keys that are enharmonic in a 12tone system may be notated completely differently.