]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add a regtest for breve extent (fix 1814)
authorJanek Warchoł <janek.lilypond@gmail.com>
Tue, 14 Feb 2012 17:00:22 +0000 (18:00 +0100)
committerJanek Warchoł <janek.lilypond@gmail.com>
Tue, 14 Feb 2012 17:05:39 +0000 (18:05 +0100)
Checks if breves (esp. double-lined) don't collide with themselves
and accidentals.

input/regression/breve-extent.ly [new file with mode: 0644]

diff --git a/input/regression/breve-extent.ly b/input/regression/breve-extent.ly
new file mode 100644 (file)
index 0000000..46bb510
--- /dev/null
@@ -0,0 +1,31 @@
+\version "2.15.13"
+
+\header  {
+  texidoc = "LilyPond knows that breves and longas are wider than whole notes
+  (because of vertical lines on their sides).  Breves and longas don't collide
+  with accidentals, barlines, neighbor notes etc.  The distance between
+  accidental and note is the same for whole notes, breves and longas."
+}
+
+{ 
+  gis'1
+  gis'\breve*1/2
+  gis'\longa*1/4
+  \override NoteHead #'style = #'altdefault 
+  gis'\breve*1/2
+}
+
+\score {
+    \new Staff {
+      \repeat unfold 8 { a'\breve*1/16 }
+      \override NoteHead #'style = #'altdefault 
+      \repeat unfold 8 { a'\breve*1/16 }
+    }
+    \layout {
+        \context {
+            \Score
+            \override SpacingSpanner
+            #'common-shortest-duration = #(ly:make-moment 1 1 )
+        }
+    }
+}