OpenSheetMusicDisplay
    Preparing search index...

    Class VexFlowGraphicalNote

    The VexFlow version of a [[GraphicalNote]].

    Hierarchy (View Summary)

    Index
    baseFingeringXOffset: number
    baseStringNumberXOffset: number
    boundingBox: BoundingBox
    DrawnAccidental: AccidentalEnum = AccidentalEnum.NONE
    graphicalNoteLength: Fraction
    lineShift: number = 0
    numberOfDots: number
    octaveShift: OctaveEnum
    parentVoiceEntry: GraphicalVoiceEntry
    sourceNote: Note
    staffLine: number
    vfnote: [StemmableNote, number]
    vfnoteIndex: number
    vfpitch: [string, string, ClefInstruction]
    • Gets the SVG groups of the glissandi and slides starting at this note: each with the line, and in a TAB staff the label "sl.". A glissando across a system break has a group in each system (see VexFlowMusicSheetDrawer.drawGlissando()).

      Returns HTMLElement[]

    • Gets the SVG elements of the note's modifiers: the groups of a stave note's modifiers (e.g. accidentals; none if the note has no modifiers), or the shapes of a TAB note's modifiers (e.g. a bend's curve, arrow and label).

      Returns HTMLElement[]

    • Gets the SVG elements of the note heads, e.g. the paths of a chord's heads (with EngravingRules.SVGMergeSingleChildGroups false: each head's group), or the fret numbers of a TAB note (and its chord).

      Returns HTMLElement[]

    • Whether the note is visible: false after setVisible(false), which hides its notehead (unless VisibilityOptions.applyToNotehead is false), and for a note hidden in the score, e.g. by print-object="no", or of a hidden voice (Voice.Visible false), see Note.isVisible(). Like setVisible(), this works on the drawn SVG: a new render draws the notes hidden with setVisible() visible again. It's true for a note that isn't drawn at all, e.g. of a hidden instrument (Instrument.Visible false).

      Returns boolean

    • 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, ties and glissandi, e.g. slides (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). To check whether a note is visible, e.g. after setVisible(false), use isVisible().

      Parameters

      Returns void