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