lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Avoiding collisions between voices?


From: Kilian A. Foth
Subject: Avoiding collisions between voices?
Date: Tue, 19 Sep 2006 19:56:02 +0200

Hello list,

here is a snippet I've been inputting where I can't seem to move a
colliding note away:


shiftRight = { \once \override NoteHead #'extra-offset = #'(1 . 0) 
               \once \override Stem #'extra-offset = #'(1 . 0) } 
\score {
  \relative c'' {

    fis8.\tieDown d16~<d f>8.g16gis8.a16c8. \tieUp <d,a'd>16~ |
    \once \override TieColumn #'tie-configuration = #'((2 . -1)  (7 . 1) (10 . 
1))
    <d a'd>1~ | 

    \voiceOne
    \once \override TieColumn #'tie-configuration = #'((2 . -1)  (10 . 1))
    << { <d d'>1~ | 
         \once \override TieColumn #'tie-configuration = #'((2 . -1) (12 . 2))
         <d d'>2r } \context Voice="1"
       {  \stemUp \shiftRight gis8 a16gis a gis a gis \tieUp a2~ | a2 } >> 
\bar"|."
    
  }
}

As you see, I've managed to position all ties so that they look best,
and even tied the first chord to the corresponding split voices. But
the first g sharp pokes its stem right through the whole note. I've
tried to move it away with extra-offset, but that leaves the beam
looking wrong. 

The manual says one should use force-hshift in this situation, but
overriding the force-hshift for the g sharp has no effect. Is that
because the d and the g sharp are in different voices? How do I make
them aware of each other? Alternatively, how does one override a beam
to be shorter at one end?


-- 
Kilian A. Foth
Theodorstieg 6
D-22761 Hamburg
040 - 8537 4738 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]