synth-js
Command-line utility and Node module for generating raw audio data from MIDI files.
Installation
Command-line utility:
$ npm link synth-js
Node module:
$ npm install --save synth-js
JavaScript:
After including the file from dst/synth.min.js
, the global variable synth
will be initialized.
Usage
Command-line utility:
# assuming song.mid in cwd $ synth -i song# now song.wav contains raw audio data for song.mid
Node module:
const synth = ;const fs = ; let midBuffer = fs;// convert midi buffer to wav bufferlet wavBuffer = synth; fs;
JavaScript:
Download
See the demo here.
FAQ
Where can I find documentation?
Currently, documentation only exists for the command-line utility.
To access it, use man
:
$ man synth
For Node or JavaScript, refer to the src/
directory for accessible APIs:
synth.WAV()
synth.MIDIStream()
synth.midiToWav()
License
Available under the MIT License