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 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 ("modulate") during contrasting sections, and only