Skip to main content

Module common

Module common 

Source
Expand description

music21’s common: the plumbing its modules share, which knows no music. music21’s common: the plumbing under the rest of music21, which knows nothing of music. Each module is the music21 module of the same name.

Modules§

classtools
music21’s common.classTools, as far as it is not about Python objects.
decorators
music21’s common.decorators, as far as it is not about Python objects.
enums
The members of music21’s common.enums, and the hexadecimal repr its HexEnum gives.
filetools
music21’s common.fileTools, as far as it is not about Python objects.
formats
music21’s common.formats: the formats music21 reads and writes, by name and by file extension, as its converters register them.
misc
music21’s common.misc: what fits nowhere else in common.
numbertools
music21’s common.numberTools: quarter lengths kept exact, numbers rounded and written the way music21 writes them, Roman numerals and ordinals.
objects
music21’s common.objects, as far as it is not about Python objects.
parallel
music21’s common.parallel, as far as it is not about Python objects.
pathtools
music21’s common.pathTools, as far as it needs no Python.
stringtools
music21’s common.stringTools: names recased and split, text compared and cleaned, and brackets matched.

Constants§

DEBUG_ALL
music21’s common.DEBUG_ALL: everything.
DEBUG_DEVEL
music21’s common.DEBUG_DEVEL: what a developer would.
DEBUG_OFF
music21’s common.DEBUG_OFF: no debugging output.
DEBUG_USER
music21’s common.DEBUG_USER: what a user would want to see.