lilypond-user
[Top][All Lists]
Advanced

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

Re: Reverting TextSpanner properties


From: David Kastrup
Subject: Re: Reverting TextSpanner properties
Date: Thu, 07 Feb 2019 10:24:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Andrew Bernard <address@hidden> writes:

> 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?

\undo \spToNatSpan ?

Personally, I'd rather tweak \startTextSpan rather than set properties
permanently but that's likely a matter of taste.

> 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
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

-- 
David Kastrup



reply via email to

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