brown.core.music_char

classes

A SMuFL music character.

Attributes: font (MusicFont): The font used to derive SMuFL spec information about this glyph. canonical_name (str): The canonical SMuFL name of this font alternate_number (int or None): An optional alternate glyph code.

__init__ (font, glyph_name, alternate_number=None) permalink view source

arguments:

font (MusicFont): The music font to be used. If not specified, the font is taken from the ancestor staff.

glyph_name (str): The canonical SMuFL name of the glyph

alternate_number (int or None): An optional alternate glyph code.

properties

glyph_info: dict The aggregated SMuFL metadata for this glyph permalink view source

read-only.

bounding_rect: Rect The glyph bounding box. permalink view source

read-only.