Next: , Previous: Metronome marks, Up: Expressive marks



3.7.5 Text spanners

Some performance indications, e.g. rallentando or accelerando, are written as texts, and extended over many measures with dotted lines. You can create such texts using text spanners: attach \startTextSpan and \stopTextSpan to the start and ending note of the spanner.

The string to be printed, as well as the style, is set through object properties

     \relative c' {
       c1
       \override TextSpanner #'direction = #-1
       \override TextSpanner #'edge-text = #'("rall " . "")
       c2\startTextSpan b c\stopTextSpan a
     }

[image of music]

See also

Internals TextSpanEvent, TextSpanner.

Examples: input/regression/text-spanner.ly.

Read comments on this page, or add one.

This page is for LilyPond-2.2.6 (stable-branch).

Report errors to <bug-lilypond@gnu.org>.