musicxml-to-pcm
Convert MusicXML to PCM audio data.
Provides a simple interface for transforming a MusicXML document into a stream of sound samples, which can then be piped to other audio tools / programs (e.g. encoders).
Installation
Install the package with NPM:
$ npm install musicxml-to-pcm
Usage
A single method is exposed, newStream(xml, bitsPerSample, samplesPerSecond)
, that returns a readable stream emitting notes:
var musicXmlToPcm = ;var fs = ; var xml = fs;var bitsPerSample = 16;var samplesPerSecond = 44100; var stream = musicXmlToPcm;stream;stream;
Related
A few packages that utilize this interface: