In music, an accidental is a note of a pitch (or pitch class) that is not a member of the scale or mode indicated by the most recently applied key signature. In musical notation, the sharp (), flat (), and natural () symbols, among others, mark such notes—and those symbols are also called accidentals. In the measure (bar) where it appears, an accidental sign raises or lowers the immediately following note (and any repetition of it in the bar) from its normal pitch, overriding the key signature. A note is usually raised or lowered by a semitone, and there are double sharps or flats, which raise or lower the indicated note by two semitones. Accidentals usually apply to all repetitions within the measure in which they appear, unless canceled by another accidental sign, or tied into the following measure. If a note has an accidental and the note is repeated in a different octave within the same measure the accidental is usually repeated, although this convention is far from universal. The modern accidental signs derive from the two forms of the lower-case letter b used in Gregorian chant manuscripts to signify the two pitches of B, the only note that could be altered. The "round" b became the flat sign, while the "square" b diverged into the sharp and natural signs. Sometimes the black keys on a musical keyboard are called "accidentals" (more usually sharps), and the white keys are called naturals. Standard use of accidentals Typical system In most cases, a sharp raises the pitch of a note one semitone while a flat lowers it one semitone. A natural is used to cancel the effect of a flat or sharp. This system of accidentals operates in conjunction with the key signature, whose effect continues throughout an entire piece, unless canceled by another key signature. An accidental can also be used to cancel a previous accidental or reinstate the flats or sharps of the key signature. Accidentals apply to subsequent notes on the same staff position for the remainder of the measure where they occur, unless explicitly changed by another accidental. Once a barline is passed, the effect of the accidental ends, except when a note affected by an accidental is tied to the same note across a barline. Subsequent notes at the same staff position in the second or later bars are not affected by the accidental carried through