Skip to main content

Module utilities

Module utilities 

Source
Expand description

music21’s graph.utilities: colours as matplotlib takes them, and accidentals as its fonts can draw them.

Enums§

Color
A colour as music21’s getColor takes one.
Level
One channel of a colour given as numbers: Python’s int or float, which music21 tells apart when it writes the colour as hex.

Functions§

accidental_label_to_unicode
A label with its sharps or its flats drawn as music symbols: only one of the two, the first music21’s table has that the label holds.
color_hex
A colour as the lowercase hex code matplotlib takes: music21’s getColor.