lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Avoid double beaming


From: Jogchum Reitsma
Subject: Re: Avoid double beaming
Date: Mon, 20 Feb 2023 12:14:27 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2

Op 20-02-2023 om 11:13 schreef Xavier Scheuer:
On Mon, 20 Feb 2023 at 10:44, Jogchum Reitsma <j.reitsma@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.scheuer@gmail.com>


Attachment: Screenshot_20230220_120559.png
Description: PNG image


reply via email to

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