1.1.1 Entering input

“Compiling” is the term used for processing an input file in LilyPond format to produce output file(s). Output files are generally PDF (for printing or viewing), MIDI (for playing), and PNG (for online use). LilyPond input files are simple text files.

This example shows a simple input file:

\version "2.17.97"
  c' e' g' e'

The graphical output is:

[image of music]

Note: Notes and lyrics in LilyPond input must always be surrounded by { curly braces }. The braces should also be surrounded by a space unless they are at the beginning or end of a line to avoid ambiguities. They may be omitted in some examples in this manual, but don’t forget them in your own music! For more information about the display of examples in the manual, see How to read the manuals.

In addition, LilyPond input is case sensitive. ‘{ c d e }’ is valid input; ‘{ C D E }’ will produce an error message.

Producing output

The method of producing output depends on your operating system and the program(s) you use.

There are several other text editors available with specific support for LilyPond. For more information, see Easier editing.

Note: The first time you ever run LilyPond, it may take a minute or two because all of the system fonts have to be analyzed first. After this, LilyPond will be much faster!

Other languages: česky, deutsch, español, français, magyar, italiano, 日本語, nederlands.
About automatic language selection.

LilyPond — Learning Manual v2.17.97 (development-branch).