lilypond-user
[Top][All Lists]
Advanced

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

Re: Calculate BarLine 'kern to fit with a given stencil-x-extent


From: Pierre Perol-Schneider
Subject: Re: Calculate BarLine 'kern to fit with a given stencil-x-extent
Date: Thu, 11 Jul 2013 13:34:29 +0200

Hi Harm, Hi Thomas,

Thomas Morley <address@hidden> writes:

> So far as I can observe the calculations isn't exact: with higher or
> lower staff-size values it goes increasingly wrong.
> Did I something wrong while tranforming your calculation into scheme?

Looks fine to me. 

2013/7/10 David Kastrup <address@hidden

I think the above is just a curve fitting, not a model of what LilyPond
actually does.  So it's not surprising it goes wrong for larger/smaller
values.
 
Right.

Well as a first step I wanted to find a correcting parameter but it looks weird.
(see enclosed).
So I think I'm looking into a wrong direction.
Yesterday evening (looking at the beach sunset...)  I was thinking that, thanks to the stability of the Y-height (4.0) maybe we would find more acurated figures of the x-length if calculated after the hypotenuse. 

\version "2.17.21"
#(set-global-staff-size 20)
\paper { 
   ragged-right = ##t 
}

% Better viewing
\layout {
        \override Score.RehearsalMark #'color = #red
        \override Score.RehearsalMark #'layer = #10
        %%%% Y-offset is slightly staff-size related
        \override Score.RehearsalMark #'extra-offset = #'(0 . -4.845)
}

{
        R1
        \mark \markup \draw-line #'(0 . 4)
        \override Staff.BarLine.kern = #1
        \bar "||"
        R1
}

{
        R1
        \mark \markup \draw-line #'(0 . 4)
        \override Staff.BarLine.kern = #2
        \bar "||"
        R1
}

{
        R1
        \mark \markup \draw-line #'(0 . 4)
        \override Staff.BarLine.kern = #10
        \bar "||"
        R1
}

{
        R1
        \mark \markup \draw-line #'(0 . 4)
        \override Staff.BarLine.kern = #20
        \bar "||"
        R1
}

{
        R1
        \mark \markup \draw-line #'(0 . 4)
        \override Staff.BarLine.kern = #50
        \bar "||"
        R1
}

I've started some calculation without real success so far.
So here we are.
Any other idea ?

Attachment: x-length-corr.png
Description: PNG image


reply via email to

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