The trick is to let the two lines of music belong to the same
Voice context when you want the stems joined and to different
Voice contexts when you want them separate.

Then, you could say something like:
VoiceFour = \notes \relative c' {
  r2 a2 | d,4 d a'2 | \translator Voice = three r2 a | d, d a2
  ... \translator Voice = four ...
}

Possibly, you have to keep the Voice context "four" alive with
spacing notes in a parallel line of music to keep all the
property settings (i.e. the \VoiceFour settings).

By the way, are you really sure that you want \voiceFour and
not \voiceTwo?

/Mats

Daniel Ashton wrote:

Hello,


I thought I'd seen this in the tutorial, but now I cannot find it.

I have two voices on one staff. At times their rhythms are the same. I want to specify that their stems should be joined during certain sections.

I know that I can do something like this:

\include "english.ly"

Key = \notes \key a \minor

VoiceThree = \notes \relative c' {
  r2 cs2 | d4 d cs2
}

VoiceFour = \notes \relative c' {
  r2 a2 | d,4 d a'2 | r2 <cs a> | <d4 d,> <d d,> <cs2 a>
}

\score {
  \context Staff = leftHand <
    \clef F
    \Key
    \context Voice=three { \voiceOne \VoiceThree }
    \context Voice=four  { \voiceTwo \VoiceFour  }
  >
}

I'd prefer to enter something like the first two measures, but at times to see what's printed by the second two measures. Is there any way to have stems joined across two voices?

Thanks,

Daniel


-- ============================================= 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: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe =============================================



_______________________________________________
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user

Reply via email to