Note class
Represents a musical note with pitch and duration.
- Inheritance
-
- Object
- MusicalElement
- Note
- Mixed-in types
Constructors
-
Note({required Pitch pitch, required Duration duration, BeamType? beam, List<
ArticulationType> articulations = const [], TieType? tie, SlurType? slur, List<Ornament> ornaments = const [], Dynamic? dynamicElement, List<PlayingTechnique> techniques = const [], int? voice, int tremoloStrokes = 0, bool isGraceNote = false, Pitch? alternatePitch, int? tabFret, int? tabString, List<Syllable> ? syllables})
Properties
- alternatePitch → Pitch?
-
Alternate pitch for grace notes with a specific pitch.
final
-
articulations
→ List<
ArticulationType> -
final
- beam → BeamType?
-
final
- boundingBox ↔ BoundingBox?
-
Gets o Hierarchical BoundingBox deste elemento
getter/setter pairinherited
- duration → Duration
-
final
- dynamicElement → Dynamic?
-
Note-specific dynamic marking.
final
- hasBoundingBox → bool
-
Checks if this elemento tem a Hierarchical BoundingBox válido
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isGraceNote → bool
-
Indicates whether this note is a grace note.
final
- isTabNote → bool
-
Indicates whether this note is a tablature note (has tabFret or tabString).
no setter
-
ornaments
→ List<
Ornament> -
List of ornaments applied to the note.
final
- pitch → Pitch
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slur → SlurType?
-
Optional: Definesss whether this note starts or ends a slur.
final
-
syllables
→ List<
Syllable> ? -
Lyric syllables associated with this note (one per verse).
Index 0 = verse 1, index 1 = verse 2, etc.
final
- tabFret → int?
-
Fret number in tablature. null = note is not a tablature note.
Corresponds to the MEI v5
@tab.fretattribute. 0 = open string, 1–24 = numbered frets.final - tabString → int?
-
String number in tablature (1-based, highest string = 1).
Corresponds to the MEI v5
@tab.stringattribute.final -
techniques
→ List<
PlayingTechnique> -
Special playing techniques for the note.
final
- tie → TieType?
-
final
- tremoloStrokes → int
-
Number of tremolo strokes (0 = none, 1–5 = number of strokes).
final
- voice → int?
-
Voice number for polyphonic notetion (1 = soprano, 2 = alto, etc.).
null = single voice (default).
final
- xmlId ↔ String?
-
Identificador único MEI (
xml:id). Opcional; required for elementos referenciados by other via atributos de ligação of the MEI v5.getter/setter pairinherited
Methods
-
addBoundingBoxChild(
BoundingBox childBBox) → void -
Adds a filho to the Hierarchical BoundingBox deste elemento
inherited
-
clearBoundingBox(
) → void -
Limpa o Hierarchical BoundingBox deste elemento
inherited
-
getOrCreateBoundingBox(
) → BoundingBox -
Creates and Returns a new Hierarchical BoundingBox for this elemento
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBoundingBoxPosition(
double x, double y) → void -
Currentiza a position relativa of the BoundingBox
inherited
-
setBoundingBoxSize(
double width, double height) → void -
Currentiza o Size of the BoundingBox
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateBoundingBoxBounds(
) → void -
ReCalculatestes recursivamente os bounds of the BoundingBox
inherited
-
updateBoundingBoxPositions(
) → void -
ReCalculatestes recursivamente as positions absolutas of the BoundingBox
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited