Skip to main content

Module style

Module style 

Source
Expand description

How an object is drawn: music21’s style objects. How an object is drawn: music21’s style objects, as far as the crate keeps them.

A TextStyle says where a piece of text stands, in what font and colour, and how it is aligned and justified, as MusicXML’s print-style, alignment and justify attributes say it.

Structs§

StreamStyle
How a whole score is drawn, past what its layouts say: music21’s StreamStyle, the part MusicXML’s <defaults> writes.
TextStyle
Where a piece of text stands and how it is drawn: music21’s TextStyle, the part of it MusicXML’s print style, alignment and justification say.

Enums§

StyleValue
A value of a style as music21 keeps the attribute it read: a whole number where the text is one, to within a millionth, a number with a fraction where it is that, and the text itself where it is no number – music21’s numToIntOrFloat, which a MusicXML font size written as a CSS size, medium, passes over.

Constants§

CSS_COLORS
The CSS3 colour names and their hex values, sorted by name: the table music21 reads a colour name out of, through webcolors.

Functions§

css_color_hex
The hex value of a CSS3 colour name, as #FF0000 for red, whatever case the name is written in; None for a name CSS does not have.