lilypond-user
[Top][All Lists]
Advanced

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

Re: piano right hand with chorded eigths beneath a half


From: Daniel Johnson
Subject: Re: piano right hand with chorded eigths beneath a half
Date: Wed, 22 Jun 2005 20:49:16 -0700
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050401)

Daniel Johnson wrote:

>r4 c4 ~ << c2 \\ {r8 <g e>8 r8 <g e>8} >>
>
>  
>
hmm. On second thought, the tie between the C's probably won't work
here.  << \\ >> by default generates new voices, and you can't do
cross-voice ties.  BUT, you can specify voice-names.  So the following
would (theoretically) work:

\context Voice = rightHand r4 c4 ~ << \context Voice = rightHand c2 \\
{r8 <g e>8 r8 <g e>8} >>

 << \\ >> generates a \context Voice = "1" and \context Voice = "2" by
default.  But if you specify one of the voices to be the same as the
voice *outside* the double-angle-brackets, then you can perform the tie,
since both tied notes are in the same voice.

Make sense?

--Daniel

P.S. This same trick is useful in vocal scores, when you are binding
lyrics to a voice.  Since by default << \\ >> generates new voices, your
lyrics will not bind to the notes inside the double-angle-brackets.  But
if you specify one of the voices inside the << \\ >> to be the same as
the voice outside it, the lyrics flow just fine.  Here's an example:

text = \lyricmode { La Ti Do }
\score {
    <<
        \context Staff = sopStaff {
            \context Voice = sopVoice {
                a2 << \context Voice = sopVoice b2 \\ {g4( f)} >> | <c a>1
            }
       }
        \context Lyrics = sopLyrics \lyricsto sopVoice \text
    >>
}




reply via email to

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