]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/beam-collision-basic.ly
Beam collision scoring
[lilypond.git] / input / regression / beam-collision-basic.ly
1 \version "2.13.47"
2 \header {
3   texidoc = "Manual beams do not collide with notes."
4 }
5
6 \layout {
7 %  debug-beam-scoring = ##t
8   indent = #0.0
9 }
10
11 \relative \new Staff {
12
13   <<
14     \new Voice {
15     \voiceOne
16     \repeat unfold 8 { c8[ c] }
17   }
18     \new Voice \relative c'' {
19       \voiceThree
20       \autoBeamOff
21       f r e r
22       d r c r
23       b r a r
24       g r f r
25     } 
26   >>
27   \break
28
29   %% The same with double collisions, to check for scaling problems.
30   <<
31     \new Voice {
32     \voiceOne
33     \repeat unfold 8 { c8[ c] }
34   }
35     \new Voice \relative c'' {
36       \voiceThree
37       \autoBeamOff
38       f f e e
39       d d c c
40       b b a a
41       g g f f
42     } 
43   >>
44   \break
45   
46   <<
47      \new Voice {
48        \repeat unfold 8 \relative {
49          \voiceOne
50          c8[
51          \voiceTwo
52          c'']
53        }
54      }
55      \new Voice \relative {
56        \voiceFour
57        s8 f 
58        s8 g
59        s8 a
60        s8 b
61        s8 c
62        s8 d
63        s8 e
64      }
65    >>
66
67   \break
68    <<
69      \new Voice {
70        \repeat unfold 8 \relative {
71          \voiceOne
72
73          %% We must use a wider interval, otherwise the beam will be
74          %% positioned to descend.
75          a8[
76          \voiceTwo
77          c'']
78        }
79      }
80      \new Voice \relative {
81        \voiceFour
82        \autoBeamOff
83        \stemUp f' \stemDown f,
84        \stemUp e' \stemDown g,
85        \stemUp d' \stemDown a
86        \stemUp c \stemDown b
87      }
88    >>
89 }
90