lilypond-user
[Top][All Lists]
Advanced

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

Re: Repeat Segno with MIDI


From: Jean Abou Samra
Subject: Re: Repeat Segno with MIDI
Date: Sun, 22 Jan 2023 21:17:17 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0

Le 22/01/2023 à 21:05, Mark Mathias a écrit :
I'm not seeing a post from anyone else exactly on this issue, so...

I like the new repeat structure:
https://lilypond.org/doc/v2.24/Documentation/notation/long-repeats#segno-repeat-structure

The example works with the whole note after volta 1, but if you add more notes, change the rhythm, etc., the pdf doesn't display properly and MIDI generates a warning and doesn't execute the repeat properly. If you put curly brackets around the volta 1 section the problem disappears.

Is this a bug, or am I missing something (as usual).



To explain it by analogy, it's as if you had written

{
  \transpose c' d'
  a b c' d' e' f' g'
}

and expected \transpose to transpose everything after it.
That's not how it works. Unlike things like \clef and \time,
commands like \transpose, \repeat and \volta apply to
a music argument, so you need to write

{
  \transpose c' d' {
    a b c' d' e' f' g'
  }
}


If you don't put the braces in

\volta 1 a4 a a a

it's as if you had written


\volta 1 {
  a4
}
a a a


The notes after the first one are not included in the argument
to \volta, and thus not part of the volta, which makes LilyPond
legitimately confused.

Regards,
Jean

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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