UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

18 lines (17 loc) 577 B
/** * 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/ */ export 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(); } }