neoscore.western.accidental_type

class neoscore.western.accidental_type.AccidentalType[source]

Bases: Enum

A logical accidental descriptor covering standard 12-EDO western accidentals.

These are used both in abstract Pitch descriptions and in concrete graphical Accidental objects.

Each enum’s string value is its corresponding canonical SMuFL glyph name.

Not all glyphs are mandatory in SMuFL, but all are available in Bravura.

FLAT = 'accidentalFlat'
NATURAL = 'accidentalNatural'
SHARP = 'accidentalSharp'
DOUBLE_FLAT = 'accidentalDoubleFlat'
DOUBLE_SHARP = 'accidentalDoubleSharp'
NATURAL_FLAT = 'accidentalNaturalFlat'
NATURAL_SHARP = 'accidentalNaturalSharp'
FLAT_SMALL = 'accidentalFlatSmall'
NATURAL_SMALL = 'accidentalNaturalSmall'
SHARP_SMALL = 'accidentalSharpSmall'
FLAT_PARENS = 'accidentalFlatParens'
NATURAL_PARENS = 'accidentalNaturalParens'
SHARP_PARENS = 'accidentalSharpParens'
DOUBLE_SHARP_PARENS = 'accidentalDoubleSharpParens'
DOUBLE_FLAT_PARENS = 'accidentalDoubleFlatParens'
property pitch_class_offset: Optional[int]

Return an integer pitch class offset if applicable.

This will return None for all accidental types except standard 12-EDO ones.