1.13 Key signatures
Read a key signature and apply it to notes throughout the music.
A key signature is a group of sharps or flats after the clef, before the time signature at the beginning of a piece. It specifies alterations that would otherwise need to be repeated beside individual notes.
Each sign applies to every octave of its letter name and remains in force across barlines until the signature changes. The F♯ in a G major signature therefore affects both high and low Fs, not only the line on which the sign is printed.
C major has no signs; G major has F♯; D major has F♯ followed by C♯; F major has B♭. The written positions differ between treble and bass clefs, but the affected letter names remain the same.
An accidental can override the signature within a bar. In G major, F♮ makes that F and later Fs at the same stave position natural, unless another accidental changes them. In the next bar, a newly sounded F follows the signature again and becomes F♯. A tied continuation retains its previous pitch.
C major: no signs. G major: F♯. D major: F♯ and C♯. F major: B♭.