Discussion:
partcombine with 3-4 voices, flags not merged
Eby Mani
2018-11-15 08:34:23 UTC
Permalink
Hi All,

I'm typesetting some piano music, I find it easier to break the chords into different voices(e.g. rhA, rhB, rhC) and combine using \partcombine, instead of putting the chourds in a single voice (e.g. RH).

However it doens't seem working fine with more than 2 voices on single staff. Following example does not combine "rhC" at all.

The file i'm working on does combine noteheads and stems, except the flags. Instead of merging flags, it adds another set of flags in the same direction(sorry don't have access to the file i'm working on now, will provide screenshot once i get home).

The final result i'm looking for is that of "RH"'s with partcombine pairs without text.

Any snippets, commands to overcome this problem ?.

Thanks,
Eby

\version "2.18.2"
global = { \key c \major \time 2/4 }

rhA = \relative c' {
c8 e g c
}

rhB = \relative c' {
c8 c e e
}

rhC = \relative c' {
a8 a c c
}

RH = \relative c' {
<c a>8 <e c a> <g e c> <c e, c>
}

\score{
<<
\new Staff { \partcombine \sopranoA \sopranoB \sopranoC }
\new Staff { \RH }
\layout{}
\midi{}
}
Mark Stephen Mrotek
2018-11-15 13:02:34 UTC
Permalink
Eby,

The variables are defined as rhA, rhB, rhC, yet in the part-combine they are
listed as sopranoA, sporanoB, and sopranoC.

Mark

-----Original Message-----
From: lilypond-user
[mailto:lilypond-user-bounces+carsonmark=***@gnu.org] On Behalf Of Eby
Mani
Sent: Thursday, November 15, 2018 12:34 AM
To: lilypond-***@gnu.org
Subject: partcombine with 3-4 voices, flags not merged

Hi All,

I'm typesetting some piano music, I find it easier to break the chords into
different voices(e.g. rhA, rhB, rhC) and combine using \partcombine, instead
of putting the chourds in a single voice (e.g. RH).

However it doens't seem working fine with more than 2 voices on single
staff. Following example does not combine "rhC" at all.

The file i'm working on does combine noteheads and stems, except the flags.
Instead of merging flags, it adds another set of flags in the same
direction(sorry don't have access to the file i'm working on now, will
provide screenshot once i get home).

The final result i'm looking for is that of "RH"'s with partcombine pairs
without text.

Any snippets, commands to overcome this problem ?.

Thanks,
Eby

\version "2.18.2"
global = { \key c \major \time 2/4 }

rhA = \relative c' {
c8 e g c
}

rhB = \relative c' {
c8 c e e
}

rhC = \relative c' {
a8 a c c
}

RH = \relative c' {
<c a>8 <e c a> <g e c> <c e, c>
}

\score{
<<
\new Staff { \partcombine \sopranoA \sopranoB \sopranoC }
\new Staff { \RH }
\layout{}
\midi{}
}
Eby Mani
2018-11-15 13:23:15 UTC
Permalink
My mistake while writing to the list, apologies, they should be .

"\new Staff { \partcombine \rhA \rhB \rhC }"

--------------------------------------------
On Thu, 15/11/18, Mark Stephen Mrotek <***@ca.rr.com> wrote:

Subject: RE: partcombine with 3-4 voices, flags not merged
To: "'Eby Mani'" <***@yahoo.com>, lilypond-***@gnu.org
Date: Thursday, 15 November, 2018, 1:02 PM

Eby,

The variables are defined as rhA, rhB, rhC, yet
in the part-combine they are
listed as
sopranoA, sporanoB, and sopranoC.

Mark

-----Original
Message-----
From: lilypond-user
[mailto:lilypond-user-bounces+carsonmark=***@gnu.org]
On Behalf Of Eby
Mani
Sent:
Thursday, November 15, 2018 12:34 AM
To: lilypond-***@gnu.org
Subject: partcombine with 3-4 voices, flags not
merged

Hi All,

I'm typesetting some piano
music, I find it easier to break the chords into
different voices(e.g. rhA, rhB, rhC) and
combine using \partcombine, instead
of
putting the chourds in a single voice (e.g. RH).

However it doens't seem
working fine with more than 2 voices on single
staff. Following example does not combine
"rhC" at all.

The file i'm working on does combine
noteheads and stems, except the flags.
Instead of merging flags, it adds another set
of flags in the same
direction(sorry
don't have access to the file i'm working on now,
will
provide screenshot once i get home).

The final result i'm
looking for is that of "RH"'s with partcombine
pairs
without text.

Any snippets, commands to overcome this problem
?.

Thanks,
Eby

\version
"2.18.2"
global = { \key c \major
\time 2/4 }

rhA = \relative
c' {
c8 e g c
}

rhB = \relative c' {
c8 c e e
}

rhC = \relative c' {
a8 a c
c
}

RH =
\relative c' {
<c a>8 <e c
a> <g e c> <c e, c>
}

