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 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