musicxml-to-speaker

Output MusicXML to the speakers.

Usage no npm install needed!

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

README

musicxml-to-speaker NPM version

Output MusicXML to the speakers.

Installation

Install the package with NPM:

$ npm install -g musicxml-to-speaker

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

Usage

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!"); });

Related

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.