lilypond-user
[Top][All Lists]
Advanced

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

Re: Why warning: cannot end volta spanner?


From: tisimst
Subject: Re: Why warning: cannot end volta spanner?
Date: Thu, 6 Oct 2016 08:29:18 -0700 (MST)

Peter,

On Thu, Oct 6, 2016 at 9:21 AM, Peter Toye [via Lilypond] <[hidden email]> 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: Re: Why warning: cannot end volta spanner?
Sent from the User mailing list archive at Nabble.com.

reply via email to

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