Static
OctaveA short representation of the note like A4 (A, octave 4), Ab5 or C#4.
Static
AccidentalStatic
accidentalConverts AccidentalEnum to a string which represents an accidental in VexFlow Can also be useful in other cases, but has to match Vexflow accidental codes.
Vexflow Accidental code
Static
calcStatic
calcStatic
CalculateStatic
ceilingStatic
floorStatic
fromStatic
fromStatic
getStatic
HalfTurns an AccidentalEnum into half tone steps for pitch calculation.
Static
lineChanges a note x lines/steps up (+) or down (-) from a NoteEnum on a staffline/keyboard (white keys). E.g. Two lines down (-2) from a D is a B. Two lines up from an A is a C. (e.g. in the treble/violin clef, going one line up: E -> F (semitone), F -> G (2 semitones)). Returns new NoteEnum and the octave shift (e.g. -1 = new octave is one octave down).
Static
WrapReturns the fundamental note x (0 <= x <= 11, e.g. 0 = C) with octave change/overflow. The halftone will be one of the values in the enum NoteEnum, converted to number here as we need numbers for calculation.
A shortcut getter for ToStringShort that can be useful for debugging.