lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get multiple text spanners at the same height?


From: Nick Payne
Subject: Re: How to get multiple text spanners at the same height?
Date: Mon, 13 May 2013 08:14:59 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

On 12/05/13 23:45, Peter Toye wrote:
I need to have a sequence of text spanners (like Rall --- en --- tan --- do)

The problem is that because of the varying height of objects on the stave, the 
following code places the different bits of text at different vertical 
positions.

Someone asked much the same question about cres - - cen - - do last month. My suggestion was along the lines of the following:

\version "2.17.15"

<<
  \new Staff \relative c'' {
    c, d e f g a b c b a g f
  }
  \new Dynamics {
    s1-\tweak bound-details.left.text "Rallen "
    -\tweak bound-details.right.padding #1 \startTextSpan
    s4 s2.\stopTextSpan-\tweak bound-details.left.text "tan "
    -\tweak bound-details.right.text " do"
    -\tweak bound-details.right.padding #2
    \startTextSpan s2. s4\stopTextSpan
  }
>>

Attachment: spanner.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]