lilypond-user
[Top][All Lists]
Advanced

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

Re: Avoiding collisions between voices?


From: Mats Bengtsson
Subject: Re: Avoiding collisions between voices?
Date: Thu, 21 Sep 2006 16:45:12 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417

Just replace your \stemUp \shiftRight with \voiceThree.
Actually, I think the result looks even better if you use \voiceTwo
instead, but you probably have a good reason to let the stems point
up. Read also about \shiftOn, \shiftOnn, \shiftOnnn and \shiftOff
in the manual. The difference between \voiceOne and  \voiceThree
is that the latter also does \shiftOn.

  /Mats



Kilian A. Foth wrote:

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?



--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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