musicxml-to-mp3

Convert MusicXML to MP3.

Usage no npm install needed!

<script type="module">
  import musicxmlToMp3 from 'https://cdn.skypack.dev/musicxml-to-mp3';
</script>

README

musicxml-to-mp3 NPM version

Convert MusicXML to MP3.

Installation

Install the package with NPM:

$ npm install -g musicxml-to-mp3

The -g flag is recommended for easy CLI usage, but completely optional.

Usage

Run it via the CLI:

$ musicxml-to-mp3 song.xml song.mp3

Or, programmatically interact with its API:

var musicXmlToMp3 = require("musicxml-to-mp3");

var stream = musicXmlToMp3.convert("song.xml", "song.mp3");

stream.on("finish", function() { console.log("Done!"); });

Related

This package is mostly just a thin wrapper around musicxml-to-pcm and node-lame.

If MP3 simply isn't your thing, then perhaps try musicxml-to-wav or musicxml-to-speaker.