Hi Erik,

I think this comes quite close to what you are looking for:
\version "2.24.3"

\score {
  \relative c'' {
     << {s2 d4( e) } \\ {  f,4 ~ <f a ~>  q ~ < f a d> } >>
  }
}

The only thing that is not correct is the distance between the D and E in
the upper and lower voice

[image: image.png]
Kind regards,
Ruud

On Sat, Dec 20, 2025 at 9: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?
>
> \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''}
>   >>
> }
>
>

Reply via email to