Key signature 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 thirteen homogeneous key signatures—ranging from six flats to six 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
Key signature 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. In traditional use, when the key signature change goes from sharps to flats or