lilypond-user
[Top][All Lists]
Advanced

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

Re: Alternative beginnings


From: Jean Abou Samra
Subject: Re: Alternative beginnings
Date: Sat, 01 Apr 2023 18:22:10 +0200
User-agent: Evolution 3.46.4 (3.46.4-1.fc37)

Le samedi 01 avril 2023 à 12:05 -0400, John Burt a écrit :

I know how to use \repeat volta to produce alternative endings. I'm trying to set a song in which the music for verses 2 and 3 is different from the music for verse 1. Is there something like
\repeat volta for alternative beginnings? 

Since version 2.24, \alternative is not limited to the end of a repeat. You can use

\version "2.24.1"

{
  \repeat volta 2 {
    \alternative {
      \volta 1 {
        c'1
      }
      \volta 2 {
        d'1
      }
    }
    e'1
  }
}

Note that the legacy syntax \repeat volta x { ... } \alternative { ... } is not encouraged anymore, the syntax \repeat volta x { ... \alternative { ... } } is preferred now.

Best,

Jean

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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