Decorate your Sapper project with LilyPond.
@sapper-dragon/lilypond
utilizes LilyPond under the surface, a tool for transforming *.ly
LilyPond code files to music engraving and MIDI files.
npm install @sapper-dragon/lilypond --save-dev
# or
yarn add @sapper-dragon/lilypond --dev
This project requires the @sapper-dragon/trimmings lib, so look there first for instructions, then come back. 💫
This package requires the cli tools to be installed.
Instructions can be found here for Unix, MacOS X, and Windows.
After installing, @sapper-dragon/lilypond
will watch for *.ly
file changes in src/trimmings/lilypond
, call the lilypond processor, and save the transformed music files (*.pdf
and *.midi) to
static/music`.
You can place a trimmings.config.js
file in the root of your project to set configutations. These are the defaults:
export default {
lilypond: {
input: 'src/trimmings/lilypond', // path to watch *.ly files
filter: /\.ly$/, // pattern for files to watch
outputStatic: 'static/music', // output path
},
// ... additional settings from other @sapper-dragon packages...
}