|
From: | Aaron Hill |
Subject: | Re: \unset with modified default properties |
Date: | Sat, 30 Jun 2018 20:31:09 -0700 |
User-agent: | Roundcube Webmail/1.3.6 |
On 2018-06-30 17:50, Saul Tobin wrote:
In both 2.18 and 2.19, \unset appears to set a context property to the built-in default, rather than the default set in the \with {} block: [ . . . ] In cases like this, I would find it useful to reset the property to thecustom default value without having to explicitly \set it every time. Is there a way to do this? Also, is this the most useful behavior of \unset?
While not a completely general solution, you may be able to use \once: %%%% music = \relative c' { \tuplet 3/2 { c8 c c d d d e e e f f f | } \once \set Staff.tupletSpannerDuration = #(ly:make-moment 1/2) \tuplet 3/2 { c8 c c d d d e e e f f f | } \tuplet 3/2 { c8 c c d d d e e e f f f | } } %%%% -- Aaron Hill
[Prev in Thread] | Current Thread | [Next in Thread] |