Hi Andrew,
How about:
%%
\version "2.19.82"
spToNatSpanOld = {
\override TextSpanner.font-size = #-4
\override TextSpanner.bound-padding = #1.0
\override TextSpanner.style = #'line
\override TextSpanner.bound-details =
#`((right
(Y . 0)
(arrow . #t)
(text . ,#{ \markup "NAT"#})
(padding . 0.6)
(stencil-align-dir-y . CENTER))
(left
(Y . 0)
(text . ,#{ \markup "SP" #})
(stencil-align-dir-y . CENTER))
(right-broken (text . #f))
(left-broken (text . #f)))
}
treble = {
\time 4/4
\spToNatSpanOld
c''4\startTextSpan c'' c'' c''\stopTextSpan |
c'' c'' c''\startTextSpan c'' |
c'' c'' c'' c'' |
\break
c'' c''\stopTextSpan c'' c''\startTextSpan |
\break
c''\stopTextSpan c'' c'' c'' |
\break
% how to revert to basic TextSpanner here?
\revert TextSpanner.bound-details
c''\startTextSpan c''\stopTextSpan c'' c'' |
}
\score {
\new Staff \treble
\layout {}
}
%%
Cheers,
Pierre
Le jeu. 7 févr. 2019 à 08:58, Andrew Bernard <[email protected]> a
écrit :
> I have a text spanner set up nicely to do sul ponticello -> nat. All works
> beautifully. But how does one revert the overrides use to achieve this to
> go back to a plain text spanner without undoing each and every line? Can't
> you just revert bound-details?
>
> Searching the list archives did not reveal anything for me. Perhaps a poor
> choice of search keywords.
>
> I hope this is not one of those cases again where I should not be using
> braces in the definition, but it won't compile if I don't.
>
>
> Andrew
>
>
> %====
>
> \version "2.19.82"
>
> spToNatSpan = {
> \override TextSpanner.font-size = #-4
> \override TextSpanner.bound-padding = #1.0
> \override TextSpanner.style = #'line
> \override TextSpanner.bound-details.right.arrow = ##t
> \override TextSpanner.bound-details.left.text = #"SP"
> \override TextSpanner.bound-details.right.text = #"NAT"
> \override TextSpanner.bound-details.right.padding = #0.6
> \override TextSpanner.bound-details.right.stencil-align-dir-y = #CENTER
> \override TextSpanner.bound-details.left.stencil-align-dir-y = #CENTER
> \override TextSpanner.bound-details.left-broken.text = ##f
> \override TextSpanner.bound-details.right-broken.text = ##f
> }
>
> treble = {
> \time 4/4
>
> \spToNatSpan
> c''4\startTextSpan c'' c'' c''\stopTextSpan |
> c'' c'' c''\startTextSpan c'' |
> c'' c'' c'' c'' |
> \break
> c'' c''\stopTextSpan c'' c''\startTextSpan |
> \break
> c''\stopTextSpan c'' c'' c'' |
> \break
> % how to revert to basic TextSpanner here?
> \revert TextSpanner.bound-details
> c''\startTextSpan c''\stopTextSpan c'' c'' |
> }
>
> \score {
> \new Staff \treble
> \layout {}
> }
>
> %====
>
>
>
>
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user