[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Need help with \force-hshift or \shiftO... (off, on, onn, onnn, etc.)
From:       Carl Sorensen <carl.d.sorensen () gmail ! com>
Date:       2022-03-27 21:04:11
Message-ID: CACEw7i_ZBdvo5DqZyuhvnzTOVL1nGdr4fnKvDqxN7=ZWUUQwjA () mail ! gmail ! com
[Download RAW message or body]

On Sun, Mar 27, 2022 at 2:01 PM Kevin Cole <dc.loco@gmail.com> wrote:

> 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.
>

Kevin,

If you want the heads to merge, they need to be at the same time step.

I think you are misinterpreting the original music.  The original music has
two downstemmed notes (b natural sixteenth plus b natural eighth) at the
same time as one upstemmed note (b dotted eighth).

To get the output in the image, just do this:

\version "2.20.0"
\language "english"

\layout {
  \autoBeamOff
}

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

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

\score {
  \new Staff { \melody }
}

HOpe this helps,

Carl

[Attachment #3 (text/html)]

<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">On Sun, Mar 27, 2022 at 2:01 PM Kevin Cole &lt;<a \
href="mailto:dc.loco@gmail.com">dc.loco@gmail.com</a>&gt; wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">In my more-than-minimal example, the b16 from the \
first voice gets<br> merged with the b8. from the second voice. When I tried to \
create a<br> minimum (non-working) example, the two didn&#39;t merge. But, what I \
want<br> below is for the b8. from the first voice to merge with the b8. from<br>
the second voice.<br>
<br>
In other words, it should look like b16 b8. g16 with the b8. in the<br>
middle having stems going both directions.   Looking at examples that<br>
were over my head, I attempted \override \once \force-hshift in<br>
various places, but didn&#39;t accomplish \
anything.<br></blockquote><div><br></div><div>Kevin,  </div><div><br></div><div>If \
you want the heads to merge, they need to be at the same time \
step.</div><div><br></div><div>I think you are misinterpreting the original music.   \
The original music has two downstemmed notes (b natural sixteenth plus b natural \
eighth) at the same time as one upstemmed note (b dotted \
eighth).</div><div><br></div><div>To get the output in the image, just  do \
this:</div><div><br></div>\version &quot;2.20.0&quot;<br>\language \
&quot;english&quot;<br><br>\layout {<br>   \autoBeamOff<br>}<br><br>global = {<br>   \
\key ef \major<br>   \time 4/4<br>}<br><br>melody = {<br>   \relative {<br>      \
\global<br>      &lt;&lt;<br>         { \voiceOne b&#39;8. }<br>         \new \
Voice<br>         { \voiceTwo b16 b8 }<br>      &gt;&gt;<br>      \oneVoice<br>      \
a8 b8 c4 r8 d8<br>   }<br>}<br><br>\score {<br>   \new Staff { \melody \
}<br>}<br><div><br></div><div>HOpe this \
helps,</div><div><br></div><div>Carl</div><div>  </div></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic