Accidental — Abjad v1.1.1 documentation

### Navigation

- index
- modules |
- next |
- previous |
- Project Abjad »
- Abjad v1.1.1 documentation »
- Abjad API »

# Accidental

class `abjad.` `Accidental`(arg='')

  Bases: `abjad.core.abjadcore._Abjad`

  Any sharp, quarter-sharp, flat, quarter-flat, etc.

      abjad> t = Accidental('s')
      abjad> t
      Accidental(s)

  `adjustment`

    Read-only number of semitones to which this accidental is equal.

        abjad> t = Accidental('s')
        abjad> t.adjustment
        1

        abjad> t = Accidental('f')
        abjad> t.adjustment
        -1

  `format`

    Read-only LilyPond format of accidental.

        abjad> t = Accidental('s')
        abjad> t.format
        's'

        abjad> t = Accidental('f')
        abjad> t.format
        'f'

  `string`

    Read / write LilyPond accidental string.

        abjad> t = Accidental('s')
        abjad> t.string
        's'

        abjad> t = Accidental('f')
        abjad> t.string
        'f'

### Navigation

- index
- modules |
- next |
- previous |
- Project Abjad »
- Abjad v1.1.1 documentation »
- Abjad API »