UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

22 lines (21 loc) 703 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Symbolic = void 0; /** * The <symbol> element specifies a musical symbol using a canonical SMuFL glyph name. * * `Symbol` is part of the standard library in JavaScript, so we resort to `Symbolic` instead. * * See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/symbol/ */ class Symbolic { element; constructor(element) { this.element = element; } /** Returns a specific Standard Music Font Layout (SMuFL) character. Defaults to empty string. */ getSmulfGlyphName() { return this.element.content().withDefault('').str(); } } exports.Symbolic = Symbolic;