Getting Started
Here’s how to setup astro-lilypond to begin displaying notation on your site.
Installation
Section titled “Installation”-
Terminal window pnpm create astro@latestTerminal window npm create astro@latestTerminal window yarn create astro -
Install
astro-lilypond.Terminal window pnpm astro add astro-lilypondTerminal window npx astro add astro-lilypondTerminal window yarn astro add astro-lilypondNot working?
If
astro addcan't install the package and update your config automatically, manually install the package...Terminal window pnpm add astro-lilypondTerminal window npm install astro-lilypondTerminal window yarn add astro-lilypond...then add the integration to your Astro config:
astro.config.mjs import { defineConfig } from 'astro/config';import lilypond from 'astro-lilypond';export default defineConfig({integrations: [lilypond()],}); -
Start writing music!
You can do a lot with LilyPond; view the examples. Write your LilyPond code directly in Markdown, or render
.lyfiles with<Score>.
Installing LilyPond (optional)
Section titled “Installing LilyPond (optional)”When writing music locally, it’s recommended to install the LilyPond binary so that you can compile scores in other tools. If the binary is unavailable (for example, when building and deploying your site), astro-lilypond will install it automatically.