]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/collisions.ly
e40250ea8f4a3926171ab422c135fa8858550cda
[lilypond.git] / input / regression / collisions.ly
1 \version "2.6.0"
2 \header{
3 texidoc="
4 In addition to normal collision rules, there is support for polyphony, 
5 where the collosion are avoided by shifting middle voices horizontally.
6 "
7 }
8
9
10 twovoice =
11  \relative c' \context Staff  << 
12          {  g4 f f e e d d c } 
13 \\ {  c4 c  d d e e f f }
14 >>
15
16 twovoicechords = \context Staff  <<
17  \relative c' {
18  e4 d c b a g f
19         }\\
20  \relative c' {
21          <a c>4 <a c>4 <a c>4 <a c>4 <a c>
22                 <a c> <a c>  
23         }
24 >>
25
26
27 threevoice = \context Staff  <<
28          { g4 f e f g a g2 } \\
29          {  c4 d e d c d es } \\
30          { e4 e e e e e e e  }
31 >>
32
33 hairyChord = \context Staff  \relative c''
34     << e \\
35       fis, \\
36       cis' \\
37       \\
38       ais
39       >>
40
41
42 \score{
43          { \transpose c c' {
44            \twovoice
45            \twovoicechords
46            \threevoice   }
47          \hairyChord
48         }
49         
50 %       \midi { \tempo 4:80 }
51 }
52