[Top][All Lists]

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

Re: tempo spanners

From: Martín Rincón Botero
Subject: Re: tempo spanners
Date: Wed, 9 Sep 2020 16:00:28 +0200

here a MWE

\relative c'' {
  \override TextSpanner #'(bound-details left text) = x
  \override TextSpanner #'(bound-details right text) = x
  \override TextSpanner #'(bound-details left-broken text) = ##f
  \override TextSpanner #'(bound-details right-broken text) = ##f
  %\override = ##t
  c1 \startTextSpan \break
  c \stopTextSpan

If \override is set to true, the text after the break disappears. How can I prevent this text from disappearing while maintaining the dashes only till the end of the bar?

Am Mi., 9. Sept. 2020 um 11:46 Uhr schrieb Martín Rincón Botero <>:
Actually, I just noticed that if the new tempo is supposed to appear in a new system after the accel., the new tempo is not shown with this code. Any other ideas on how to properly write an aligned accel. with a new tempo?

Am Mi., 9. Sept. 2020 um 10:38 Uhr schrieb Martín Rincón Botero <>:
I know we don't have this, and that tempo spanners have been requested before. I just wanted to know how you deal with it for the time being, especially in cases where simply using a text spanner and an additional tempo marking in an independent tempo variable doesn't work as expected, for example because a melody raises the new tempo, and a text spanner can't align with the new tempo marking. After a lot of fiddling, I got to this solution:

\override TextSpanner #'to-barline = ##t
\override TextSpanner.bound-details.left-broken.text = ##f
\override TextSpanner.bound-details.right-broken.text = ##f
\override TextSpanner #'(bound-details left text) = "accel."
\override TextSpanner #'(bound-details right text) = \markup { \transparent "t" \smaller \general-align #Y #DOWN \note #"4" #1 \upright "= 66"}
    s2. s4\startTextSpan
    \once \hide Score.MetronomeMark
    \tempo 4 = 66

This gives as a result a perfectly aligned accel. with a new tempo marking. It's all quite manual, of course (note the transparent "t"!), but it gives the desired result. Do y'all use a better/more efficient approach?

Best regards,




reply via email to

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