Mahalo.

It was version mismatch.  Thanks for your response.

J.

On 4/20/22 16:54, Carl Sorensen wrote:


On Wed, Apr 20, 2022 at 8:21 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=8C-FPlxVFcrQXDBYjUKvBSjsuiPIXpZrw3hsryMS7hpdsm4HpLp-RyCnLWBapLQc&s=dAZ9h4NyUlqkrB33M2zPv-2IXc0AB3vYXo3ZumU1z_k&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=8C-FPlxVFcrQXDBYjUKvBSjsuiPIXpZrw3hsryMS7hpdsm4HpLp-RyCnLWBapLQc&s=dAZ9h4NyUlqkrB33M2zPv-2IXc0AB3vYXo3ZumU1z_k&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 }
    }


The error messages indicate that \volta is an "unknown escaped string", so it's not correct.

I think you misunderstand how volta labeling works in 2.20.  Here's code that works for me[1]:

\version "2.20.0"
{
\fixed c'' {
       \repeat volta 6 {
         c4 d e f}
         \alternative {
          { \set Score.repeatCommands = #'((volta "1. 2. 3.")) c2 e  }
          {  \set Score.repeatCommands = #'((volta #f) (volta "4. 5.") end-repeat) f2 d }
           { e2 f }
         }
c1 }
}


HTH,

Carl
1. https://lilypond.org/doc/v2.20/Documentation/notation/long-repeats#manual-repeat-marks <https://urldefense.proofpoint.com/v2/url?u=https-3A__lilypond.org_doc_v2.20_Documentation_notation_long-2Drepeats-23manual-2Drepeat-2Dmarks&d=DwMFaQ&c=-35OiAkTchMrZOngvJPOeA&r=PkEHshy-yo-lsh6y2cGXQg&m=8C-FPlxVFcrQXDBYjUKvBSjsuiPIXpZrw3hsryMS7hpdsm4HpLp-RyCnLWBapLQc&s=62rZ84Krnfqqhv4nPQWvbgHZom3M-siWArn5T1Tqwec&e=>

--
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

Reply via email to