Aloha.
It was a version mismatch. Thank you for your help.
J.
On 4/20/22 16:45, Ralph Palmer wrote:
On Wed, Apr 20, 2022 at 7:22 PM John Helly <hel...@ucsd.edu> wrote:
Aloha.
I've not used LP for a while but in coming back to it I've been
struggling with repeats and find that this 'preferred syntax' does
not seem to work in that it produces:
Starting lilypond 2.20.0 [test2.ly
<https://urldefense.proofpoint.com/v2/url?u=http-3A__test2.ly&d=DwMFaQ&c=-35OiAkTchMrZOngvJPOeA&r=PkEHshy-yo-lsh6y2cGXQg&m=PIoJenaA0X9n3uky08RHsIPQdkw4OliGYNBNfx8v2MxnBteaLOKFniujOSwv7JsE&s=GCxGZMWv9rvaJWOCDBk8p7vMEBZJN-nh9Rv9BG0hzE4&e=>]...
Processing
`/Volumes/Pegasus32R6/Music-100/Music-Lilypond/Songs/Our-Shangri-La/test2.ly
<https://urldefense.proofpoint.com/v2/url?u=http-3A__test2.ly&d=DwMFaQ&c=-35OiAkTchMrZOngvJPOeA&r=PkEHshy-yo-lsh6y2cGXQg&m=PIoJenaA0X9n3uky08RHsIPQdkw4OliGYNBNfx8v2MxnBteaLOKFniujOSwv7JsE&s=GCxGZMWv9rvaJWOCDBk8p7vMEBZJN-nh9Rv9BG0hzE4&e=>'
Parsing...
/Volumes/Pegasus32R6/Music-100/Music-Lilypond/Songs/Our-Shangri-La/test2.ly:6:10:
error: syntax error, unexpected \alternative
...
\version "2.20.0"
{
\fixed c'' {
\repeat volta 6 {
c4 d e f
\alternative {
\volta 1,2,3 { c2 e }
\volta 4,5 { f2 d }
\volta 6 { e2 f }
} }
c1 }
}
However, the old style of specifying \alternative does seem to
work. Am I doing something wrong here?
Mahalo.
J.-
John Helly, University of California, San Diego / San Diego Supercomputer
Center / Scripps Institution of Oceanography / 760 840 8660 mobile
/http://www.sdsc.edu/~hellyj
ORCID ID:orcid.org/0000-0002-3779-0603
<https://urldefense.proofpoint.com/v2/url?u=http-3A__orcid.org_0000-2D0002-2D3779-2D0603&d=DwMFaQ&c=-35OiAkTchMrZOngvJPOeA&r=PkEHshy-yo-lsh6y2cGXQg&m=PIoJenaA0X9n3uky08RHsIPQdkw4OliGYNBNfx8v2MxnBteaLOKFniujOSwv7JsE&s=qF0wNO_epnsjlBsMqaJK4SWz91fHfazEJahaG7jt4Qg&e=>
Running under 2.23.6, I see no problem. Have you tried anything later
than 2.20.0?
All the best,
Ralph
--
Ralph Palmer
Seattle
USA
(he, him, his)
palmer.r.vio...@gmail.com
--
John Helly, University of California, San Diego / San Diego Supercomputer
Center / Scripps Institution of Oceanography / 760 840 8660 mobile
/http://www.sdsc.edu/~hellyj
ORCID ID: orcid.org/0000-0002-3779-0603