]> git.donarmstrong.com Git - lilypond.git/blob - input/test/collisions.ly
release: 1.3.7
[lilypond.git] / input / test / collisions.ly
1 \header{
2 filename =       "collisions.ly";
3 description =    "random counterpoint to test collisions";
4 enteredby =      "HWN,JCN";
5 copyright =      "public domain";
6 Tested =         "test the Collision resolution ";
7 }
8 \version "1.3.5";
9
10 twovoice = \context Staff \notes < 
11         \context Voice=i { \stemdown c4 d e f g2~  g4 a [c8 d e f] c2| }
12         \context Voice=ii { \stemup g4 f e g ~ g2 g2  c4 g4 g2 } 
13 >
14
15 twovoicesteminvert = \context Staff \notes <  
16         % the f and g on 4th beat are exceptionally ugh.
17         \context Voice=i { \stemup c4 d e f g2 g4 a | }
18         \context Voice=ii { \stemdown g4 f e g  g2 g2 } 
19 >
20
21 threevoice = \context Staff \notes <
22         \context Voice=i { \stemup g4 f e f g a g2 }
23         \context Voice=ii { \stemup \property Voice.horizontalNoteShift = 1 e2  e2  e2  e2 }
24         \context Voice=iii { \stemdown c4 d e d c d es }
25 >
26
27 chordstest = \context Staff \notes <
28         \context Voice = i \relative c {
29                 \stemup e4 dis c f g f a b b
30         }
31         \context Voice = ii \relative c {
32                 \stemdown <a4 c> <a4 c> <a4 e'> <a4 c> <e' a> <e a> <e a> <a c> <a d>
33         }
34 >
35
36 hairyChord = \context Staff \notes\relative c' <
37      \context Voice=one {
38         \property Voice.horizontalNoteShift=0
39         \stemup 
40         e4 
41      }
42      
43      \context Voice=two {
44         \stemup
45         \property Voice.horizontalNoteShift=1
46         cis
47      }
48      
49      \context Voice=three {
50         \property Voice.horizontalNoteShift=2
51         \stemup 
52         ais
53      }
54      
55      \context Voice=four {
56         \stemdown
57         \property Voice.horizontalNoteShift=-1
58         fis
59      }
60 >
61
62
63 \score{
64         \notes \transpose c'' {  \twovoice  
65         \twovoicesteminvert 
66         \threevoice \break
67          \chordstest
68          \hairyChord
69         }
70         
71 %       \midi { \tempo 4:80 }
72 }