[icon]

GNU LilyPond

Welcome to the home of the GNU Music Typesetter

What is LilyPond
General information
Simple examples
Complex examples
Download
GNU/Linux binaries
Windows
Source code
Documentation
Tutorial
Manual
Glossary
other ...

Support
Mailing lists
Search
WikiWiki
FAQs

External sites
lilypond.org/development
lilypond.org/stable
ftp.lilypond.org
Mutopia
Other music online

Node:Top level, Next:, Up:Syntactic details



Top level

This section describes what you may enter at top level.

Score

The output is generated combining a music expression with an output definition. A score block has the following syntax:

  \score { musicexpr outputdefs }

outputdefs are zero or more output definitions. If none is supplied, the default \paper block will be added.

Default output

Default values for the \paper and \midi block are set by entering such a block at the top level.

Header

A header describes bibliographic information of the file's contents. It can also appear in a \score block. Tools like ly2dvi can use this information for generating titles. Key values that are used by ly2dvi are: title, subtitle, composer, opus, poet, instrument, meter, arranger, piece and tagline.

The syntax is

  \header { key1 = val1
             key2 = val2 ... }

It is customary to put the \header at the top of the file.

Default output

A \midi or \paper block at top level sets the default paper block for all scores that lack an explicit paper block.

Go back to index of LilyPond.

Please send GNU LilyPond questions and comments to lilypond-user@gnu.org.

Please send comments on these web pages to lilypond@packages.debian.org

Copyright (c) 1997--2001 Han-Wen Nienhuys and Jan Nieuwenhuizen.

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


This page was built from LilyPond-1.4.12 (stable-branch) by

Anthony Fok <lilypond@packages.debian.org>, Tue Mar 12 01:35:39 2002 HKT.