Key signatures are written at the beginning of each line of music. This helps the player to remember what the key signature is. The time signature, however, is only written at the beginning of the piece (the order is: clef – key signature – time signature). Sometimes music changes key (modulates) during a piece. If the music is going to stay in the new key for some time the composer may decide to change the key signature. Another reason for changing the key signature might be that the music has modulated to a key like G sharp major with eight sharps (including a double sharp). It is easier to read the music if it is written in A flat major (4 flats). 