UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

22 lines (21 loc) 757 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AccidentalMark = void 0; const enums_1 = require("./enums"); /** * An `<accidental-mark>` element can be used as a separate notation or as part of an ornament. When used in an * ornament, position and placement are relative to the ornament, not relative to the note. * * See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/accidental-mark/ */ class AccidentalMark { element; constructor(element) { this.element = element; } /** Returns the type of the accidental mark. Defaults to null. */ getType() { return this.element.content().enum(enums_1.ACCIDENTAL_TYPES); } } exports.AccidentalMark = AccidentalMark;