⌂ unfold percent repeats only
If you want to display the same music definition in some situation (e.g. part)
with percent repeats, while in other situations (e.g. score) you want to show
the percent repeats unfolded, here are some functions to handle this.
- \unfoldPercentRepeats unfolds just the percent repeats, no other repeats.
- \taggedPercentRepeat is a function to define full measure percent repeats with some
additionally features:
- The first argument is the number, how often the measure should be repeated.
If this number is greater then two, the repeat counter is automatically enabled.
- The second argument is the music snippet which is to be repeated.
- The third argument is a music snippet again. It should only contain skips of the same length
as the repeated music, and the (optional) dynamics which are valid for the first measure.
This instruction creates a music parallel to the repeat command, which contains the entered
»dynamic measure« followed by line break inhibitors and skips of the same length.
The line break prevention is tagged with the #'% symbol.
- \unfoldPercentRepeatsR removes this line break inhibitors (using »removeWithTag #'%«)
beside unfolding the percent repeats just like the variant without the »R« at the end.