\score{
   
<<
    \new Staff { \partcombine
\sopranoA \sopranoB \sopranoC }
    \new
Staff { \RH }
    >>
    \layout{}
   
\midi{}
}

_______________________________________________
lilypond-user mailing list
lilypond-***@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Mark Stephen Mrotek
2018-11-15 13:25:08 UTC
Permalink
Happens,
Not to worry.



-----Original Message-----
From: Eby Mani [mailto:***@yahoo.com]
Sent: Thursday, November 15, 2018 5:23 AM
To: lilypond-***@gnu.org; Mark Stephen Mrotek <***@ca.rr.com>
Subject: RE: partcombine with 3-4 voices, flags not merged

My mistake while writing to the list, apologies, they should be .

"\new Staff { \partcombine \rhA \rhB \rhC }"

--------------------------------------------
On Thu, 15/11/18, Mark Stephen Mrotek <***@ca.rr.com> wrote:

Subject: RE: partcombine with 3-4 voices, flags not merged
To: "'Eby Mani'" <***@yahoo.com>, lilypond-***@gnu.org
Date: Thursday, 15 November, 2018, 1:02 PM

Eby,

The variables are defined as rhA, rhB, rhC, yet in the part-combine they are listed as sopranoA, sporanoB, and sopranoC.

Mark

-----Original
Message-----
From: lilypond-user
[mailto:lilypond-user-bounces+carsonmark=***@gnu.org]
On Behalf Of Eby
Mani
Sent:
Thursday, November 15, 2018 12:34 AM
To: lilypond-***@gnu.org
Subject: partcombine with 3-4 voices, flags not merged

Hi All,

I'm typesetting some piano
music, I find it easier to break the chords into different voices(e.g. rhA, rhB, rhC) and combine using \partcombine, instead of putting the chourds in a single voice (e.g. RH).

However it doens't seem
working fine with more than 2 voices on single staff. Following example does not combine "rhC" at all.

The file i'm working on does combine
noteheads and stems, except the flags.
Instead of merging flags, it adds another set of flags in the same direction(sorry don't have access to the file i'm working on now, will provide screenshot once i get home).

The final result i'm
looking for is that of "RH"'s with partcombine pairs without text.

Any snippets, commands to overcome this problem ?.

Thanks,
Eby

\version
"2.18.2"
global = { \key c \major
\time 2/4 }

rhA = \relative
c' {
c8 e g c
}

rhB = \relative c' {
c8 c e e
}

rhC = \relative c' {
a8 a c
c
}

RH =
\relative c' {
<c a>8 <e c
a> <g e c> <c e, c>
}

\score{

<<
\new Staff { \partcombine
\sopranoA \sopranoB \sopranoC }
\new
Staff { \RH }
\layout{}

\midi{}
}

_______________________________________________
lilypond-user mailing list
lilypond-***@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Kieren MacMillan
2018-11-15 14:32:49 UTC
Permalink
Hi Eby,

On the page

<http://lilypond.org/doc/v2.19/Documentation/notation/multiple-voices#automatic-part-combining>

is found the following:

Known issues and warnings
All \partcombine… functions can only accept two voices.

Supporting more than two voices is a long-standing feature request.
Post by Eby Mani
I'm typesetting some piano music, I find it easier to break the chords into different voices(e.g. rhA, rhB, rhC) and combine using \partcombine, instead of putting the chourds in a single voice (e.g. RH).
I’ve never found that to be true, despite setting a great deal of piano music: either the music is truly chordal (in which case I find it easiest to write out as chords), or the music is contrapuntal (in which case, multiple voices *without partcombine* is the correct approach).

Hope this helps!
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: ***@kierenmacmillan.info
Eby Mani
2018-11-15 19:27:59 UTC
Permalink
Too bad \partcombine is limited to two voices after all these years.

Following is the excerpt from the file i'm working on and the output with & without transparent flag and beam.

The flOff and flOn does help, but stems on bar 4 & 5 are not combined and notes are not shifted(bar 3 and 4).


*************
\version "2.18.2"

global = {
\key a \major
\time 3/4
}

flOff = { \override Flag #'transparent = ##t
\override Beam #'transparent = ##t }

flOn = { \override Flag #'transparent = ##f
\override Beam #'transparent = ##f }

rhA = \relative c' {
fis8 fis eis eis eis eis

fis fis fis fis a a
eis eis eis eis gis gis

dis'4 dis8 e fis gis
a2 r4
}

rhAB = \relative c' {
cis8 cis cis cis cis cis

cis cis cis cis fis fis
cis cis cis cis eis eis

s2.
s2.
}

rhAC = \relative c' {
s2.
s2.
s2.

a'2 s4
s2.
}

rhAD = \relative c' {
\flOff
s2.
a8 a a a cis cis
b b b b cis cis
\flOn
dis4 dis8 e fis gis
a2 r4
}

