[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:Lexical modes, Next:, Previous:Assignments, Up:Syntactic details



Lexical modes

To simplify entering notes, lyrics, and chords, LilyPond has three special input modes in addition to the default mode: note, lyrics and chords mode. These input modes change the way that normal, unquoted words are interpreted: for example, the word cis may be interpreted as a C-sharp, as a lyric syllable `cis' or as a C-sharp major triad respectively.

A mode switch is entered as a compound music expression

\notes musicexpr
\chords musicexpr
\lyrics musicexpr.

In each of these cases, these expressions do not add anything to the meaning of their arguments. They just instruct the parser in what mode to parse their arguments. The modes are treated in more detail in Lyrics and Chords.

Different input modes may be nested.

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.