@sapper-dragon/lilypond

0.1.4 • Public • Published

@sapper-dragon/lilypond

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.

Installation

npm install @sapper-dragon/lilypond --save-dev
# or
yarn add @sapper-dragon/lilypond --dev

Usage

This project requires the @sapper-dragon/trimmings lib, so look there first for instructions, then come back. 💫

LilyPond CLI

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`.

Config

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...
}

Package Sidebar

Install

npm i @sapper-dragon/lilypond

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

4.4 kB

Total Files

4

Last publish

Collaborators

  • arxpoetica