]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/property-unset.ly
Imported Upstream version 2.18.0
[lilypond.git] / input / regression / property-unset.ly
diff --git a/input/regression/property-unset.ly b/input/regression/property-unset.ly
new file mode 100644 (file)
index 0000000..8268aa2
--- /dev/null
@@ -0,0 +1,34 @@
+\version "2.16.0"
+
+\header{
+
+  texidoc= "@code{\\unset} should be able to unset the
+@samp{DrumStaff}-specific @samp{clefGlyph} equally well as layout
+instruction, in a context definition, or as context modification.  All
+systems here should revert to the @samp{Score}-level violin clef."
+
+}
+
+\layout { ragged-right = ##t }
+\score {
+  \new DrumStaff {
+    \unset DrumStaff.clefGlyph
+    \mark "layout instruction"
+    c c c c
+  }
+}
+
+\score {
+  \new DrumStaff {
+    \mark "context def"
+    c c c c
+  }
+  \layout { \context { \DrumStaff \unset clefGlyph } }
+}
+
+\score {
+  \new DrumStaff \with { \unset clefGlyph } {
+    \mark "context mod"
+    c c c c
+  }
+}