Mark
Mark(
name: str,
description: str | None = None,
kind: MarkType | None = None,
attachment_mode: AttachmentMode | None = None,
aliases: tuple[str, ...] = (),
binds: bool = False,
)A mark as it appears in a notation system’s vocabulary (a staccato dot, a slur, a fermata, mf). The thing placed in a score is a Marking or a MarkSpanner holding one of these.
Most of a Mark is descriptive. The few attributes code acts on are added one at a time, named for what the mark means musically rather than for the code that reads them: kind and attachment_mode classify it, and binds says that the events under a span mark are one articulation (one bow, one breath, one syllable), as under a slur or a tie. A mark that binds cannot begin a new lyric syllable except on its first note.
Attributes
| Name | Description |
|---|---|
| name | |
| description | |
| kind | |
| attachment_mode | |
| aliases | |
| binds |
Methods
| Name | Description |
|---|---|
__repr__ |
The constructor call that builds this mark back, |
__repr__
__repr__()The constructor call that builds this mark back, with the fields at their defaults left out, so a mark made for one score prints as it was written.
>>> Mark(name="dolce")
Mark(name='dolce')
>>> Mark(name="A", kind=MarkType.OTHER, attachment_mode=AttachmentMode.SINGLE)
Mark(name='A', kind=MarkType.OTHER, attachment_mode=AttachmentMode.SINGLE)
>>> from openmusickit.systems.wsmn.scoring.symbols import staccato
>>> staccato
Mark(name='staccato', description='A staccato dot: the note is played detached and shortened.', kind=MarkType.ARTICULATION, attachment_mode=AttachmentMode.SINGLE)