Mark,

The output looks the way I want it as I showed in a previous image attachment. It's just that I am getting that warning, so I thought something is wrong somewhere.

Stan


On 04/10/2017 11:19 PM, Mark Stephen Mrotek wrote:

Stan,

I get the same warning.

What in the output do you want changed?

Mark

*From:*Stan Mulder [mailto:st4588...@earthlink.net]
*Sent:* Monday, April 10, 2017 8:02 PM
*To:* Mark Stephen Mrotek <carsonm...@ca.rr.com>
*Subject:* Re: Volta endings and using \set Score.repeatCommands

Mark & Jacques,

My example was not complete. But if you try this, you still get this warning:

Interpreting music...

warning: already have a volta spanner, ending that one prematurely




\version "2.19.58"

DSalCoda = {
  \once \override Score.RehearsalMark.self-alignment-X = #RIGHT
  \mark \markup "D.S. al Coda"
}

voltaSolos = \markup { "2, 3, 4 . . ." }
\repeat volta 2 {c4 c c c }
\alternative {
  {
    c4 c c c
    \DSalCoda
    \bar "||"
  }
  {
\set Score.repeatCommands = #(list (list 'volta voltaSolos) 'start-repeat)
    c4 c c c
    \bar ":|."
  }
}


So I think I am doing something wrong with the Score.repeateCommands.

Stan

On 04/10/2017 12:24 PM, Mark Stephen Mrotek wrote:

    Jacques,

    When I insert

    \repeat volta 2 {c1}

    Before the \alternative, no error messages appear.

    Mark

    *From:*lilypond-user
    [mailto:lilypond-user-bounces+carsonmark=ca.rr....@gnu.org] *On
    Behalf Of *Jacques Menu Muzhic *Sent:* Monday, April 10, 2017
    12:47 AM *To:* Stan Mulder <st4588...@earthlink.net>
    <mailto:st4588...@earthlink.net> *Cc:* lilypond-user
    <lilypond-user@gnu.org> <mailto:lilypond-user@gnu.org> *Subject:*
    Re: Volta endings and using \set Score.repeatCommands

    Hello Stan,

    Here is what I get with 2.19.55:

    *Starting lilypond 2.19.55 [Untitled]...*

    Processing
    
`/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6m0000gn/T/frescobaldi-9sn6c32v/tmp3a9rlkcp/document.ly
    <http://document.ly>'

    Parsing...

    
/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6m0000gn/T/frescobaldi-9sn6c32v/tmp3a9rlkcp/document.ly:9:3
    <0>: error: syntax error, unexpected \alternative

    \alternative {

    Interpreting music...

    Preprocessing graphical objects...

    Finding the ideal number of pages...

    Fitting music on 1 page...

    Drawing systems...

    programming error: Spanner `VoltaBracket' is not fully contained
    in parent spanner. Ignoring orphaned part

    continuing, cross fingers

    Layout output to
    `/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6m0000gn/T//lilypond-gglOd2'...

    Converting to `document.pdf'...

    Deleting
    `/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6m0000gn/T//lilypond-gglOd2'...

    fatal error: failed files:
    
"/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6m0000gn/T/frescobaldi-9sn6c32v/tmp3a9rlkcp/document.ly
    <http://document.ly>"

    *Exited with return code 1.*

    *Your code lacks something like:*

    \repeat volta 5 { … }

    ahead of \alternative.

        Le 10 avr. 2017 à 03:45, Stan Mulder <st4588...@earthlink.net
        <mailto:st4588...@earthlink.net>> a écrit :

        Hi group.

        I'm trying to construct a certain volta ending where there is
        a first and second ending, but the first ending does a D.S. to
        the sign, while the the second ending is a multiple repeat for
        solos. I seem to have made it render correctly, but I keep
        getting this error. Hopefully this is enough code:

        warning: already have a volta spanner, ending that one prematurely

        [64]

        DSalCoda = {   \once \override
        Score.RehearsalMark.self-alignment-X = #RIGHT \mark \markup
        "D.S. al Coda" }

        voltaSolos = \markup { "2, 3, 4 . . ." }

        \alternative {     {       s1       \DSalCoda       \bar "||"
            }     {       \set Score.repeatCommands = #(list (list
        'volta voltaSolos) 'start-repeat)       s1       \bar ":|."
            }   }

        Stan

        <stan-example.jpg>_______________________________________________
        lilypond-user mailing list lilypond-user@gnu.org
        <mailto:lilypond-user@gnu.org>
        https://lists.gnu.org/mailman/listinfo/lilypond-user


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to