Next: Text marks, Previous: Text scripts, Up: Writing text
Some performance indications, e.g., rallentando or
accelerando, are written as text and are extended over many
measures with dotted lines. Such texts are created using text
spanners; attach \startTextSpan
and \stopTextSpan
to
the first and last notes of the spanner.
c1 \override TextSpanner #'bound-details #'left #'text = "faster" c2\startTextSpan b c\stopTextSpan a
The string to be printed, as well as the style, is set through
object properties. It can accept \markup
blocks as well:
c1 \textSpannerDown \override TextSpanner #'bound-details #'left #'text = \markup { \upright "rall" } c2\startTextSpan b c\stopTextSpan a \break \textSpannerUp \override TextSpanner #'bound-details #'left #'text = \markup { \italic "rit" } c2\startTextSpan b c\stopTextSpan a
\textSpannerUp
,
\textSpannerDown
,
\textSpannerNeutral
.
To print a solid line, use
\override TextSpanner #'style = #'line
Snippets: Text
Internals Reference: TextSpanner.
Next: Text marks, Previous: Text scripts, Up: Writing text
Diese Seite ist für LilyPond-2.11.40 (Entwicklungszweig).
Fehler bitte an http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs melden.
Ihre Vorschläge für die Dokumentation sind willkommen.