On Sat, Dec 20, 2025 at 12:30 PM Eirik B <[email protected]> wrote:
> Hello,
>
> I am trying to replicate the engraving below
>
> My strategy for going this was to have three simultaneous music
> expressions (not considering the correct octave)
>
> - A: f4~ <f a~> q~ q (All in \voiceTwo)
> - B: s2 \stemUp d4~ \stemDown d4 (All in \voiceTwo)
> - C: s2. e'4 (All in \voiceOne)
>
>
> However, when I try to implement this strategy, it appears that LilyPond
> groups together the D and the E in the fourth beat like a chord, even when
> they are located in separate voices. This happens even when specifying
> \stemDown for the D and \stemUp for the E! To illustrate this, see the code
> below and the resulting output. I have horizontally shifted only the E to
> demonstrate that the D will follow its shift. I have also added how
> LilyPond engraves when E and D are in a chord and in separate voices, i.e.
> the expected behavior.
>
> What am I not understanding here, and what can I do to prevent the D and E
> from being grouped into a chord, such that I can get the desired output?
>
I did this a different way, see below. Hopefully it's helpful.
%%% Start
\version "2.24.4"
one = \relative {
\key d \major
\voiceFour fis'4~ <fis a~> <fis~ a~> <fis a d>
}
two = \relative {
s2 \voiceOne d''4( e)
}
\new Staff <<
\new Voice \one
\new Voice \two
>>
%%% End
--
Knute Snortum