Menu

#3038 Add countUnfoldRepeats feature to new Measure_counter_engraver

Accepted
nobody
None
Enhancement
2018-12-28
2012-12-17
Anonymous
No

Originally created by: *anonymous

Originally created by: colingh...@gmail.com

Xavier Scheuer sent in a feature request here:

http://lists.gnu.org/archive/html/bug-lilypond/2012-12/msg00104.html

as follows:

Hi,

Now that "Measure_counter_engraver" has been implemented into LilyPond
people can add a measure counter (great, thanks).
But unfortunately people have to start it and stop it _manually_,
using \startMeasureCount and \stopMeasureCount.

Could we add a feature to have an _automatic_ measure counter for
unfold repeats?

Something like "countPercentRepeats" but for unfold repeats, that could
be named "countUnfoldRepeats".

With a "countUnfoldRepeats" property, "UnfoldRepeatCounter" object
and "Unfold_repeat_engraver".

I do not know if "repeatCountVisibility" property should be divided
into "percentRepeatCountVisibility" and "unfoldRepeatCountVisibility"
or if they could both share "repeatCountVisibility".

%%%% Example of how it would work
\relative c'' {
  \set countUnfoldRepeats = ##t
  \repeat unfold 4 { c1 }
}
%%%% End of example

Thank you in advance.

Cheers,
Xavier

--
Xavier Scheuer <address@hidden>

Discussion

  • Valentin Villenave

    Greetings,
    I think this is more or less what Simon’s issue #5031 requests as well. This one’s older, but #5031 has a nice syntax proposal IMO. One of the two should be closed as duplicate, anyway.

     
    • Simon Albrecht

      Simon Albrecht - 2018-12-28

      This issue talks about \repeat unfold, while #5031 talks about \repeat volta. I don’t think there’s any relation between the two.

       
      • Valentin Villenave

        Oh, indeed. I was so fixated on volta that I completely missed that part. Sorry for the noise.