UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

22 lines (21 loc) 762 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Fingering = void 0; /** * 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/ */ class Fingering { element; constructor(element) { this.element = element; } /** Returns the fingering number. Defaults to null. */ getNumber() { return this.element.content().int(); } } exports.Fingering = Fingering;