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:10:20 +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:59 schreef Valentin Petzel:
Hi Jogchum,

please keep it on the list!
Not for the first time I stand corrected here, apologies!
The first one does exactly what it states it does,
it creates two voices.

The second one does what you actually want, which is a single voice featuring
all notes as chords. If you have different rhythms you’ll need to combine these
approaches and employ different Voices for these parts and chords for the rest.

As Xavier pointed out this is something you can get (semi-)automatically using
\partCombine.

I used the method Xavier mentioned, and that gives (well, almost.... but that's nitpicking, as I shall state in my reply to Xavier) what I would like to see.

Thanks again!

regards, Joghum


Cheers,
Valentin

Am Montag, 20. Februar 2023, 11:54:11 CET schrieb Jogchum Reitsma:
Op 20-02-2023 om 11:08 schreef Valentin Petzel:
Hi Jogchum,

the reason for your issues is that you are using voice 2 (i.e. lowest
voice) with a \stemUp, which will cause issues to resolve collision.
Generally you should avoid using \stemUp and \stemDown unless you really
need to use it and rather use the correct Voice.

If you were to use \voiceThree instead (which is the second highest voice)
the Lilypond will properly resolve collision:

\version "2.24.0"

global = {

    \key c \major
    \time 3/4

}

sopranoVoice = \relative c'' {

    \global
    \dynamicUp
    <<
\new Voice { \voiceOne
        r8 a^\p a4. g8 \time 2/4
        f g a a
}
      \new Voice {
\voiceThree
        r8 f f4.(e8)
        d e f f
}

}

\score {

    \new Staff \with {
instrumentName = "Sopraan"
      shortInstrumentName = "S."
} { \sopranoVoice }
    \layout { }

}
This renders to something that avoids it being seen as 16th notes, but
not to what I would like to see (that is, both stems and beams being
combined). See the result included.

But in your case I suppose you do not actually want to have two voices but
chords:
You are right, looking at the snippet I posted. But at aother places in
the score there are different rhythms in the two voices, so that won't
work I'm afraid.

But thanks for your advice!

regards, Jogchum

\version "2.24.0"

global = {

    \key c \major
    \time 3/4

}

sopranoVoice = \relative c'' {

    \global
    \dynamicUp
    <<
{ r8 a^\p a4. g8 \time 2/4
        f g a a
}
      {
r8 f f4.(e8)
        d e f f
}

}

\score {

    \new Staff \with {
instrumentName = "Sopraan"
      shortInstrumentName = "S."
} { \sopranoVoice }
    \layout { }

}

Cheers,
Valentin

Am Montag, 20. Februar 2023, 10:43:40 CET schrieb Jogchum Reitsma:





reply via email to

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