lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LilyPond and HTML


From: Federico Bruni
Subject: Re: LilyPond and HTML
Date: Mon, 31 Jan 2011 00:59:41 +0100

Il giorno dom, 30/01/2011 alle 15.30 -0800, Terrence McNulty ha scritto:
> I want to add LilyPond music engravings to an HTML page. After reading
> the LilyPond manual, I still do not know how to do this. The sections
> related to lilypond-book give what to this new user seem to be
> incomplete instructions. The instructions for using the initial
> LilyPond text file to create a ".ly" file and turn it into a PDF was
> clear and complete. Can someone help me with instructions for adding
> LilyPond engravings to an HTML web page? Thanks. Terry
> 

The easiest way is creating an image file of first system (-dpreview).
You can choose between .png:

lilypond -fpng -dpreview -dno-print-pages file.ly


and .svg:

lilypond -dbackend=svg -dpreview file.ly


and then include it manually in your .html file.

This is fine if you want to include few images.
If you have greater expectations, there are other solutions...
It depends on what you need.

I've written a very simple example of file that can be processed by
lilypond-book. Use this command:

lilypond-book -f html file.htmly

HTH,
Federico

My great music

Music:

\key c \minor c4 es g2
reply via email to

[Prev in Thread] Current Thread [Next in Thread]