Have a look at:
https://lilypond.org/doc/v2.25/Documentation/snippets/text-_002d-creating-text-spanners
explains how to modify any detail of a TextSpanner.
The TextSpanner line implements the line-interface:
https://lilypond.org/doc/v2.24/Documentation/internals/line_002dinterface
gives you all the variants and parameters.
From what I see in your example score you will have 2 spanners in
parallel. It's important to know that there can be only one TextSpanner
per Voice at the same time. so if you're aiming for serveral spanners,
like ritardando and flt. consider defining separat voices per spanner
type (one voice for tempo-related spanners, one voice for
technique-related spanners).
Next head over to encapsulate different spanners in separate makros.
HTH
- Stephan
Am 01.01.2026 um 15:47 schrieb [email protected]:
Here’s the code:
\once\overrideTextSpanner.bound-details.left.text = \markup{\boldRit.}
289 \time2/8
290
b32-.\p\startTextSpanrdes-.\ppc-.r\once\overrideTextSpanner.bound-detail.left.text
= "flt."e:256\mf\<^\markup{fltz.}\startTextSpan*(*ees:256d:256| %21
291 \time3/4
292 \tuplet6/4{d16:128\f\>ges:128aes,:128f:128c':128*)*
r}a:128\mf\stopTextSpanr\xNotedes\pp\xNotedes\xNoted!8->aes\harmonic\fermata\bar"|."\stopTextSpan|
%22
And it should look something like this:
Gráfico_pegado-1.png
Thank you,
Juan
El 1 ene 2026, a las 9:34, Werner LEMBERG <[email protected]> escribió:
From: "[email protected]" <[email protected]>
Subject: Double text span line
Date: Thu, 1 Jan 2026 09:07:17 -0500
Hello everybody,
I’m currently trying to write a section where I need a rit. line
[..]
LilyPond code example, please, that shows what you've tried, together
with an image that shows how it should look like.
Werner