]> git.donarmstrong.com Git - lilypond.git/blob - input/test/collisions.ly
release: 1.3.107
[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.96";
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.NoteColumn \push #'horizontal-shift = #1
24                 e2  e2  e2  e2 }
25         \context Voice=iii { \stemDown c4 d e d c d es }
26 >
27
28 chordstest = \context Staff \notes <
29         \context Voice = i \relative c {
30                 \stemUp e4 dis c f g f a b b
31         }
32         \context Voice = ii \relative c {
33                 \stemDown <a4 c> <a4 c> <a4 e'> <a4 c> <e' a> <e a> <e a> <a c> <a d>
34         }
35 >
36
37 hairyChord = \context Staff \notes\relative c' <
38      \context Voice=one {
39  \property Voice.NoteColumn \push #'horizontal-shift = #0
40         \stemUp 
41         e4 
42      }
43      
44      \context Voice=two {
45         \stemUp
46  \property Voice.NoteColumn \push #'horizontal-shift = #1
47         cis
48      }
49      
50      \context Voice=three {
51  \property Voice.NoteColumn \push #'horizontal-shift = #2
52
53         \stemUp 
54         ais
55      }
56      
57      \context Voice=four {
58         \stemDown
59  \property Voice.NoteColumn \push #'horizontal-shift = #1
60
61         fis
62      }
63 >
64
65
66 \score{
67         \notes \transpose c'' {  \twovoice  
68         \twovoicesteminvert 
69         \threevoice \break
70          \chordstest
71          \hairyChord
72         }
73         
74 %       \midi { \tempo 4:80 }
75 }