Static
ClefConvert a ClefInstruction to a string represention of a clef type in VexFlow.
The OSMD object to be converted representing the clef
The VexFlow size to be used. Can be default
or small
.
As soon as #118 is done, this parameter will be dispensable.
A string representation of a VexFlow clef
Static
CreateConvert a set of GraphicalNotes to a VexFlow StaveNote
Static
durationsConvert a fraction to Vexflow string durations. A duration like 5/16 (5 16th notes) can't be represented by a single (dotted) note, so we need to return multiple durations (e.g. for 5/16th ghost notes). Currently, for a dotted quarter ghost note, we return a quarter and an eighth ghost note. We could return a dotted quarter instead, but then the code would need to distinguish between notes that can be represented as dotted notes and notes that can't, which would complicate things. We could e.g. add a parameter "allowSingleDottedNote" which makes it possible to return single dotted notes instead. But currently, this is only really used for Ghost notes, so it doesn't make a difference visually. (for other uses like StaveNotes, we calculate the dots separately)
a fraction representing the duration of a note
Vexflow note type strings (e.g. "h" = half note)
Static
fontConstruct a string which can be used in a CSS font property
Static
fontConverts the style into a string that VexFlow RenderContext can understand as the weight of the font
Static
generateStatic
generateStatic
GhostStatic
keyConvert a KeyInstruction to a string representing in VexFlow a key
Static
lineConverts a lineType to a VexFlow StaveConnector type
Static
Notereturns the Vexflow code for a note head. Some are still unsupported, see Vexflow/tables.js
Static
pitchTakes a Pitch and returns a string representing a VexFlow pitch, which has the form "b/4", plus its alteration (accidental)
Static
restStatic
StaveConvert a GraphicalVoiceEntry to a VexFlow StaveNote
the GraphicalVoiceEntry which can hold a note or a chord on the staff belonging to one voice
Static
StrokeStatic
styleConvert OutlineAndFillStyle to CSS properties
Static
TimeConvert a RhythmInstruction to a VexFlow TimeSignature object
Helper class, which contains static methods which actually convert from OSMD objects to VexFlow objects.