lilypond-user
[Top][All Lists]
Advanced

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

Re: combining parts


From: James E. Bailey
Subject: Re: combining parts
Date: Wed, 9 Apr 2008 18:22:58 +0200

is there anything similar to \partcombine but at the voice level? I think that would give me an acceptable solution. Or can I move \partcombine to a voice context?
On 09.04.2008, at 15:23, Mats Bengtsson wrote:

The simplest solution is
ErsteStimme = { c''8 b' b' a' g' g' f' e' }
ZweiteStimme = { a'8 a' g' f' f' e' d' c' }
DritteStimme = { e'8 f' c' d' e' e' b a }
VierteStimme = { c'8 d' a b c' b g f }

\score {
\new Staff <<
  \new Voice <<\voiceOne \ErsteStimme \ZweiteStimme>>
  \new Voice <<\voiceTwo \DritteStimme \VierteStimme>>
>>
}

This solution will even combine rests if they happen in one and the same voice. However, if you have simultaneous rests in all the four parts, then you will see them duplicated, which may or may not be what you want. There have been several workarounds proposed in the mailing lists and LSR to merge the rests.

  /Mats

James E. Bailey wrote:
Is it possible to combine four parts into two voices on one staff, ideally with one voice stems up and the other voice stems down? I've gotten as far as two voices combined into one voice with stems in the direction I want, but every time I add the other voice, I either lose the two voice configuration, or I lose the stem settings. For reference, I've been playing with the following as my example.
ErsteStimme = { c''8 b' b' a' g' g' f' e' }
ZweiteStimme = { a'8 a' g' f' f' e' d' c' }
DritteStimme = { e'8 f' c' d' e' e' b a }
VierteStimme = { c'8 d' a b c' b g f }
OneAB = {
   <<
       \set Staff.printPartCombineTexts = ##f
       \partcombine
       <<\stemUp \ErsteStimme>>
       <<\stemUp \ZweiteStimme>>
   >>
}
TwoAB = {
   <<
       \set Staff.printPartCombineTexts = ##f
       \partcombine
       <<\stemDown \DritteStimme>>
       <<\stemDown \VierteStimme>>
   >>
}
\score {
   \new Staff {
       <<
           <<\stemUp \OneAB>>
           <<\stemDown \TwoAB>>
       >>
   }
}

I also tried <<\new Voice = "1" \with {\remove Rest_engraver} {\OneAB} \new Voice = "2" \with {\remove Rest_engraver} {\TwoAB}>>, and <<{\OneAB}\\{\TwoAB}>>, and various things involving \stemUp and \stemDown, and I just can't seem to get it work.


_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
      Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================






reply via email to

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