lilypond-user
[Top][All Lists]
Advanced

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

RE: Need help with \force-hshift or \shiftO... (off, on, onn, onnn, etc.


From: Mark Stephen Mrotek
Subject: RE: Need help with \force-hshift or \shiftO... (off, on, onn, onnn, etc.)
Date: Sun, 27 Mar 2022 14:09:59 -0700

Kevin,

Form what I see, the voices are interchanged.
What is in voiceOne should be voiceTwo and vice versa.
See:
https://lilypond.org/doc/v2.22/Documentation/learning/i_0027m-hearing-voices
 

Mark

-----Original Message-----
From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr.com@gnu.org] 
On Behalf Of Kevin Cole
Sent: Sunday, March 27, 2022 1:01 PM
To: lilypond-user mailinglist <lilypond-user@gnu.org>
Subject: Need help with \force-hshift or \shiftO... (off, on, onn, onnn, etc.)

In my more-than-minimal example, the b16 from the first voice gets merged with 
the b8. from the second voice. When I tried to create a minimum (non-working) 
example, the two didn't merge. But, what I want below is for the b8. from the 
first voice to merge with the b8. from the second voice.

In other words, it should look like b16 b8. g16 with the b8. in the middle 
having stems going both directions.  Looking at examples that were over my 
head, I attempted \override \once \force-hshift in various places, but didn't 
accomplish anything.

%%%%%%%%%
\version "2.20.0"
\language "english"

\layout {
  \autoBeamOff
}

global = {
  \key ef \major
  \time 4/4
}

melody = {
  \relative {
    \global
    <<
      { \voiceOne b'16 b8. }
      \new Voice
      { \voiceTwo b8. g16 }
    >>
    \oneVoice
    a8 b8 c4 r8 d8
  }
}

\score {
  \new Staff { \melody }
}
%%%%%%%%%

P.S. I think I'm interpreting the attached image correctly, but I could be 
wrong about that. In any case, that's what I'm trying to achieve in LilyPond.




reply via email to

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