Skip to main content

Module enums

Module enums 

Source
Expand description

The members of music21’s common.enums, and the hexadecimal repr its HexEnum gives.

The enums themselves are Python classes; what is here is their members, by music21’s names and values, so that anything building them builds music21’s.

Enums§

MemberValue
A member’s value: music21’s enums hold text, except GatherSpanners, two of whose members are True and False.

Constants§

APPEND_SPANNERS
AppendSpanners: whether the spanners an object starts or ends go out with it when it is written.
ELEMENT_SEARCH
ElementSearch: the directions getContextByClass can search in, each the name of the Stream method it searches with.
GATHER_SPANNERS
GatherSpanners: which spanners an excerpt gathers.
METER_DIVISION
MeterDivision: how a time signature is divided.
OFFSET_SPECIAL
OffsetSpecial: offsets that are not numbers.
ORNAMENT_DELAY
OrnamentDelay: the delays an ornament can have that are not a length.

Functions§

hex_numbers
The text with every run of decimal digits written in upper-case hexadecimal after 0x, which is how HexEnum turns an IntEnum’s repr into its own. Runs of any length are converted.

Type Aliases§

Member
One member: its name and its value.