Hello,
I am trying to replicate the engraving below
[cid:94c7610b-b616-4bee-b04f-0a82cfe10ad9]
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?
\version "2.24.4"
vI = \relative c'{\key d \major
fis4~ <fis a~> <<{\voiceTwo <fis a>~ <fis a>}\\{\voiceTwo \stemUp d'4~
\stemDown d4}>>
}
vII = \relative c'{\key d\major
s2. \stemUp \override NoteColumn.force-hshift = 5 \voiceOne e'4
}
\score {
\new Staff
<<
\new Voice = "1" {\voiceTwo \vI}
\new Voice = "2" {\voiceOne \vII}
>>
\layout {}
}
\score {
{\stemUp <d''e''>4}
}
\score {
\new Staff
<<
\new Voice = "a" {\voiceTwo d''}
\new Voice = "b" {\voiceOne e''}
>>
}
[cid:86a6c79e-3e52-40f9-b227-20ea728ecb99]