OpenSheetMusicDisplay
    Preparing search index...

    Class GraphicalNote

    The graphical counterpart of a [[Note]]

    Hierarchy (View Summary)

    Index
    baseFingeringXOffset: number
    baseStringNumberXOffset: number
    boundingBox: BoundingBox
    DrawnAccidental: AccidentalEnum = AccidentalEnum.NONE
    graphicalNoteLength: Fraction
    lineShift: number = 0
    numberOfDots: number
    parentVoiceEntry: GraphicalVoiceEntry
    sourceNote: Note
    staffLine: number
    • 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