[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Problem with Repeats and Alternatives
From:       John Helly <hellyj () ucsd ! edu>
Date:       2022-04-21 19:39:00
Message-ID: 001eb0c1-85ca-a86e-6da8-8ae7013b0d3a () ucsd ! edu
[Download RAW message or body]

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 <hellyj@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=-35OiAkTchM \
> rZOngvJPOeA&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=-35OiAkTchM \
> rZOngvJPOeA&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-2D \
> 0603&d=DwMFaQ&c=-35OiAkTchMrZOngvJPOeA&r=PkEHshy-yo-lsh6y2cGXQg&m=PIoJenaA0X9n3uky08 \
> RHsIPQdkw4OliGYNBNfx8v2MxnBteaLOKFniujOSwv7JsE&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.violin@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


[Attachment #3 (text/html)]

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Aloha.<br>
    <br>
    It was a version mismatch.  Thank you for your help.<br>
    <br>
    J.<br>
    <br>
    <div class="moz-cite-prefix">On 4/20/22 16:45, Ralph Palmer wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAL0tT4u1J79j7YSWD0HHVZC7jfF27CiKDj6jvSLV+PRRh5h9KQ@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Wed, Apr 20, 2022 at 7:22
            PM John Helly &lt;<a href="mailto:hellyj@ucsd.edu"
              moz-do-not-send="true" \
class="moz-txt-link-freetext">hellyj@ucsd.edu</a>&gt;  wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div> <font face="Courier New, Courier, monospace">Aloha.<br>
                <br>
                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:<br>
              </font><br>
              <font face="Courier New, Courier, monospace"> </font>
              <p style="margin:0px;text-indent:0px"><span
                  style="font-family:&quot;monospace&quot;;font-size:14pt;font-weight:600">Starting
  lilypond 2.20.0 [<a
href="https://urldefense.proofpoint.com/v2/url?u=http-3A__test2.ly&amp;d=DwMFaQ&amp;c= \
-35OiAkTchMrZOngvJPOeA&amp;r=PkEHshy-yo-lsh6y2cGXQg&amp;m=PIoJenaA0X9n3uky08RHsIPQdkw4 \
OliGYNBNfx8v2MxnBteaLOKFniujOSwv7JsE&amp;s=GCxGZMWv9rvaJWOCDBk8p7vMEBZJN-nh9Rv9BG0hzE4&amp;e="
                
                    target="_blank" \
moz-do-not-send="true">test2.ly</a>]...</span></p>  <p \
                style="margin:0px;text-indent:0px"><span
                  style="font-family:&quot;monospace&quot;;font-size:14pt">Processing
`/Volumes/Pegasus32R6/Music-100/Music-Lilypond/Songs/Our-Shangri-La/<a
href="https://urldefense.proofpoint.com/v2/url?u=http-3A__test2.ly&amp;d=DwMFaQ&amp;c= \
-35OiAkTchMrZOngvJPOeA&amp;r=PkEHshy-yo-lsh6y2cGXQg&amp;m=PIoJenaA0X9n3uky08RHsIPQdkw4 \
OliGYNBNfx8v2MxnBteaLOKFniujOSwv7JsE&amp;s=GCxGZMWv9rvaJWOCDBk8p7vMEBZJN-nh9Rv9BG0hzE4&amp;e="
                
                    target="_blank" moz-do-not-send="true">test2.ly</a>'</span></p>
              <p style="margin:0px;text-indent:0px"><span
                  style="font-family:&quot;monospace&quot;;font-size:14pt">Parsing...</span></p>
  <p style="margin:0px;text-indent:0px"><a
                  moz-do-not-send="true"><span
                    style="font-family:&quot;monospace&quot;;font-size:14pt">/Volumes/ \
Pegasus32R6/Music-100/Music-Lilypond/Songs/Our-Shangri-La/test2.ly:6:10</span></a><span
 style="font-family:&quot;monospace&quot;;font-size:14pt">: error: syntax
                  error, unexpected \alternative</span></p>
              <font face="Courier New, Courier, monospace"> <br>
                ...<br>
                <br>
                \version "2.20.0"<br>
                {<br>
                \fixed c'' {<br>
                       \repeat volta 6 {<br>
                         c4 d e f<br>
                         \alternative {<br>
                           \volta 1,2,3 { c2 e }<br>
                           \volta 4,5 { f2 d }<br>
                           \volta 6 { e2 f }<br>
                } }<br>
                c1 }<br>
                }<br>
                <br>
                However, the old style of specifying \alternative does
                seem to work. Am I doing something wrong here?<br>
                <br>
                Mahalo.<br>
                J.</font>-
              <pre cols="72">John Helly, University of California, San Diego / San \
Diego Supercomputer Center / Scripps Institution of Oceanography / 760 840 8660 \
mobile / <a href="http://www.sdsc.edu/~hellyj" target="_blank" moz-do-not-send="true" \
class="moz-txt-link-freetext">http://www.sdsc.edu/~hellyj</a> ORCID ID: <a \
href="https://urldefense.proofpoint.com/v2/url?u=http-3A__orcid.org_0000-2D0002-2D3779 \
-2D0603&amp;d=DwMFaQ&amp;c=-35OiAkTchMrZOngvJPOeA&amp;r=PkEHshy-yo-lsh6y2cGXQg&amp;m=P \
IoJenaA0X9n3uky08RHsIPQdkw4OliGYNBNfx8v2MxnBteaLOKFniujOSwv7JsE&amp;s=qF0wNO_epnsjlBsMqaJK4SWz91fHfazEJahaG7jt4Qg&amp;e=" \
target="_blank" moz-do-not-send="true">orcid.org/0000-0002-3779-0603</a></pre>  \
</div>  </blockquote>
          <div><br>
          </div>
          <div style="font-family:arial,sans-serif;font-size:small"
            class="gmail_default">Running under 2.23.6, I see no
            problem. Have you tried anything later than 2.20.0?</div>
          <div style="font-family:arial,sans-serif;font-size:small"
            class="gmail_default"><br>
          </div>
          <div style="font-family:arial,sans-serif;font-size:small"
            class="gmail_default">All the best,<br>
          </div>
          <div style="font-family:arial,sans-serif;font-size:small"
            class="gmail_default"><br>
          </div>
          <div style="font-family:arial,sans-serif;font-size:small"
            class="gmail_default">Ralph<br clear="all">
          </div>
        </div>
        <br>
        -- <br>
        <div dir="ltr" class="gmail_signature">
          <div dir="ltr">
            <div><font size="2">Ralph Palmer</font></div>
            <div><font size="2">Seattle</font></div>
            <div><font size="2">USA</font></div>
            <div><font size="2">(he, him, his)<br>
              </font></div>
            <div><font size="2"><a
                  href="mailto:palmer.r.violin@gmail.com"
                  target="_blank" moz-do-not-send="true"
                  class="moz-txt-link-freetext">palmer.r.violin@gmail.com</a></font></div>
  </div>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
John Helly, University of California, San Diego / San Diego Supercomputer Center / \
Scripps Institution of Oceanography / 760 840 8660 mobile / <a \
class="moz-txt-link-freetext" \
href="http://www.sdsc.edu/~hellyj">http://www.sdsc.edu/~hellyj</a> ORCID ID: \
orcid.org/0000-0002-3779-0603</pre>  </body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic