UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

21 lines (20 loc) 629 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Dynamics = void 0; const enums_1 = require("./enums"); /** * Dynamics can be associated either with a note or a general musical direction. * * See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/dynamics/ */ class Dynamics { element; constructor(element) { this.element = element; } /** Returns the dynamic types associated with this element. */ getTypes() { return this.element.children(...enums_1.DYNAMIC_TYPES.values).map((child) => child.name); } } exports.Dynamics = Dynamics;