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: Jim Cline
Subject: Re: alternative within repeat does not work
Date: Sun, 21 Aug 2022 17:08:53 -0400 (EDT)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)

Hi Jean,
thanks for pointing that out. It looks like the functionality I need does not exist in the previous versions of lilypond. And Ubuntu still only provides 2.20. Hopefully I can build 2.22 by hand. best, Jim


On Sun, 21 Aug 2022, Jean Abou Samra wrote:

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]