UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

25 lines (24 loc) 705 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PullOff = void 0; const enums_1 = require("./enums"); /** * The `<pull-off>` element is used in guitar and fretted instrument notation. * * See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/pull-off/ */ class PullOff { element; constructor(element) { this.element = element; } /** Returns the number of the pull-off. Defaults to null;. */ getNumber() { return this.element.attr('number').int(); } /** Returns the type of pull-off. */ getType() { return this.element.attr('type').enum(enums_1.START_STOP); } } exports.PullOff = PullOff;