lilypond-user
[Top][All Lists]
Advanced

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

Re: Split percent repeats at line breaks


From: antlists
Subject: Re: Split percent repeats at line breaks
Date: Sun, 1 Mar 2020 20:23:32 +0000
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0

On 29/02/2020 13:10, Davide Liessi wrote:
Hi all.
I'd like to have percent repeats automatically split at line breaks,
i.e., in the following example I'd like the first score to look like
the second.

\version "2.19.84"
\score {
   \repeat percent 30 { c'1 }
}
\score {
   {
     \repeat percent 14 { c'1 }
     \repeat percent 16 { c'1 }
   }
}

I think that this should typically also reset the percent repeat
counter, effectively behaving as if they were distinct percent
repeats, but being able to choose whether to reset it or not would be
nice.

Is there a way to achieve this?

I think your first requirement is the norm for human engraving, certainly I've never come across any music outside of lilypond where a staff has a percent as its first bar. Equally, I've never seen it reset the count - that just carries on. What I have seen is where the count only starts at eg bar 5.

I don't know enough about lilypond internals, but I guess the big problem is that if the line-breaking calculation actually affects the size of the bar (changing the first bar of a line from a percent to a copy of bar 1 of the repeat), then the calculation itself could get into quite a tangle.

Cheers,

Wol




reply via email to

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