]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/collisions.ly
Release: bump Welcome versions.
[lilypond.git] / input / regression / collisions.ly
1 \version "2.19.21"
2 \header{
3   texidoc="
4 In addition to normal collision rules, there is support for polyphony, 
5 where the collisions are avoided by shifting middle voices horizontally.
6 "
7 }
8
9
10 twovoice =
11 \relative \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 {
18     e'4 d c b a g f
19   }\\
20   \relative {
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
34 <<
35   e'' \\
36   fis, \\
37   cis' \\
38   \\
39   ais
40 >>
41
42 minims = <<
43   { e''2 e'' e' d' } \\
44   c'' \\
45   { c' c' c' c' } \\
46   g' >>
47
48 semibreves = <<
49   { e''1 e'' e' d' } \\
50   c'' \\
51   { c' c' c' c' } \\
52   g' >>
53
54 sequence = <<
55   \new Voice { \voiceOne g''1 e''2 d'' e'' d'' }
56   \new Voice { \voiceThree c''2 b' a'1 b' }
57   \new Voice { \voiceFour g'1 e'2 f'2 a'1 }
58   \new Voice { \voiceTwo c'1 c'2 d' e'2 d' }
59 >>
60
61   {
62     \transpose c c' {
63       \twovoice
64       \twovoicechords
65       \threevoice
66     }
67     \hairyChord
68     \break
69     \minims \bar "||"
70     \semibreves \bar "||"
71     \sequence
72   }
73