[icon]

GNU LilyPond

-- --

What is LilyPond
Home
Examples
Templates
Download
GNU/Linux binaries
Windows binaries
Source code
Documentation
Tutorial
Manual
Glossary
Index

Support
Mailing lists
Search
WikiWiki

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

Music expressions

Music in LilyPond is entered as a music expression. Notes, rests, lyric syllables are music expressions, and you can combine music expressions to form new ones, for example by enclosing a list of expressions in \sequential { } or < >. In the following example, a compound expression is formed out of the quarter note c and a quarter note d:

     \sequential { c4 d4 }
     

The two basic compound music expressions are simultaneous and sequential music.

     \sequential { musicexprlist }
     \simultaneous { musicexprlist }
     

For both, there is a shorthand:

     { musicexprlist }
     

for sequential and

     < musicexprlist >
     

for simultaneous music. In principle, the way in which you nest sequential and simultaneous to produce music is not relevant. In the following example, three chords are expressed in two different ways:

     \notes \context Voice {
       <a c'> <b d'> <c' e'>
       < { a b c' } { c' d' e' } >
     }
     
[picture of music]
However, using < and > for chords turns up various syntactical peculiarities. For this reason, a special syntax for chords was introduced in version 1.7: << >>.

Other compound music expressions include

     \repeat expr
     \transpose from to expr
     \apply func expr
     \context type = id expr
     \times fraction expr
     
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 (address unknown)

Copyright (c) 1997--2002 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.7.14 (development-branch) by

Buchan Milne <(address unknown)>, Thu Mar 6 21:11:35 2003 CET.