accidental_name

pitchtools.accidental_name(alteration_cents, semitone_divisions=4)[source]

The name of the accidental corresponding to the given cents

Parameters:
  • alteration_cents (int) – 100 = sharp, -50 = quarter-flat, etc.

  • semitone_divisions – number of divisions of the semitone

Return type:

str

Returns:

the name of the corresponding accidental, as string

cents

alteration name

0

natural

25

natural-up

50

quarter-sharp

75

sharp-down

100

sharp

125

sharp-up

150

three-quarters-sharp

-25

natural-down

-50

quarter-flat

-75

flat-up

-100

flat

-125

flat-down

-150

three-quarters-flat