Key signature may consist of one or more sharps combined with one or more flats (such as a signature containing both F and B). 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 (for instance, the A in scale 2 illustrated –
Key signature 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 (seven sharps) is more simply represented as D major (five flats). For modern practical purposes these keys are (in twelve tone equal temperament) 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