maelzel.core.symbols Module¶
Notation can be customized by adding so called Symbols
to
an object. Symbols are objects which can be attached to a note, chord, voice, etc.
to modify its representation as musical notation.
Most symbols do not have any other meaning than to indicate how a certain object should be displayed as notation. In particular, they do not affect playback in any way. For example a Notehead symbol can be attached to a note to modify the notehead shape used, a Color can be attached to a voice to modify the color of all its items, a Clef can be added to a note to force a clef change at that particular moment, etc.
There are basically three kind of symbols: properties, note-attached symbols and spanners.
- Property
A property modifies an attribute of the object it is attached to. For example, a SizeFactor property modifies the size of the object and, if the object is a container (a voice, for example), then all elements within that container are modified.
Functions¶
|
A decorator indicating abstract methods. |
|
|
|
Create a symbol from a known name |
|
Create a spanner from a descriptor |
|
Construct a Symbol from the symbol name and any values and/or keywords passed |
|
Parses the input of addSymbol |
Classes¶
|
Helper class that provides a standard way to create an ABC using inheritance. |
|
Customizes the accidental of a note |
|
Represents a note attached articulation |
|
Notes within a Beam spanner are beamed together |
|
Symbolizes a syncopation (beam) break at the given location or at the given note |
|
A (post) bend with an alteration up or down |
|
|
|
A breathmark symbol, will also break the beam at the given instant |
|
An explicit clef sign |
|
Customizes the color of an object |
|
A notation only dynamic |
|
Base-class for all event-attached symbols |
|
alias of |
|
A Fermata sign over a note |
|
A fingering attached to a note |
|
Customizes properties of a glissando |
|
Customizes properties of a gracenote |
|
A hairpin crescendo or decrescendo |
|
A natural/artificial harmonic, or a sound-pitch flageolet |
|
A hidden property can be attached to note to hide it |
|
A line spanner |
|
A note marked with this symbol will not be merged to a previous note |
|
Allows to customize the notated pitch of a note |
|
Customizes the notehead shape, color, parenthesis and size |
|
Symbols attached to a notehead (a pitch) |
|
A line conecting two noteheads |
|
An octave shift |
|
Note-attached ornament (trill, mordent, prall, etc.) |
|
A property is a modifier of an object itself (like a color or a size) |
|
Sets the size of an object (as a factor of default size) |
|
A slur spanner between two notes |
|
A Spanner is a line/curve between two anchors (notes/chords/rests) |
|
Customize the stem of a note |
|
Base class for all symbols |
|
A note attached text expression |
|
Apply a transposition for notation only |
|
A stem-attached tremolo sign |
|
Trill spanner between two notes. |
|
Symbols which can be attached to a voice |