PecentRepeat with small 'slope causes collisions

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

PecentRepeat with small 'slope causes collisions

Thomas Morley-2
Hi,

the following code gives bad output (collisions) for PecentRepeat with
small 'slope

\repeat percent 2 { c'4 d' e' f' \override PercentRepeat #'slope = #0.2 }

This happens in all tested versions from 2.19.60 back to 2.12.3


My first thought was the stencil extents are not calculated correctly
though the code below seems to proof this wrong:

boxPercentRepeat =
  \once \override PercentRepeat #'after-line-breaking =
    #(lambda (grob)
      (ly:grob-set-property! grob 'stencil
        (stencil-with-color
          (box-stencil
            (ly:grob-property grob 'stencil)
            0.2 0.5)
          red)
          ))

slopePercentRepeat =
  \once \override PercentRepeat #'slope = #0.2

\repeat percent 2 {
  c'4 d' e' f'
  \boxPercentRepeat
  \slopePercentRepeat
}

An image of this is attached.

Cheers,
  Harm

_______________________________________________
bug-lilypond mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-lilypond

atest-56-percent-repeat-collision.png (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: PecentRepeat with small 'slope causes collisions

Colin Campbell-8
On 2017-05-07 07:26 AM, Thomas Morley wrote:

> Hi,
>
> the following code gives bad output (collisions) for PecentRepeat with
> small 'slope
>
> \repeat percent 2 { c'4 d' e' f' \override PercentRepeat #'slope = #0.2 }
>
> This happens in all tested versions from 2.19.60 back to 2.12.3
>
>
> My first thought was the stencil extents are not calculated correctly
> though the code below seems to proof this wrong:
>
> boxPercentRepeat =
>    \once \override PercentRepeat #'after-line-breaking =
>      #(lambda (grob)
>        (ly:grob-set-property! grob 'stencil
>          (stencil-with-color
>            (box-stencil
>              (ly:grob-property grob 'stencil)
>              0.2 0.5)
>            red)
>            ))
>
> slopePercentRepeat =
>    \once \override PercentRepeat #'slope = #0.2
>
> \repeat percent 2 {
>    c'4 d' e' f'
>    \boxPercentRepeat
>    \slopePercentRepeat
> }
>
> An image of this is attached.
>
> Cheers,
>    Harm
>
>
> _______________________________________________
> bug-lilypond mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/bug-lilypond
Created https://sourceforge.net/p/testlilyissues/issues/5135/

It may be that issue #3962
<https://sourceforge.net/p/testlilyissues/issues/3962/> is in some way
related, or I could be just poking beehives with a stick.

Cheers,
Colin


--
It is impossible to imagine Goethe or Beethoven being good at billiards
or golf.
- H.L. Mencken, writer, editor, and critic (1880-1956)

_______________________________________________
bug-lilypond mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-lilypond
Loading...