UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

18 lines (17 loc) 633 B
/** * Fingering is typically indicated 1, 2, 3, 4, 5. Multiple fingerings may be given, typically to substitute * fingerings in the middle of a note. For guitar and other fretted instruments, the `<fingering>` element * represents the fretting finger; the `<pluck>` element represents the plucking finger. * * See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/fingering/ */ export class Fingering { element; constructor(element) { this.element = element; } /** Returns the fingering number. Defaults to null. */ getNumber() { return this.element.content().int(); } }