bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing volta number text


From: Jean Abou Samra
Subject: Re: Changing volta number text
Date: Tue, 18 May 2021 22:11:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1


Le 18/05/2021 à 21:57, Carl Sorensen a écrit :

On 5/18/21, 1:46 PM, "lilypond-user on behalf of Kieren MacMillan" 
<lilypond-user-bounces+carl.d.sorensen=gmail.com@gnu.org on behalf of 
kieren_macmillan@sympatico.ca> wrote:

     Hi Ralph,
> I have to admit, after learning from you that the documentation is accurate, and spending some time examining the various examples in the documentation, I think I could achieve what I want. It takes some real effort, and I think it would be difficult for someone who has little experience with LilyPond. And isn't that the point of the documentation? Absolutely. My comment was meant as a [gentle] criticism of the documentation, not of you or other users. Even if it explicitly pointed out that one needs to *not use* the \repeat volta command, that would be [more] helpful! > I think it would be helpful to include an appropriate example in the manual repeat marks section of the documentation. Given that the combination of the first three examples at <https://lilypond.org/doc/v2.21/Documentation/notation/long-repeats#manual-repeat-marks> is sufficient to solve your example, and the fourth example is almost exactly what you needed, what would a more appropriate example look like? Would that be in addition to the existing examples, or as a replacement to one of them? The sheer size of the Lilypond docs is already pretty overwhelming; just adding more examples won’t necessarily make it easier for users. > I guess I'll make a note of the solution! Some syntactic sugar might be nice… I could imagine a function that took a list of string+moment pairs and “unfolded” a volta automagically. If my life ever calms down, maybe I’ll give that a try.

It seems to me that, for right now, Aaron's changeVoltaText function is the 
preferred way to do it, as it preserves the \unfoldRepeats behavior (albeit 
with warnings).

I'd be in favor of Aaron's snippet being added to the Docs.

Carl

It is worth noting that the \volta command added by Dan Eble in the 2.23 development series does exactly the job requested here, if I understood correctly.

\version "2.23.2"

\language english

{
  \time 3/4
  \repeat volta 4
  {
    a'4 b' c' |
    b'4 c' d' |
  }
  \alternative {
    \volta 1,3 {
      e'4 f' g' |
    }
    \volta 2 {
      d'4 c' b' |
    }
    \volta 4 {
      g'4 a' b' |
    }
  }
  c'2.
}

Updated documentation is here:

http://lilypond.org/doc/v2.23/Documentation/notation/long-repeats.html#alternative-endings

Best,
Jean




reply via email to

[Prev in Thread] Current Thread [Next in Thread]