lilypond-user
[Top][All Lists]
Advanced

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

\unset with modified default properties


From: Saul Tobin
Subject: \unset with modified default properties
Date: Sat, 30 Jun 2018 17:50:09 -0700

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 c d d d e e e f f f |
  }
  \unset Staff.tupletSpannerDuration
  \tuplet 3/2 {
    c8 c c d d d e e e f f f |
  }
}

\new Staff \with {
  tupletSpannerDuration = #(ly:make-moment 1/4)
} \music

In cases like this, I would find it useful to reset the property to the custom 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?

Saul

reply via email to

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