Skip to content

Support tail \alternative inside \repeat { }

Dan Eble requested to merge dev/eble/tail-alts into master
  1. Remove alternative-increment music property

Instead of computing the length of the volta-numbers property and sending it in the alternative-increment property, just send the volta-numbers property and let the receiver compute the length.

  1. Support tail \alternative inside \repeat { }

These now yield the same result:

\repeat volta \n { \foo \alternative { ... } }
\repeat volta \n { \foo } \alternative { ... }

Repeat_styler announces the boundaries of repeated sections on behalf of the iterators of \repeat and \alternative music.

Each instance of Volta_repeat_iterator creates an instance of Repeat_styler, and each instance of Alternative_sequence_iterator uses the styler of its enclosing repeat.

Aspects of Repeat_styler may seem to be overkill because this MR was split out of a larger set of changes to support \repeat segno with a Segno_repeat_styler subclass.

Merge request reports