]> git.donarmstrong.com Git - lilypond.git/blob - input/collisions.ly
release: 0.1.14
[lilypond.git] / input / collisions.ly
1 %{MudelaHeader
2
3  filename: collisions.ly
4  title:
5  description:  random counterpoint to test collisions
6  composer(s): 
7  entered-by: HWN,JCN
8  copyright: public domain
9
10  Tested Features:test the Collision resolution 
11 EndMudelaHeader
12 %}
13 \version "0.1.6";
14
15
16
17 two_voice = \melodic 
18         \multi 2 < 
19           { \stemdown \octave c'; 
20                 c4 d e f g2~  g4 a [c8 d e f] c2| }
21           { \stemup
22                 g4 f e g ~ g2 g2  c4 g4 g2 } 
23
24         >
25
26 two_voice_steminvert = \melodic 
27         \multi 2 <  
28           { 
29                 \octave c'; \stemup
30 % the f and g on 4th beat are exceptionally ugh.
31                 c4 d e f g2 g4 a | }
32           { \stemdown
33                 g4 f e g  g2 g2 } 
34
35         >
36
37 three_voice = \melodic 
38         \multi 2 <
39         { \stemup 
40                 g4 f e f g a g2 }
41         { \stemup \property Voice.hshift = 1 
42                 e2  e2  e2  e2 }
43         { \stemdown
44                 c4 d e d c d es }
45         >
46
47
48 rests = \melodic  
49         \multi 2 <
50         { \stemup
51                 | r8 r r r  r r r r 
52                 [c' b a g] [f e d c]
53         } 
54         { \stemdown
55                 [c8 d e f] [g a b c']
56                 r r r r r r r r 
57         }
58         >
59
60 restsII = \melodic {
61         \octave c'; 
62         \multi 2 < 
63                                 { \stemup  g' f' e' d' c' b a g f e d c }
64                                 { \stemdown r  r  r  r  r  r r r r r r r }
65                         >
66         \multi 2 <
67                                 { \stemup  r r r r r r r r  r  r  r  r }
68                                 { \stemdown c d e f g a b c' d' e' f' g' }
69                         >
70                         r8 r4
71                         \multi 2 <  r8 r8 >
72                         \multi 2 <  r8 r8 r8 >
73                         \multi 2 <  r8 r8 r8 r8 >
74                         \multi 2 <  r r >
75                         \multi 2 <  r r r >
76                         \stemup
77                         [c''8 r8 c''8 c''8]
78                         [c8 r8 c8 c8]
79                         \stemdown
80                         [c8 r8 c8 c8]
81                         [c''8 r8 c''8 c''8]
82 }
83
84 \score{
85         {  \two_voice  \two_voice_steminvert 
86                         \three_voice  \rests \restsII }
87         
88
89         
90 %       \midi { \tempo 4:80 }
91 }