Product SiteDocumentation Site

Chapter 12. LilyPond

12.1. How LilyPond Works
12.2. Requirements and Installation
12.2.1. Learn about Frescobaldi
12.2.2. Requirements and Installation (for Frescobaldi)
12.3. Configure Frescobaldi
12.4. LilyPond Basics
12.4.1. Letters Are Pitches
12.4.2. Numbers Are Durations
12.4.3. Articulations
12.4.4. Simultaneity
12.4.5. Chords
12.4.6. Commands
12.4.7. Source Files
12.4.8. How to Avoid Errors
12.5. Work on a Counterpoint Exercise (Tutorial)
12.5.1. Files for the Tutorial
12.5.2. Start the Score
12.5.3. Adjust Frescobaldi's Output
12.5.4. Input Notes
12.5.5. Format the Score
12.6. Work on an Orchestral Score (Tutorial)
12.6.1. Files for the Tutorial
12.6.2. Start the Score
12.6.3. Adjust Frescobaldi's Output
12.6.4. Input Notes
12.7. Work on a Piano Score (Tutorial)
12.7.1. Files for the Tutorial
12.7.2. Start the Score
12.7.3. Adjust Frescobaldi's Output
12.7.4. Input Notes
12.7.5. Troubleshoot Errors
12.7.6. Format the Score (Piano Dynamics)
LilyPond is a music engraving program, devoted to producing the highest-quality sheet music possible. It brings the aesthetics of traditionally engraved music to computer printouts.[LilyPond—Music notation for everyone http://www.lilypond.org]
Other proprietary and free engraving (or “notation”) programs, like MuseScore and Denemo, focus on the visual aspects of musical scores, LilyPond focusses on the semantic aspects. Because LilyPond is a text-based music engraving program, the separation between meaning and appearance is similar to HTML and CSS. Web developers use HTML to tell web browsers what an object means (a <title> tag tells a browser that some text is a title, for example), and CSS to tell web browsers how objects with different meaning should look (that all titles are blue, for example). The LilyPond language does not look like HTML and CSS, but you may have a similar experience. LilyPond users use letters and numbers to tell LilyPond what a note means (a “g4” is the pitch G with a quarter-note duration, for example), and can change the visual appearance if they wish (by using a square notehead, for example).
Advanced LilyPond users can, for example, incorporate scores into LaTeX and HTML documents; create new musical symbols and notation styles using the Scheme programming language; and tweak output quickly and flexibly with SVG-format output.

12.1. How LilyPond Works

When you use LilyPond, think of musical objects in two ways: what it is or means, and how it looks. You should focus on which objects to use and what they mean, then adjust how they look as you need. The LilyPond developers spend a lot of effort to ensure most musical scores are visually appealling with little adjustment.
After you prepare a specially-formatted text file for LilyPond, the program uses many different components to decide how the score will look. For every type of musical object, LilyPond has a specific rendering component. When a component creates a musical object in a score, the component considers several alternative appearances, then chooses only one.
Once LilyPond decides how a score will look, the program uses a “back end” component to output the score into a PDF, SVG, or PNG file so you can use the score.
For more information on how LilyPond works, refer to Essay at http://lilypond.org/essay.html.