]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/completion-heads-unit.ly
Imported Upstream version 2.16.0
[lilypond.git] / input / regression / completion-heads-unit.ly
diff --git a/input/regression/completion-heads-unit.ly b/input/regression/completion-heads-unit.ly
new file mode 100644 (file)
index 0000000..f88ab32
--- /dev/null
@@ -0,0 +1,26 @@
+\version "2.16.0"
+
+\header {
+texidoc = "
+Note head completion may be broken into sub-bar units by setting the
+@code{completionUnit} property.
+"
+}
+
+\layout {
+  \context {
+    \Voice
+    \remove "Note_heads_engraver"
+    \consists "Completion_heads_engraver"
+  }
+}
+
+\context Staff \relative f {
+  \time 9/8
+  \set completionUnit = #(ly:make-moment 3 8)
+  g'1.. g2
+  \time 6/4
+  \set completionUnit = #(ly:make-moment 1 4)
+  \set tupletSpannerDuration = #(ly:make-moment 1 4)
+  \times 2/3 { e4 c8 f g a4 b8 c4 b8 a4 g8 a e f4 }
+}