UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

20 lines (19 loc) 698 B
/** * The `<rootfile>` element describes each top-level file in the MusicXML container. * * See https://www.w3.org/2021/06/musicxml40/container-reference/elements/rootfile/. */ export class Rootfile { element; constructor(element) { this.element = element; } /** Returns the full path of the root file. Defaults to empty string. */ getFullPath() { return this.element.attr('full-path').withDefault('').str(); } /** Returns the media type of the root file. Defaults to 'application/vnd.recordare.musicxml+xml'. */ getMediaType() { return this.element.attr('media-type').withDefault('application/vnd.recordare.musicxml+xml').str(); } }