3 Normal collisions. We have support for polyphony, where the
4 middle voices are horizontally shifted.
6 filename
= "collisions.ly";
7 description
= "random counterpoint to test collisions";
9 copyright
= "public domain";
10 Tested
= "test the Collision resolution ";
14 twovoice
= \context Staff
\notes <
15 \context Voice
=i
{ \stemDown c4 d e f g2~
g4 a [c8 d e f] c2|
}
16 \context Voice
=ii
{ \stemUp g4 f e g ~
g2 g2 c4 g4 g2 }
19 twovoicesteminvert
= \context Staff
\notes <
20 % the f and g on 4th beat are exceptionally ugh.
21 \context Voice
=i
{ \stemUp c4 d e f g2 g4 a |
}
22 \context Voice
=ii
{ \stemDown g4 f e g g2 g2 }
25 threevoice
= \context Staff
\notes <
26 \context Voice
=i
{ \stemUp g4 f e f g a g2 }
27 \context Voice
=ii
{ \stemUp \property Voice
.NoteColumn
\override #'horizontal-shift
= #1
29 \context Voice
=iii
{ \stemDown c4 d e d c d es }
32 chordstest
= \context Staff
\notes <
33 \context Voice
= i
\relative c {
34 \stemUp e4 dis c f g f a b b
36 \context Voice
= ii
\relative c {
37 \stemDown <a4 c> <a4 c> <a4 e'> <a4 c> <e' a> <e a> <e a> <a c> <a d>
41 hairyChord
= \context Staff
\notes\relative c' <
43 \property Voice
.NoteColumn
\override #'horizontal-shift
= #0
50 \property Voice
.NoteColumn
\override #'horizontal-shift
= #1
54 \context Voice
=three
{
55 \property Voice
.NoteColumn
\override #'horizontal-shift
= #2
63 \property Voice
.NoteColumn
\override #'horizontal-shift
= #1
71 \notes \transpose c'' { \twovoice
78 % \midi { \tempo 4:80 }