Re: \unset with modified default properties

2018-07-02 Thread Saul Tobin
Sure, define-music-function works fine. That part I just copied from the earlier snippet. That's a side issue, though. On Mon, Jul 2, 2018 at 2:36 PM David Kastrup wrote: > Saul Tobin writes: > > > Indeed, or StaffGroup level if I'm following correctly. > > And there is a StaffGroup. > > > My

Re: \unset with modified default properties

2018-07-02 Thread David Kastrup
Saul Tobin writes: > Indeed, or StaffGroup level if I'm following correctly. And there is a StaffGroup. > My issue is that I want to change the default keepAliveInterfaces for > one staff within a StaffGroup. (Probably should have just posted this > as my initial example, I suppose.) > >

Re: \unset with modified default properties

2018-07-02 Thread Saul Tobin
Indeed, or StaffGroup level if I'm following correctly. My issue is that I want to change the default keepAliveInterfaces for one staff within a StaffGroup. (Probably should have just posted this as my initial example, I suppose.) \version "2.19.82" targetstaff = #(define-scheme-function (ctx)

Re: \unset with modified default properties

2018-07-02 Thread David Kastrup
Saul Tobin writes: > Interesting. So if the default property is set at the Staff level, for > instance, then changed and \unset at the Voice level, it goes back to the > default for the higher-level context. But if in the example \new Staff > \with... is changed to \new Voice \with... the

Re: \unset with modified default properties

2018-07-01 Thread Saul Tobin
Interesting. So if the default property is set at the Staff level, for instance, then changed and \unset at the Voice level, it goes back to the default for the higher-level context. But if in the example \new Staff \with... is changed to \new Voice \with... the original problem arises where

Re: \unset with modified default properties

2018-07-01 Thread David Kastrup
Saul Tobin writes: > 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: > > music = \relative c' { > \tuplet 3/2 { > c8 c c d d d e e e f f f | > } > \set Staff.tupletSpannerDuration =

Re: \unset with modified default properties

2018-06-30 Thread Saul Tobin
Unfortunately, for my use case, \once\set and \once\unset aren't enough. On Sat, Jun 30, 2018 at 8:31 PM Aaron Hill wrote: > 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

Re: \unset with modified default properties

2018-06-30 Thread Aaron Hill
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 the custom default value without

\unset with modified default properties

2018-06-30 Thread Saul Tobin
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: music = \relative c' { \tuplet 3/2 { c8 c c d d d e e e f f f | } \set Staff.tupletSpannerDuration = #(ly:make-moment 1/2) \tuplet 3/2 { c8 c