2017-05-21 22:56 GMT+02:00 Simon Albrecht <[email protected]>:
> Am 21.05.2017 um 22:38 schrieb Thomas Morley:
>
>> It's not always obvious which grob is created by \repeat percent ...
>> RepeatSlash
>> DoubleRepeatSlash
>> PercentRepeat
>> DoublePercentRepeat
>>
>
> But why are those all different grobs? It seems unnecessarily complicated
> – they could all be PercentRepeat grobs (I think PercentRepeat is the most
> intuitive/fitting choice) with the stencil drawing different things,
> couldn’t they?
>
> Best, Simon
>
Well, this decision was made long before I was around here, no clue whether
you may find some reasoning in the archives.
Though, here some illustrating code:
\new Staff {
\override PercentRepeat.color = #red
\override DoublePercentRepeat.color = #yellow
\override RepeatSlash.color = #cyan
\override DoubleRepeatSlash.color = #green
<>^"PercentRepeat, red"
\repeat percent 2 { c'1 }
\break
<>^"DoublePercentRepeat, yellow"
\repeat percent 2 { d'1 e' }
\break
<>^"RepeatSlash, cyan"
\repeat percent 4 { c'16 c' c' c' }
\break
<>^"DoubleRepeatSlash, green"
\repeat percent 4 { c'8. c'16 }
}
If we look closer at the grobs we may guess some thoughts why they are
separated:
PercentRepeat is a spanner (and needs to be one), the others not. Every
grob is an item _or_ a spanner, never both.
(So no chance to merge PercentRepeat with the others.)
DoublePercentRepeat is _not_ a rhythmic grob, and can't be one.
(So no chance to merge DoublePercentRepeat with DoubleRepeatSlash and
RepeatSlash.
Not sure about RepeatSlash and DoubleRepeatSlash, though.
Also, I have no clue why DoubleRepeatSlash supports the
outside-staff-interface, but RepeatSlash not.
Cheers,
Harm
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user