Text

class maelzel.core.symbols.Text(text, placement='above', fontsize=None, italic=False, weight='normal', box='', color='', fontfamily='', force=False)[source]

Bases: EventSymbol

A note attached text expression

Parameters:
  • text (str) – the text

  • placement – ‘above’, ‘below’ or None to leave it undetermined

  • fontsize (Optional[float]) – the size of the text. The actual resulting size will depend on the backend used

  • weight – one of ‘normal’, ‘bold’

  • italic – should this text be italic?

  • color – a valid css color

  • box – one of ‘square’, ‘rectangle’, ‘circle’ or ‘’ to disable

  • force – force the text to be displayed even if the event is tied

Attributes Summary

appliesToRests

exclusive

Only one of a given class

Methods Summary

Attributes Documentation

appliesToRests = True
exclusive = False

Only one of a given class

Methods Documentation

scoringAttachment()[source]
Return type:

Attachment