The following melody uses the note Bb along with both F and F#. The sharp signs are written in each time the F# note occurs, since they are not in the key signature. There are many occasions when a note is required which is not indicated in the key signature of a piece. These temporary alterations to a note are called accidentals.