pianoRHa = <<
\partcombine \rhA \rhAB
pianoRHb = <<
\partcombine \rhAC \rhAD
lhA = \relative c' {
gis8 gis gis gis gis gis
fis2 fis4
gis2 b4

r8 fis fis e dis cis
bis4 dis fis
}

lhB = \relative c {

cis8 cis cis cis cis cis
fis,2 fis4
gis2 b4

r8 fis fis e dis cis
bis4 fis' fis
}

pianoLH = <<
\partcombine \lhA \lhB
\score {
\new PianoStaff <<
\new Staff <<
\set Staff.printPartCombineTexts = ##f
\partcombine
<< \global \rhA >>
<< \global \rhAB >>
<< \global \rhAC >>
<< \global \rhAD >>
\new Staff <<
\clef bass
\set Staff.printPartCombineTexts = ##f
\partcombine
<< \global \lhA >>
<< \global \lhB >>
\layout { }
}

\new Staff << \partcombine \global \pianoRHa \pianoRHb >>
********************

--------------------------------------------
On Thu, 15/11/18, Kieren MacMillan <***@sympatico.ca> wrote:

Subject: Re: partcombine with 3-4 voices, flags not merged
To: "Eby Mani" <***@yahoo.com>
Cc: "Lilypond-User Mailing List" <lilypond-***@gnu.org>
Date: Thursday, 15 November, 2018, 2:32 PM

Hi Eby,

On the page

 
<http://lilypond.org/doc/v2.19/Documentation/notation/multiple-voices#automatic-part-combining>

is found the following:

  Known issues and
warnings
  All \partcombine
 functions
can only accept two voices.

Supporting more than two voices is a
long-standing feature request.
I'm typesetting some piano music, I find it easier to
break the chords into different voices(e.g. rhA, rhB, rhC)
and combine using \partcombine, instead of putting the
chourds in a single voice (e.g. RH).

I’ve never found that to be
true, despite setting a great deal of piano music: either
the music is truly chordal (in which case I find it easiest
to write out as chords), or the music is contrapuntal (in
which case, multiple voices *without partcombine* is the
correct approach).

Hope
this helps!
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: ***@kierenmacmillan.info
Kieren MacMillan
2018-11-15 19:59:03 UTC
Permalink
Hi Eby,
Post by Eby Mani
Too bad \partcombine is limited to two voices after all these years.
As they say: Patches are enthusiastically accepted. =)
Post by Eby Mani
Following is the excerpt from the file i'm working on and the output with & without transparent flag and beam.
I still don’t understand why you don’t use chords… Especially given the number of repetitions, this kind of coding is dead simple with chords:

RH = {
<cs' fs'>8 8 <cs' e'>8 8 8 8
}

LH = {
<cs gs>8 8 8 8 8 8
}

etc.

I don’t see the benefit of partcombine, even if it *did* accept more than two voices.

Cheers,
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: ***@kierenmacmillan.info
David Kastrup
2018-11-15 21:02:40 UTC
Permalink
Post by Kieren MacMillan
Hi Eby,
Post by Eby Mani
Too bad \partcombine is limited to two voices after all these years.
As they say: Patches are enthusiastically accepted. =)
Well, this kind of thing would be hard to cure with a patch rather than
a complete rewrite since the two voices already lead to something like 5
different voices and this kind of design would grow exponentially when
supporting more than two voices.
--
David Kastrup
Eby Mani
2018-11-16 05:00:55 UTC
Permalink
Hi Kieren,
I still don’t understand why you don’t use chords

Some music contain ties/slurs from voiceOne that extend to another voice in the next bar, e.g. second bar in the attached example.
When you are planning to prepare different instrumentation, using chords while typesetting is a big no no for me. e.g preparing strings arrangement from a piano/organ score or vice versa. I find it much easier to avoid <chords>.

When preparing piano/organ only scores, i use <chords>, but still break entires into rhA, rhB, hope this clarifies. Thanks,

eby
--------------------------------------------
On Thu, 15/11/18, Kieren MacMillan <***@sympatico.ca> wrote:

Subject: Re: partcombine with 3-4 voices, flags not merged
To: "Eby Mani" <***@yahoo.com>
Cc: "Lilypond-User Mailing List" <lilypond-***@gnu.org>
Date: Thursday, 15 November, 2018, 7:59 PM

Hi Eby,
Too bad \partcombine is limited to two
voices after all these years.

As they say: Patches are enthusiastically
accepted.  =)
Following is the excerpt from the file i'm working on
and the output with & without transparent flag and beam.


I still don’t understand
why you don’t use chords
 Especially given the number of
repetitions, this kind of coding is dead simple with
chords:

RH = {
  <cs' fs'>8 8 <cs'
e'>8 8 8 8
}

LH = {
  <cs gs>8 8 8 8
8 8
}

etc.

I don’t
see the benefit of partcombine, even if it *did* accept more
than two voices.

Cheers,
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: ***@kierenmacmillan.info

Loading...