EventSymbol

class maelzel.core.symbols.EventSymbol(color='', placement='', noMergeNext=False)[source]

Bases: Symbol

Base-class for all event-attached symbols

These are symbols attached to one event (note, chord, rest, clip, …). The color and placement attributes do not apply for all symbols of this kind but we include it at this level to make the structure simpler

Parameters:
  • color (str) – The color of the symbol.

  • placement (str) – The placement of the symbol. One of ‘above’, ‘below’ or ‘’ to use the default placement

  • noMergeNext – if True, do not allow an event with this symbol to be merged with another event

Attributes Summary

Methods Summary

applyToNotation(n, parent)

Apply this symbol to the given notation, inplace

checkAnchor(anchor)

Returns an error message if the event cannot add this symbol

scoringAttachment()

Attributes Documentation

appliesToRests = True

Methods Documentation

applyToNotation(n, parent)[source]

Apply this symbol to the given notation, inplace

Return type:

None

checkAnchor(anchor)[source]

Returns an error message if the event cannot add this symbol

Return type:

str

scoringAttachment()[source]
Return type:

Attachment