Class: NoteVisitor

NoteVisitor()

This class implements a visitor used to display notes in Vex format.

Constructor

new NoteVisitor()

Source:

Members

Types

Returns the Vex type of note (whole, quarter, etc.) from it's XML representation
Source:

Methods

calculateType()

Calculate the long representation type from the length of the note. A length of 4 is a whole note, 2 a half and so on.
Source:

getAccidental()

Converts accidentials from MusicXML to VexFlow
Source:

getVexNote()

Returns the input required for Flow.StaveNote
Source:

visit(note)

Converts the XML note object into VexFlow format.
Parameters:
Name Type Description
note Note XML note object
Source: