[icon]

GNU LilyPond

-- --

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

Support
Mailing lists
Search
WikiWiki

External sites
lilypond.org/stable
lilypond.org/development
savannah.gnu.org
ftp.lilypond.org
Mutopia
Other music online

Text spanners

Some textual indications, e.g. rallentando or accelerando, often extend over many measures. This is indicated by following the text with a dotted line. You can create such texts using text spanners. The syntax is as follows:

      \startTextSpan
      \stopTextSpan
     
LilyPond will respond by creating a TextSpanner object (typically in Voice context). The string to be printed, as well as the style is set through object properties.

An application--or rather, a hack--is to fake octavation indications.

      \relative c' {  a''' b c a
       \property Voice.TextSpanner \set #'type = #'dotted-line
       \property Voice.TextSpanner \set #'edge-height = #'(0 . 1.5)
       \property Voice.TextSpanner \set #'edge-text = #'("8va " . "")
       \property Staff.centralCPosition = #-13
       a\startTextSpan b c a \stopTextSpan }
     
[picture of music]
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

Buchan Milne <(address unknown)>, Thu Mar 6 21:11:35 2003 CET.