lilypond-user
[Top][All Lists]
Advanced

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

Re: ties, polyphony and \alternative


From: Mats Bengtsson
Subject: Re: ties, polyphony and \alternative
Date: Wed, 24 Mar 2004 17:11:18 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

A tie can only occur between two notes in the same voice, which
in the world of LilyPond means that they have to live in the
same Voice context. Either you could include the full \repeat
and \alternative within one of the <<{...} \\ {...}>> voices
(actually you want at least the \repeat to appear in both voices
in that case), or you could name the contexts. Contexts with the
same name are interpreted as one and the same context.
For the latter alternative, do someting like:

\context Voice = mainVoice {
\time 6/8 \key d \major
\repeat volta 2 {
    ...
r8 << \context Voice = mainVoice { a8[ a] a16[ d8. d16 d]~ } \\ { a8[ a] a16[ d8. d16 d]~ } >>
  ...

   /Mats

GoochRules! wrote:
Greetings,

I am using lilypond 2.0.1-16 (from fink).
I wish to tie from a repeat to alternative endings from multiple voices in the same staff. I've seen this post http://mail.gnu.org/archive/html/bug-lilypond/2004-01/msg00037.html, but I can't get it to work with multiple voices.

here's my notes:
\time 6/8 \key d \major
\repeat volta 2 {
    ...
    r8 << { a8[ a] a16[ d8. d16 d]~ } \\ { a8[ a] a16[ d8. d16 d]~ } >>
    %r8 a8[ a] a16[ d8. d16 d]~
}
\alternative {
    {
        d2.
        R2.*3
    }
    {
        \MkInvis d4~ \MkVis d2.*2/3
        R2.
    }
}

As you can see, the two voices are identical in the measure before the alternative endings, so I could use the commented line, but as an academic exercise, how would I mix polyphony, ties, and \alternative? If this works in later versions, then don't bother; I can wait until its a part of fink's stable branch.


--Matthew Peltzer




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

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