[icon]

GNU LilyPond

-- --

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

Support
Mailing lists

External sites
lilypond.org
savannah.gnu.org
ftp.lilypond.org
Mutopia

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]

Other compound music expressions include

     \repeat expr
     \transpose pitch expr
     \apply func expr
     \context type = id expr
     \times fraction expr
     

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

Han-Wen Nienhuys <hanwen@xs4all.nl>, Thu Aug 7 04:43:47 2003 CEST.