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:58:32 +0000

On Thu, 2015-01-29 at 14:52 +0000, Trevor Daniels wrote:
> Hi Richard
> 
> I quote from the Notation Reference:
> 
> "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. The 
> \shiftOff command prevents this type of shifting from occurring."
> 
> See 
> http://www.lilypond.org/doc/v2.19/Documentation/notation/multiple-voices#collision-resolution
> 
> So unless there is a collision of notes the shift commands have no effect.
> 
> You'll find a clue for doing what you want if you examine the example here:
> 
> http://www.lilypond.org/doc/v2.19/Documentation/learning/real-music-example
> 

Hmm, that example seemed very complicated, I couldn't make out what was
going on - but I did just find NoteColumn.force-hshift just a little
further on (in
http://www.lilypond.org/doc/v2.18/Documentation/notation/multiple-voices
) and it seems to do the trick:


\version "2.18.0"

MI = {\voiceOne  a4.~  \once \override NoteColumn.force-hshift = #1.7 a8
b c'}

MII = { \voiceTwo a8 g^~  <e_~ g^~ >8 <e g> \skip 4 }

\new Staff   << 
 \new Voice \clef bass \time 6/8 \MI       
 \new Voice   \MII                    
>>

Ironically, I had already tried \\override NoteColumn.X-offset without
effect...

Richard




> Trevor
> 
> 
> ----- Original Message ----- 
> From: "Richard Shann" <address@hidden>
> To: "lilypond-user" <address@hidden>
> Sent: Thursday, January 29, 2015 2:29 PM
> Subject: \shiftOn and friends
> 
> 
> > 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
> > 
> > 
> > 
> > _______________________________________________
> > lilypond-user mailing list
> > address@hidden
> > https://lists.gnu.org/mailman/listinfo/lilypond-user





reply via email to

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