lilypond-user
[Top][All Lists]
Advanced

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

Re: repeat percent footnote


From: Thomas Morley
Subject: Re: repeat percent footnote
Date: Mon, 22 May 2017 00:17:32 +0200


2017-05-21 22:56 GMT+02:00 Simon Albrecht <address@hidden>:
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



reply via email to

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