tempo spanners

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

tempo spanners

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
    s1
    \once \hide Score.MetronomeMark
    \tempo 4 = 66
    s1\stopTextSpan

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,
Martín.

--
Reply | Threaded
Open this post in threaded view
|

Re: tempo spanners

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 <[hidden email]>:
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
    s1
    \once \hide Score.MetronomeMark
    \tempo 4 = 66
    s1\stopTextSpan

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,
Martín.

--


--
Reply | Threaded
Open this post in threaded view
|

Re: tempo spanners

Martín Rincón Botero
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 TextSpanner.to-barline = ##t
  c1 \startTextSpan \break
  c \stopTextSpan
}

If \override TextSpanner.to-barline 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 <[hidden email]>:
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 <[hidden email]>:
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
    s1
    \once \hide Score.MetronomeMark
    \tempo 4 = 66
    s1\stopTextSpan

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,
Martín.

--


--


--
Reply | Threaded
Open this post in threaded view
|

Re: tempo spanners

Martín Rincón Botero
FWIW in the meanwhile I managed to improve the appearance of my metronome markings by centering them, and by not hiding but omitting the tempo markings for the MIDI:


\relative c'' {
\override TextSpanner #'(bound-details left text) = "rit."
\override TextSpanner #'(bound-details right text) = \markup { \general-align #Y #DOWN \center-align \smaller \note #"4" #1 \upright "= 56"}
\override TextSpanner #'(bound-details left-broken text) = ##f
\override TextSpanner #'(bound-details right-broken text) = ##f

s1\startTextSpan
s1
\once \omit Score.MetronomeMark
\tempo 4 = 56
s1\stopTextSpan
}

The extra dash that results from not being able to use the to-barline property is, with a centered metronome marking, something I can live with for the moment :-).

Am Mi., 9. Sept. 2020 um 16:00 Uhr schrieb Martín Rincón Botero <[hidden email]>:
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 TextSpanner.to-barline = ##t
  c1 \startTextSpan \break
  c \stopTextSpan
}

If \override TextSpanner.to-barline 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 <[hidden email]>:
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 <[hidden email]>:
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
    s1
    \once \hide Score.MetronomeMark
    \tempo 4 = 66
    s1\stopTextSpan

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,
Martín.

--


--


--


--