4 Normal collisions. We have support for polyphony, where the
5 middle voices are horizontally shifted.
7 filename
= "collisions.ly"
8 description
= "random counterpoint to test collisions"
10 copyright
= "public domain"
11 Tested
= "test the Collision resolution "
16 \notes \relative c' \context Staff
\notes <
17 \context Voice
=i
{ \stemDown c4 c d d e e f f }
18 \context Voice
=ii
{ \stemUp g4 f f e e d d c }
21 twovoicechords
= \context Staff
\notes <
22 \context Voice
= i
\relative c' {
23 \stemUp e4 d c b a g f
25 \context Voice
= ii
\relative c' {
26 \stemDown <a4 c> <a4 c> <a4 c> <a4 c> <a c>
32 threevoice
= \context Staff
\notes <
33 \context Voice
=i
{ \stemUp g4 f e f g a g2 }
34 \context Voice
=ii
{ \stemUp \shiftOn
36 \context Voice
=iii
{ \stemDown c4 d e d c d es }
39 hairyChord
= \context Staff
\notes\relative c' <
49 \property Voice
.NoteColumn
\override #'horizontal-shift
= #1
53 \context Voice
=three
{ \shiftOnn
68 \notes \transpose c'' {
76 % \midi { \tempo 4:80 }