lilypond-user
[Top][All Lists]
Advanced

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

Re: Text-spanner text repeated at start of line


From: Thomas Morley
Subject: Re: Text-spanner text repeated at start of line
Date: Mon, 26 Oct 2015 22:54:44 +0100

2015-10-26 21:31 GMT+01:00 Pierre Perol-Schneider
<address@hidden>:
> Hi David,
>
> See :
> http://lilypond.1069038.n5.nabble.com/Text-centralized-above-a-TextSpan-td180601.html
>
> Cheers,
> Pierre
>
>
> 2015-10-26 21:19 GMT+01:00 David Sumbler <address@hidden>:
>>
>> I want to use a marking such as "accel.-----al----Vivace".
>>
>> However, the following example does not do what I want, because the text
>> is repeated at the start of each new line of music.  I just want the
>> dotted line to continue without repetition of the text.
>>
>> \version "2.19.24"
>>
>> \relative {
>>   \override TextSpanner.bound-details.left.text = "accelerando"
>>   c''4\startTextSpan c c c | c c c c | c c c c \break |
>>   c4 c c c\stopTextSpan |
>>   \override TextSpanner.bound-details.left.text = "al"
>>   c\startTextSpan c c c\stopTextSpan |
>>   \tempo "Vivace" c c c c|
>> }
>>
>> I tried using break-visibility, but as I expected this property does not
>> have any with these objects.
>>
>> How can this be achieved?
>>
>> Also, it would be nice if the dotted line could be made to continue
>> right up to the next piece of text, rather than leaving a gap.
>>
>> David



Hi David,

for your use-case the thread Pierre linked is likely best you can do.

Though, for the record, you can exclude to repeat TextSpanner's text
after line-break. Compare:

\relative {
  \override TextSpanner.bound-details.left.text = "accelerando"
  c''1\startTextSpan \break c c\stopTextSpan
}

\relative {
  \override TextSpanner.bound-details.left.text = "accelerando"
  \override TextSpanner.bound-details.left-broken.text = ##f
  c''1\startTextSpan \break c c\stopTextSpan
}


HTH,
  Harm



reply via email to

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