On Thu, Jan 29, 2015 at 8:29 AM, Richard Shann <rich...@rshann.plus.com>
wrote:

> In the following I have inserted \shiftOn and \shiftOff commands in a
> vain attempt to get the <e g> chord in the second voice to be displaced
> to the left of the a8 in voice one. I have even repeated the command
> immediately before these notes, but to no avail. (I am hoping it will
> fix the collision of the tie with the note head).
>
> 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
>
> \version "2.18.0"
> MI = {\voiceOne \shiftOn a4.~  \shiftOn a8 b c'}
> MII = { \voiceTwo \shiftOff a8 g^~  <e_~ g^~ >8 \shiftOff <e g> \skip 4 }
>
> \new Staff   <<
>  \new Voice \clef bass \time 6/8 \MI
>  \new Voice   \MII
> >>
>
>
> 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
>
> Am I doing something wrong?
>
> Richard Shann
>

I don't have an solution to get Lily to do what you want, but it appears
that the \ShiftOn and related commands only work when the two voices have
the stems pointing in the same direction. From the NR:

The \shiftOn command allows (but does not force) the notes in a voice to be
shifted. When \shiftOn is applied to a voice, a note or chord in that voice
is shifted only if its stem would otherwise collide with a stem from
another voice, and only if the colliding stems point in the same direction.

Sorry to not be of more help. Maybe someone else has a solution?

James Worlton
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to