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 20:54:37 +0200

Yeah, I got as far as:
ErsteStimme = { r2 c''4 d'' g'8 g' g'4 fis' g'4}
ZweiteStimme = { g'4 a' r2 e'8 e' d'2 c'4 }
DritteStimme = { r2 fis''4 g'' g'8 g' g'4 fis' g'4 }
VierteStimme = {c'4 c' r2 e'8 e' d'2 c'4  }
\score {
        \new Staff << \set Staff.printPartCombineTexts = ##f
\new Voice \with {\remove Rest_engraver}<<\voiceOne \partcombine \ErsteStimme \DritteStimme>> \new Voice \with {\remove Rest_engraver}<<\voiceTwo \partcombine \ZweiteStimme \VierteStimme>>
        >>
}
and then I just gave up. Maybe in a year or two I'll try it again.
On 09.04.2008, at 20:50, Mats Bengtsson wrote:

\partcombine will indeed produce Voice contexts. The reason that you
get problems is that the names of these Voice contexts is
hard-coded, which means that the results of your two
\partcombine commands end up in one and the same Voice
context (since the name is the same).

This is just one of many limitations and problems with \partcombine.

It should be a fairly simple exercise in Scheme programming
to remove the duplicated notes, though.

 /Mats

James E. Bailey wrote:

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
=============================================




--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        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]