![]() |
GNU LilyPond-- -- |
||||||||||
|
Text markupLilyPond has an internal mechanism to typeset texts. You can access it
with the keyword c1^\markup { hello } c1_\markup { hi there } c1^\markup { hi \bold there, is \italic anyone home? } The line of the example demonstrates font switching commands. Notice that the command only apply to the first following word; enclose a set of texts with braces to apply a command to more words. \markup { \bold { hi there } }For clarity, you can also do this for single arguments, e.g. \markup { is \italic { anyone } home } The following size commands set abolute sizes
You can also make letter larger or smaller relative to their neighbors,
with the commands The following font change commands are defined:
Raising and lowering texts can be done with c1^\markup { E "=" mc \super "2" } If you want to give an explicit amount for lowering or raising, use
c1^\markup { C \small \raise #1.0 { "9/7+" }} The argument to \raise is the vertical displacement amount,
measured in (global) staff spaces.
Other commands taking single arguments include
In markup mode you can compose expressions, similar to mathematical
expressions, XML documents and music expressions. The braces group
notes into horizontal lines. Other types of lists also exist: you can
stack expressions grouped with c1^\markup { \column << a bbbb c >> } c1^\markup { \center << a bbbb c >> } c1^\markup { \line << a b c >> } The markup mechanism is very flexible and extensible. Refer to
One practical application of complicated markup is to fake a metronome marking: eighthStem = \markup \combine \musicglyph #"flags-stem" \translate #'(0.0 . 3.5) \musicglyph #"flags-u3" eighthNote = \markup \override #'(word-space . 0.0) { \musicglyph #"noteheads-2" \translate #'(-0.05 . 0.1) \eighthStem } \score { \notes\relative c'' { a1^\markup { \magnify #0.9 \eighthNote " = 64" } } } BUGS LilyPond does not account for kerning in its text formatting, so it spaces texts slightly too wide. Syntax errors for markup mode are confusing. |
||||||||||
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