lilypond-user
[Top][All Lists]
Advanced

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

Re: \shiftOn and friends


From: Richard Shann
Subject: Re: \shiftOn and friends
Date: Thu, 29 Jan 2015 14:50:46 +0000

On Thu, 2015-01-29 at 08:44 -0600, James Worlton wrote:
> On Thu, Jan 29, 2015 at 8:29 AM, Richard Shann
> <address@hidden> 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. 
> 
Thanks for pointing this out - I had read that over several times and
taken it on board at least once, and then I must have forgotten that bit
as I carried on experimenting... It seems strange that the first note of
voiceOne is displaced to the left and the second to the right...

Richard


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





reply via email to

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