]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/beam-collision-basic.ly
Imported Upstream version 2.14.2
[lilypond.git] / input / regression / beam-collision-basic.ly
diff --git a/input/regression/beam-collision-basic.ly b/input/regression/beam-collision-basic.ly
new file mode 100644 (file)
index 0000000..b235c35
--- /dev/null
@@ -0,0 +1,90 @@
+\version "2.14.0"
+\header {
+  texidoc = "Manual beams do not collide with notes."
+}
+
+\layout {
+%  debug-beam-scoring = ##t
+  indent = #0.0
+}
+
+\relative \new Staff {
+
+  <<
+    \new Voice {
+    \voiceOne
+    \repeat unfold 8 { c8[ c] }
+  }
+    \new Voice \relative c'' {
+      \voiceThree
+      \autoBeamOff
+      f r e r
+      d r c r
+      b r a r
+      g r f r
+    } 
+  >>
+  \break
+
+  %% The same with double collisions, to check for scaling problems.
+  <<
+    \new Voice {
+    \voiceOne
+    \repeat unfold 8 { c8[ c] }
+  }
+    \new Voice \relative c'' {
+      \voiceThree
+      \autoBeamOff
+      f f e e
+      d d c c
+      b b a a
+      g g f f
+    } 
+  >>
+  \break
+  
+  <<
+     \new Voice {
+       \repeat unfold 8 \relative {
+        \voiceOne
+        c8[
+        \voiceTwo
+        c'']
+       }
+     }
+     \new Voice \relative {
+       \voiceFour
+       s8 f 
+       s8 g
+       s8 a
+       s8 b
+       s8 c
+       s8 d
+       s8 e
+     }
+   >>
+
+  \break
+   <<
+     \new Voice {
+       \repeat unfold 8 \relative {
+        \voiceOne
+
+        %% We must use a wider interval, otherwise the beam will be
+        %% positioned to descend.
+        a8[
+        \voiceTwo
+        c'']
+       }
+     }
+     \new Voice \relative {
+       \voiceFour
+       \autoBeamOff
+       \stemUp f' \stemDown f,
+       \stemUp e' \stemDown g,
+       \stemUp d' \stemDown a
+       \stemUp c \stemDown b
+     }
+   >>
+}
+