Op 20-02-2023 om 11:13 schreef Xavier Scheuer:
On Mon, 20 Feb 2023 at 10:44, Jogchum Reitsma <j.reit...@hccnet.nl> wrote:
>
> Hi,
>
> In below snippet, lilypond renders two beams for the two voices, and,
> because I want the stems to have the same direction,
> the result for the 8th-notes is that they seem to be 16th notes.
>
> Is there a way to avoid this, and to join the two beams to one?
Hello,
I would say this is a typical case for \partCombine.
See NR 1.5.2 Multiple voices > Automatic part combining
sopranoOne = \relative c'' {
\key c \major
\time 3/4
r8 a\p a4.( g8) |
\time 2/4
f g a a |
}
sopranoTwo = \relative c' {
\key c \major
\time 3/4
r8 f f4.( e8) |
d e f f
}
\score {
\new Staff \with {
instrumentName = "Sopraan"
shortInstrumentName = "S."
\dynamicUp
} {
\partCombine \sopranoOne \sopranoTwo
}
\layout {}
}
Cheers,
Xavier
This gives the result I would like to see (well, almost: the first bar
still has separated stems/beams, but that's nitpicking).
I applied it to the piece the snippet was an excerpt from, and it
renders beautifully.
Thanks a lot!
regards, Jogchum
--
Xavier Scheuer <x.sche...@gmail.com>