lilypond-user
[Top][All Lists]
Advanced

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

Re: Ties in second endings


From: Mats Bengtsson
Subject: Re: Ties in second endings
Date: Wed, 21 Sep 2005 10:15:40 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511



Peter Mogensen wrote:
Mats Bengtsson wrote:

* Ties are not continued into second endings

The standard trick is to add a tie from an invisible note. You can
find several examples in the mailing list archives.

I did that.
But this is also one of the examples where the "hack" doesn't play well
with the entire score. This invisible note takes up space, which ruins
the alignment with notes in other staffs where there's no tie.


I just realized that one possibility to solve this is to make the
invisible note a grace note. In that way, it won't destroy the
rhythm. Example:

\version "2.6.0"
\score{
\new Voice \relative c' {
 \repeat volta 2 {c d2 e4 | f g a2 ~ }
 \alternative{{a4 g2 f4 | e2 d }{ \grace{\hideNotes a'4~} \unHideNotes
a g e d\ | c1 }}
}
}


Unfortunately this seems to give the same problem as when the music
starts with a grace note (causing the time sign to be duplicated).
Only now it's the second volta-spanner which is duplicated.
So... two hacks would be required.

I hope you know how to fix it, namely to insert a \grace{s4} in the
beginning of the second ending of all other voices. Example:

\score{
 \relative c' <<
  \new Staff {
    \repeat volta 2 {c d2 e4 | f g a2 ~ }
    \alternative{{a4 g2 f4 | e2 d }
      {\grace{\hideNotes a'16~ }\unHideNotes a4 g e d | c1 }}
  }
  \new Staff {
    \repeat volta 2 {c2 b4 c | d c f2 }
    \alternative{{d4 e d2 | c b |}
      {\grace s16 d2 g4 g, | c1}}
  }
>>
}


The other alternative that is often used is to fiddle with the
durations, as in the following example, but then you either get
the note head slightly misplaced compared to the other voices or
you have to apply the same trick to all voices, so I prefer the
grace note solution.


\score{
 \relative c' <<
  \new Staff {
    \repeat volta 2 {c4 d2 e4 | f g a2 ~ }
    \alternative{{a4 g2 f4 | e2 d }
      {\hideNotes a'32 ~ \unHideNotes a4*7/8 g4 e d | c1 }}
  }
  \new Staff {
    \repeat volta 2 {c2 b4 c | d c f2 }
    \alternative{{d4 e d2 | c b |}
      { d2 g4 g, | c1}}
  }
>>
}


   /Mats




reply via email to

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