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