@stringsync/vexml
Version:
MusicXML to Vexflow
24 lines (23 loc) • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Container = void 0;
const rootfile_1 = require("./rootfile");
/**
* Starting with Version 2.0, the MusicXML format includes a standard zip compressed version. These zip files can
* contain multiple MusicXML files as well as other media files for images and sound. The container element is the
* document element for the META-INF/container.xml file. The container describes the starting point for the MusicXML
* version of the file, as well as alternate renditions such as PDF and audio versions of the musical score.
*
* See https://www.w3.org/2021/06/musicxml40/container-reference/elements/container/.
*/
class Container {
element;
constructor(element) {
this.element = element;
}
/** Returns the rootfiles of the container. Defaults to empty array. */
getRootfiles() {
return this.element.all('rootfile').map((node) => new rootfile_1.Rootfile(node));
}
}
exports.Container = Container;