lilypond-user
[Top][All Lists]
Advanced

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

Re: Volta endings and using \set Score.repeatCommands


From: Stan Mulder
Subject: Re: Volta endings and using \set Score.repeatCommands
Date: Mon, 10 Apr 2017 23:03:49 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

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:address@hidden] On Behalf Of Jacques Menu Muzhic Sent: Monday, April 10, 2017 12:47 AM To: Stan Mulder <address@hidden> Cc: lilypond-user <address@hidden> 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'

Parsing...

\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"

Exited with return code 1.

 

Your code lacks something like:

 

\repeat volta 5 { … }

 

ahead of \alternative.

 

Le 10 avr. 2017 à 03:45, Stan Mulder <address@hidden> 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 address@hidden https://lists.gnu.org/mailman/listinfo/lilypond-user

 



reply via email to

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