Output MusicXML to the speakers.
Install the package with NPM:
$ npm install -g musicxml-to-speaker
The -g
flag is recommended for easy CLI usage, but completely optional.
Run it via the CLI:
$ musicxml-to-speaker song.xml
Or, programmatically interact with its API:
var musicXmlToSpeaker = require("musicxml-to-speaker");
var stream = musicXmlToSpeaker.play("song.xml");
stream.on("finish", function() { console.log("Done!") });
This package is mostly just a thin wrapper around musicxml-to-pcm and node-speaker.
If speakers simply aren't your thing, then perhaps try musicxml-to-mp3 or musicxml-to-wav.