3.1.3 File structure

A .ly file may contain any number of toplevel expressions, where a toplevel expression is one of the following:

The following example shows three things that may be entered at toplevel

\layout {
  % Don't justify the output
  ragged-right = ##t
}

\header {
   title = "Do-re-mi"
}

{ c'4 d' e2 }

At any point in a file, any of the following lexical instructions can be entered:

See also

Learning Manual: How LilyPond input files work.


Other languages: espaƱol, deutsch.

Notation Reference