Peter,
On Thu, Oct 6, 2016 at 9:21 AM, Peter Toye [via Lilypond] <
ml-node+s1069038n195180...@n5.nabble.com> wrote:
> This rather follows on from https://lists.gnu.org/archive/
> html/lilypond-user/2016-02/msg00014.html and
> http://lists.gnu.org/archive/html/lilypond-user/2016-03/msg00531.html
>
> I am trying to do a similar thing with a volta repeat: a longish 1st time
> section without a long 2nd time volta indication. I tried to set the
> voltaSpannerDuration but this gives an error "cannot end volta spanner",
> which I don't understand. Is there a way of doing this without getting an
> error? It seems that LP tries to put the same number of bards into the 2nd
> time as the 1st time. A quick straw poll of printed music implies that the
> norm for the final alternative is a single bar. Is this a bug or am I
> missing something?
>
> A minimal example follows.
>
> \version "2.18.2"
>
> \language "english"
>
> \score {
> \new Staff {
>
> \time 4/4
> \clef treble
>
> \relative c''
> {
> c1
> \repeat volta 2 {
> c d e f
> }
> \alternative {
> {
> g f e d
> }
> {
> \set Score.voltaSpannerDuration = #(ly:make-moment 4/4)
> g a b c
> }
> }
> b a g
> }
> }
> }
>
Thank you for the MWE. If you want to show the second alternate bracket
over the "g" instead of "g a b c", then why not just move the "a b c" out
altogether? Then the \set Score.voltaSpannerDuration part isn't necessary
at all:
\version "2.18.2"
\language "english"
\score {
\new Staff {
\time 4/4
\clef treble
\relative c''
{
c1
\repeat volta 2 {
c d e f
}
\alternative {
{
g f e d
}
{
g %<-- JUST THIS HERE
}
}
a b c %<-- THE REST HERE
b a g
}
}
}
HTH,
Abraham
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Re-Why-warning-cannot-end-volta-spanner-tp195181.html
Sent from the User mailing list archive at Nabble.com.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user