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: Kevin Cole
Subject: Re: Need help with \force-hshift or \shiftO... (off, on, onn, onnn, etc.)
Date: Sun, 27 Mar 2022 21:54:02 -0400

On Sun, Mar 27, 2022 at 5:04 PM Carl Sorensen <carl.d.sorensen@gmail.com> wrote:
>
> 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 }
> }


Ah. I think you're right. And, when I do what you suggested in the
minimal example, it works as described: Your example looks like the
image I sent. But when I inject it into the full score I get the
attached, which still merges the dotted eighth with the sixteenth at
the start of the measure.

Attachment: generated.png
Description: PNG image


reply via email to

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