Protected
boundingGets the clef for this note
Gets the SVG path elements of the beams starting on this note.
Gets the SVG path elements of the note's ledger lines.
Gets the SVG path elements of the note's slur curve.
Gets the SVG path element of the note's stem.
Gets the SVGGElement containing this note, given the SVGRenderer is used. This is for low-level rendering hacks and should be used with caution.
Gets the id of the SVGGElement containing this note, given the SVGRenderer is used. This is for low-level rendering hacks and should be used with caution.
Gets the SVG path elements of the note's tie curves.
Update the pitch of this note. Necessary in order to display accidentals correctly. This is called by VexFlowGraphicalSymbolFactory.addGraphicalAccidental.
Change the color of a note (without re-rendering). See ColoringOptions for options like applyToBeams etc. This requires the SVG backend (default, instead of canvas backend).
Set the VexFlow StaveNote corresponding to this GraphicalNote, together with its index in the chord.
Toggle visibility of the note, making it and its stem and beams invisible for false
.
By default, this will also hide the note's slurs and ties (see visibilityOptions).
(This only works with the default SVG backend, not with the Canvas backend/renderer)
To get a GraphicalNote from a Note, use osmd.EngravingRules.GNote(note).
Static
FromGet a GraphicalNote from a Note. Use osmd.rules as the second parameter (instance reference). Also more easily available via osmd.rules.GNote(note).
The VexFlow version of a [[GraphicalNote]].