Re: Problem with Repeats and Alternatives

2022-04-21 Thread John Helly

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

]...

Processing
`/Volumes/Pegasus32R6/Music-100/Music-Lilypond/Songs/Our-Shangri-La/test2.ly

'

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/-0002-3779-0603  



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/-0002-3779-0603


Re: Problem with Repeats and Alternatives

2022-04-21 Thread John Helly

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

]...

Processing
`/Volumes/Pegasus32R6/Music-100/Music-Lilypond/Songs/Our-Shangri-La/test2.ly

'

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 



--
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/-0002-3779-0603


Re: Problem with Repeats and Alternatives

2022-04-21 Thread John Helly

Good point.  I am duly reprimanded.
J.

On 4/21/22 01:01, David Kastrup wrote:

John Helly  writes:


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

Try matching the version of the documentation you consult with the
version of LilyPond you run.



--
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/-0002-3779-0603




Re: Problem with Repeats and Alternatives

2022-04-21 Thread Wols Lists

On 21/04/2022 12:01, David Kastrup wrote:

John Helly  writes:


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


Try matching the version of the documentation you consult with the
version of LilyPond you run.

And please don't hijack someone else's thread for a new subject. Start a 
new email from scratch ...


Cheers,
Wol



Re: Problem with Repeats and Alternatives

2022-04-21 Thread David Kastrup
John Helly  writes:

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

Try matching the version of the documentation you consult with the
version of LilyPond you run.

-- 
David Kastrup



Re: Problem with Repeats and Alternatives

2022-04-20 Thread Carl Sorensen
On Wed, Apr 20, 2022 at 8:21 PM John Helly  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]...
>
> Processing
> `/Volumes/Pegasus32R6/Music-100/Music-Lilypond/Songs/Our-Shangri-La/
> test2.ly'
>
> 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


Re: Problem with Repeats and Alternatives

2022-04-20 Thread Ralph Palmer
On Wed, Apr 20, 2022 at 7:22 PM John Helly  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]...
>
> Processing
> `/Volumes/Pegasus32R6/Music-100/Music-Lilypond/Songs/Our-Shangri-La/
> test2.ly'
>
> 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/-0002-3779-0603
>
>
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


Problem with Repeats and Alternatives

2022-04-20 Thread John Helly

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

Processing 
`/Volumes/Pegasus32R6/Music-100/Music-Lilypond/Songs/Our-Shangri-La/test2.ly'


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/-0002-3779-0603