Product SiteDocumentation Site

Chapter 12. LilyPond

12.1. How LilyPond Works
12.2. The LilyPond Approach
12.3. Requirements and Installation
12.3.1. Learn about Frescobaldi
12.3.2. Requirements and Installation (for Frescobaldi)
12.4. Configure Frescobaldi
12.5. LilyPond Basics
12.5.1. Letters Are Pitches
12.5.2. Numbers Are Durations
12.5.3. Articulations
12.5.4. Simultaneity
12.5.5. Chords
12.5.6. Commands
12.5.7. Source Files
12.5.8. How to Avoid Errors
12.6. Work on a Counterpoint Exercise (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.6.5. Format the Score
12.7. Work on an Orchestral 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.8. Work on a Piano Score (Tutorial)
12.8.1. Files for the Tutorial
12.8.2. Start the Score
12.8.3. Adjust Frescobaldi's Output
12.8.4. Input Notes
12.8.5. Troubleshoot Errors
12.8.6. Format the Score (Piano Dynamics)
LilyPond is a musical notation program that creates a visually appealing musical score. LilyPond text files contain the semantic meaning of a musical score, rather than details about a musical score's visual appearance. Popular proprietary musical notation applications represent the visual apperance of a score. People who use visual notation applications constantly worry about how their score looks. LilyPond users only worry about what the score means, because LilyPond automatically creates an expert result.
This is where LilyPond comes in - users don't need to worry about how their score will work, because they know that the expertly-crafted methods of LilyPond will automatically configure the objects on the score so that they look good, and are easy to read. LilyPond's users focus on what needs to be displayed, rather than on how it is going to be displayed.
As with any particular approach, the LilyPond approach is not for everybody. However, once you have become accustomed to working with the software, and once you have learned methods to help deal with problems and organize your scores' source-files, you will probably realize that LilyPond is both much faster, and much more flexible, than traditional, commercially-available music engraving programs.
With LilyPond, you can:
  • Put a score into LaTeX or HTML documents.
  • Put a score into an LibreOffice document, with the ooolilypond program.
  • Use any major operating system.
  • Manage parts and full scores for large compositions.
  • Create new musical symbols with the Scheme programming language.
It is the goal of this guide to help users more quickly overcome the initial learning handicap incurred because of the text-based approach. Making use of tools such as the Frescobaldi text-editor will help to increase productivity, to make trouble-shooting easier, and to ease the memory burden associated with the text-based approach.

12.1. How LilyPond Works

Think of LilyPond as an automobile mechanic. When your car breaks down, the mechanic knows which tools to use. You can buy tools to fix your car by yourself, but the mechanic is specialized. The mechanic knows what tools to use, how to prepare the tools, and how to fix your car faster than you can fix it. LilyPond uses many programs that you can use by yourself, but LilyPond is specialized. LilyPond knows what programs to use, what settings to use, and most importantly, LilyPond takes much less time than if you use the programs directly.
We give instructions to LilyPond in specially-formed text files. LilyPond input files describe the music to notate. LilyPond decides how the music will look, then creates an output file. The input file does not contain instructions about how the music looks. Sometimes you must make an adjustment to how the output file looks, so LilyPond lets you change the settings of its internal tools.