neoscore.western.dynamic
- class neoscore.western.dynamic.Dynamic[source]
Bases:
MusicText
A textual dynamic marking
- __init__(pos: PointDef, parent: PositionedObject, text: str, font: Optional[MusicFont] = None)[source]
- Parameters
pos – Position relative to
parent
parent – If no font is given, this or one of its ancestors must implement
HasMusicFont
.text – A valid dynamic indicator string consisting of the letters: ‘p, m, f, r, s, z, n’
font – If provided, this overrides any font found in the ancestor chain.
- classmethod ppp(pos: PointDef, parent: PositionedObject, font: Optional[MusicFont] = None) Dynamic [source]
Create a ‘ppp’ dynamic.
- classmethod pp(pos: PointDef, parent: PositionedObject, font: Optional[MusicFont] = None) Dynamic [source]
Create a ‘pp’ dynamic.
- classmethod p(pos: PointDef, parent: PositionedObject, font: Optional[MusicFont] = None) Dynamic [source]
Create a ‘p’ dynamic.
- classmethod mp(pos: PointDef, parent: PositionedObject, font: Optional[MusicFont] = None) Dynamic [source]
Create an ‘mp’ dynamic.
- classmethod mf(pos: PointDef, parent: PositionedObject, font: Optional[MusicFont] = None) Dynamic [source]
Create an ‘mf’ dynamic.
- classmethod f(pos: PointDef, parent: PositionedObject, font: Optional[MusicFont] = None) Dynamic [source]
Create a ‘f’ dynamic.
- classmethod ff(pos: PointDef, parent: PositionedObject, font: Optional[MusicFont] = None) Dynamic [source]
Create a ‘ff’ dynamic.
- classmethod fff(pos: PointDef, parent: PositionedObject, font: Optional[MusicFont] = None) Dynamic [source]
Create a ‘fff’ dynamic.