]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/measure-counter-staff-padding.ly
New upstream version 2.19.65
[lilypond.git] / input / regression / measure-counter-staff-padding.ly
diff --git a/input/regression/measure-counter-staff-padding.ly b/input/regression/measure-counter-staff-padding.ly
new file mode 100644 (file)
index 0000000..cf07cca
--- /dev/null
@@ -0,0 +1,30 @@
+\version "2.19.59"
+
+\header {
+  texidoc = "The @code{staff-padding} property may be used to adjust
+the distance of @code{MeasureCounter} objects from the staff.  The
+following example uses @code{staff-padding} to align the count
+vertically.
+"
+}
+
+\layout {
+  \context {
+    \Staff
+    \consists #Measure_counter_engraver
+  }
+}
+
+music = {
+  \startMeasureCount
+  c''2 c''
+  c'''2 c'''
+  \bar "||"
+  \stopMeasureCount
+}
+
+{
+  \music
+  \override Staff.MeasureCounter.staff-padding = 4
+  \music
+}