A short representation of the note like A4 (A, octave 4), Ab5 or C#4.
ret[0] = the transposed fundamental. ret[1] = the octave shift (not the new octave!)
Turns an AccidentalEnum into half tone steps for pitch calculation.
Returns 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.
Converts 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
Changes 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).
Generated using TypeDoc
A shortcut getter for ToStringShort that can be useful for debugging.