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, 4 Jul 2013 09:37:17 +0200

2013/7/4 Thomas Morley <address@hidden>

I made a typo. Last line above should read:
   a line with x-length 20 leads to a 'kern of 173


As you'll see, I've kept 29 as x-length because it speaks more to me. 

 
Setting
#(set-global-staff-size 16)
will show proper output with my values, bad with yours.

Right, but still my values are slightly different.
Here's some tests with different staff sizes :

% #(set-global-staff-size 16)
%% a line with x-length  1 leads to a 'kern of  8.6
%% a line with x-length  2 leads to a 'kern of  17.2
%% a line with x-length 10 leads to a 'kern of  86
%% a line with x-length 29 leads to a 'kern of  249.4

%% #(set-global-staff-size 17)
%% a line with x-length  1 leads to a 'kern of  9.0
%% a line with x-length  2 leads to a 'kern of  17.9
%% a line with x-length 10 leads to a 'kern of  89.6
%% a line with x-length 29 leads to a 'kern of  259.8

%% #(set-global-staff-size 18)
%% a line with x-length  1 leads to a 'kern of  9.3
%% a line with x-length  2 leads to a 'kern of  18.6
%% a line with x-length 10 leads to a 'kern of  93.2
%% a line with x-length 29 leads to a 'kern of  270.4

%% #(set-global-staff-size 19)
%% a line with x-length  1 leads to a 'kern of  9.7
%% a line with x-length  2 leads to a 'kern of  19.3
%% a line with x-length 10 leads to a 'kern of  99.7
%% a line with x-length 29 leads to a 'kern of  280.4

%% #(set-global-staff-size 20)
%% a line with x-length  1 leads to a 'kern of  10
%% a line with x-length  2 leads to a 'kern of  20
%% a line with x-length 10 leads to a 'kern of  100
%% a line with x-length 29 leads to a 'kern of  290

%% #(set-global-staff-size 21)
%% a line with x-length  1 leads to a 'kern of  10.3
%% a line with x-length  2 leads to a 'kern of  20.7
%% a line with x-length 10 leads to a 'kern of  103.3
%% a line with x-length 29 leads to a 'kern of  299.5

%% #(set-global-staff-size 22)
%% a line with x-length  1 leads to a 'kern of  10.6
%% a line with x-length  2 leads to a 'kern of  21.3
%% a line with x-length 10 leads to a 'kern of  106.4
%% a line with x-length 29 leads to a 'kern of  308.5

Enclosed are the correspondant curves.
As you can see, they look pretty linear.
Hope it helps.
Pierre

Attachment: x-leng-kern.png
Description: PNG image


reply via email to

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