[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/development
lilypond.org/stable
savannah.gnu.org
ftp.lilypond.org
Mutopia
Other music online

Node:Text spanners, Previous:Tempo, Up:Expressive marks



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:

     \spanrequest \start "text"
     \spanrequest \stop "text"
     
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\spanrequest \start "text" b c a \spanrequest \stop "text" }
     
[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.6.6 (stable-branch) by

<(address unknown)>, Thu Dec 26 14:15:44 2002 MSK.