UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

18 lines (17 loc) 613 B
import { ACCIDENTAL_TYPES } from './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/ */ export class AccidentalMark { element; constructor(element) { this.element = element; } /** Returns the type of the accidental mark. Defaults to null. */ getType() { return this.element.content().enum(ACCIDENTAL_TYPES); } }