Fairchild wrote:
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?

??? I can't repeat the problem. Did you remember to change the
duration of the grace notes in both staves?

   /Mats


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: [email protected]
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
[email protected] http://lists.gnu.org/mailman/listinfo/lilypond-user





_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.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: [EMAIL PROTECTED]
        WWW: http://www.s3.kth.se/~mabe
=============================================


_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to