Node: Integrating HTML and music, Next: , Previous: Integrating LaTeX and music, Up: lilypond-book manual



Integrating HTML and music

Music is entered using

     <lilypond relative1 verbatim>
       \key c \minor r8 c16 b c8 g as c16 b c8 d | g,4
     </lilypond>
     

of which lilypond-book will produce a HTML with appropriate image tags for the music fragments:

     <lilypond relative1 verbatim>
       \key c \minor r8 c16 b c8 g as c16 b c8 d | g,4
     </lilypond>
     

[picture of music]

For inline pictures, use <lilypond ... /> syntax, eg.

     Some music in <lilypond a b c/> a line of text.
     

A special feature not (yet) available in other output formats, is the <ly2dvifile> tag, for example,

       <ly2dvifile>trip.ly</ly2dvifile>
     
This runs trip.ly through lilypond (see also Invoking lilypond), and substitutes a preview image in the output. The image links to a separate HTML file, so clicking it will take the viewer to a menu, with links to images, midi and printouts.

This page is for LilyPond-2.0.1 (stable-branch).

Report errors to <bug-lilypond@gnu.org>.