$ npm install lilynode
Require LilyNode in your programs:
var lilynode = require('lilynode')
lilynode.renderFile(filePath, options, callback)
Path to LilyPond file to get rendered
Options object to configure the rendering
format
: File format of output file
Type: String
Possible values:
- midi
- ps
- png
- svg
Default value: png
resolution
: Resolution of output in ppcm (only available for png format)
Type: Number
Default value: 50
binaryPath
: Path to lilypond binary
Type: String
Default value: lilypond
Callback is a function which gets the two arguments error
and output
passed.
output
is a buffer containing the rendered file which can then for example be saved to a file.