Used by GraphicalNote.FromNote(note) and osmd.rules.GNote(note) to get a GraphicalNote from a Note. Note that we don't want the data model (Note) to be dependent on the graphical implementation (GraphicalNote), and have (potentially circular) import dependencies of graphical parts, which also applies to other non-graphical classes. That's why we don't save a GraphicalNote reference directly in Note.
The transposed pitch, if the score is transposed, otherwise undefined.
The number of tremolo strokes this note has (16th tremolo = 2 strokes). Could be a Tremolo object in future when there is more data like tremolo between two notes.
The Arpeggio this note is part of.
The transposed (!!!) HalfTone of this note.
States whether this is a cue note (Stichnote) (smaller size).
The amount of notes the tuplet of this note (if there is one) replaces.
The NoteType given in the XML, e.g. quarter, which can be a normal quarter or tuplet quarter -> can have different length/fraction
Color of the notehead currently set/desired for next render. RGB Hexadecimal, like #00FF00. Needs to be stored here and not in Note.Notehead, because Note.Notehead is undefined for normal Noteheads to save space and time.
Color of the notehead given in the XML Notehead tag. RGB Hexadecimal, like #00FF00. This should not be changed, instead noteheadColor is used and modifiable for Rendering. Needs to be stored here and not in Note.Notehead, because Note.Notehead is undefined for normal Noteheads to save space and time.
The untransposed (!!!) source data.
States whether the note should be displayed. False if xmlNode.attribute("print-object").value = "no".
Color of the stem given in the XML Stem tag. RGB Hexadecimal, like #00FF00. This is not used for rendering, which takes VoiceEntry.StemColor. It is merely given in the note's stem element in XML and stored here for reference. So, to read or change the stem color of a note, modify note.ParentVoiceEntry.StemColor.
The stem direction asked for in XML. Not necessarily final or wanted stem direction.
The length/duration given in the
The desired notehead color for the next render.
The desired notehead color for the next render.
Whether the note fills the whole measure.
Note: May be dangerous to use if ParentStaffEntry.VerticalContainerParent etc is not set. better calculate this directly when you have access to the note's measure. whole rest: length = measure length. (4/4 in a 4/4 time signature, 3/4 in a 3/4 time signature, 1/4 in a 1/4 time signature, etc.)
Generated using TypeDoc
Represents a single pitch with a duration (length)