Your first assessment solved the problem...it was all in how I looked at
what I was trying to accomplish.  The example in the wiki/docs implied that
I needed the \volta statements, and that the first alternate was where the
bulk of the song was supposed to be.

Thanks, Valentin!

On Mon, Jan 16, 2023 at 7:42 AM Valentin Petzel <[email protected]> wrote:

> Hello Jeff,
>
> If I were to reduce what you are doing we’d have something like this
>
> \relative c'' {
>   R1*4 \bar "||"
>   \repeat segno 2 {
>     \alternative {
>       { R1*4 }
>       {
>         \section
>         \sectionLabel "Coda"
>       }
>     }
>   }
>
>   % Coda
>   R1*4
> }
>
> So you are basically telling Lilypond: After some measures we have a
> segno,
> then the first time we play this part, then we jump back to the segno, but
> skipt the whole repeat part and  directly jump to the coda, which Lilypond
> correctly indicates by putting a volta bracket over the whole thing
> (actually
> you are almost asking for the volta bracket by manually specifying \volta
> 1).
> I suppose what you actually want to say is:
>
> After some measures we have a segno, then we have the repeat part, at the
> end
> we jump back to segno, repeat the repeat part and then jump to coda, which
> would be done like this:
>
> \relative c'' {
>   R1*4 \bar "||"
>   \repeat segno 2 {
>     R1*4
>     \alternative {
>       { }
>       {
>         \section
>         \sectionLabel "Coda"
>         % Coda
>         R1*4
>       }
>     }
>   }
> }
>
> Alternatively if you want to have: After some measures put a segno, play
> the
> repeat part, jump back to segno, play only part of the repeat part and
> jump to
> coda you’d do:
>
> \relative c'' {
>   R1*4 \bar "||"
>   \repeat segno 2 {
>     R1*2
>     \alternative {
>       { R1*2 }
>       {
>         \section
>         \sectionLabel "Coda"
>         % Coda
>         R1*4
>       }
>     }
>   }
> }
>
> The marks used for the segnos and codas and dal segnos and poi la codas
> and
> stuff can be set to whatever you want.
>
> Cheers,
> Valentin
>
> Am Montag, 16. Jänner 2023, 07:50:04 CET schrieb Jeff Kopmanis:
> > I'm using lilypond 2.24.0, and am having a problem that I can't identify
> > with a \repeat segno structure.  I've enclosed the .ly and .pdf files.
> It
> > compiles cleanly, and displays mostly correct, but there's a curious "1st
> > ending" (a volta spanner?) that appears, and I can't figure out where
> it's
> > coming from.  I've run the \repeat segno sample code from the docs and it
> > doesn't behave this way, but with my score, it does it without fail.
> I've
> > attached the resultant PDF to illustrate this 1st ending that lasts until
> > the coda.  I found the example big band score code online and it seemed
> > pretty straight-forward, and without the \repeat segno structures, it
> works
> > fine, so there's some option that's defaulting, or something extra that's
> > missing to produce this odd behavior.
> >
> > I'm at a loss at what's causing this.   Help!
> >
> > -Jeff. :)
>
>

-- 
*Jeff Kopmanis*
Medium: https://kopmanis.medium.com
GLAAC: https://www.glaac.org/
University Lowbrow Astronomers: http://umich.edu/~lowbrows
Orange Can Astronomy: https://www.facebook.com/orangecanastronomy/

** Go Green and leave this email on the Screen! **

Reply via email to