lilypond-user
[Top][All Lists]
Advanced

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

Re: alternative within repeat does not work


From: Jean Abou Samra
Subject: Re: alternative within repeat does not work
Date: Sun, 21 Aug 2022 23:01:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0

Le 21/08/2022 à 22:59, Jean Abou Samra a écrit :


Le 21/08/2022 à 22:57, Jim Cline a écrit :
Hello, I would like to have an alternative within a repeat block, as described in the documentation, https://lilypond.org/doc/v2.23/Documentation/notation/long-repeats#other-variation-in-repeated-sections under "Other variation in repeated sections".  I don't need to work hard to create a minimal (not)working example, since the one given right there in the documentation gives me the same errors as in my full score:

\version "2.20.0"
\fixed c'' {
  \repeat volta 2 {
    R1
    \alternative {
      \volta 1 { c1 }
      \volta 2 { d1 }
    }
    R1
  }
}

The errors are:

error: syntax error, unexpected \alternative
    \alternative {
error: not a note name: volta
      volta 1 { c1 }
error: not a note name: volta
      volta 2 { d1 }
error: errors found, ignoring music expression
\fixed c'' {
fatal error: failed files: "/tmp/frescobaldi-w92qas0f/tmpfkzkv4p5/document.ly"

regards, Jim


You are using 2.23 syntax from the 2.23 documentation, but apparently using an older version of LilyPond. To get the corresponding 2.22 documentation, change "v2.23" to "v2.22" in the URL.



Sorry, not to "v2.22", but to "v2.20", since you have \version "2.20.0" in your example.

It would be a good idea to upgrade to 2.22 though. That is the latest stable version.





reply via email to

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