Mats - Thanks. Your two alternatives should make the docs, maybe Tips and Tricks.
In your preferred case, using a hidden grace longer than 1/16 causes a third ending to be inserted. Why? Bug? Using {\grace{\hideNotes g32 ( g32 }\unHideNotes a4 ) g e d | c1 }} improves the tie by making it slightly longer. - Bruce -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mats Bengtsson Sent: Wednesday, September 21, 2005 3:16 AM To: Peter Mogensen Cc: lilypond-user@gnu.org Subject: Re: Ties in second endings 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 _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user