lilypond-user
[Top][All Lists]
Advanced

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

Re: Bar number position and text (especially for anacruses)


From: Torsten Hämmerle
Subject: Re: Bar number position and text (especially for anacruses)
Date: Tue, 26 Jun 2018 11:58:11 -0700 (MST)

Stephen Cummings wrote
> Anyone with suggestions for points 1 and 2?
> 
> 
> 
> Stephen Cummings wrote on 6/23/2018 8:07 AM:
>  >
>   1. Vertical alignment/positioning of  bar numbers. In the output the 
> parenthetical bar number for the anacrusis is higher than the remaining 
> bar numbers.


Hi Stephen,

Unfortunately (and surprisingly), bar numbers ignore descenders, it's rather
like putting a tightly fitting box around and placing this box on the
baseline. That way, there are no descenders (the parentheses should descend
below the baseline and the "p" in "pickup" should, too).

Normally, the figures used for bar numbers don't have descenders and this
does not matter much, but, as soon as we use parentheses or letters with
descenders, the vertical spacing starts looking uneven.

A quick and dirty way out is to set suitable Y-extents, as in

      \override BarNumber.Y-extent = #'(0 . 1.6)

to make LilyPond think there were no descenders. 
The following image illustrates how the default bar numbers never descend
below an imaginary line (shown in red).
Below, the Y-extent override makes everything sit on the baseline as
expected.

<http://lilypond.1069038.n5.nabble.com/file/t3887/barnumber-baseline.png> 

All the best,
Torsten





--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



reply via email to

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