[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Noteheads slightly too large
From: |
tisimst |
Subject: |
Re: Noteheads slightly too large |
Date: |
Tue, 9 Feb 2016 09:00:07 -0700 (MST) |
On Tue, Feb 9, 2016 at 8:49 AM, Paul Morris [via Lilypond] <
address@hidden> wrote:
> > On Feb 9, 2016, at 10:12 AM, tisimst <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=187046&i=0>> wrote:
> >
> > Although microscopic, I can confirm this is true at the font level (at
> > least at the default printed 20pt size, I didn't check the other optical
> > variants). Relative to a 1000-em unit staff height (which is what the
> fonts
> > are designed to, center of bottom staff line to center of top staff
> line),
> > here are the dimensions causing the problem you are seeing:
> >
> > staff-space = 250-em
> > staff line thickness = 25-em (i.e., 0.1 staff-space)
> > solid notehead height = 276-em
> >
> > Now, here's the discrepancy. The distance between the bottom of a staff
> > line to the top of the next staff line up, is 250+25 = 275-em. That
> means
> > that there is an overall difference in size of 1-em unit (at the 20pt
> > printed size, this equates to 1/50pt = 0.00028in = 0.0071mm difference).
> In
> > other words, we are technically splitting hairs with this, but
> nonetheless,
> > it is a difference. The solid notehead is "too large" by 1/100pt on
> either
> > side.
>
> Interesting... Here’s some code for experimenting with this. It scales
> notehead stencils. A scaling of 250/276 should make the solid notes equal
> to one staff-space. (Or should it be 275/276 to make it the "distance
> between the bottom of a staff line to the top of the next staff line up”?)
>
> -Paul
>
>
> \version "2.19.36"
>
> example = \relative {
> c' d e f g a b c
> }
>
> {
> \example
> }
>
> {
> \override NoteHead.stencil =
> #(lambda (grob)
> (ly:stencil-scale
> (ly:note-head::print grob)
> 250/276 250/276))
>
> \example
> }
>
Well, that depends on where you want the top/bottom of the notehead to
touch the staff-lines:
- 275/276 - If you want it to have the same vertical extent as the two
touch staff lines.
- 250/276 - If you want it to touch the centers of the staff lines
- 225/276 - If you wanted them to fit perfectly withing the staff lines
HTH,
Abraham
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Noteheads-slightly-too-large-tp184659p187048.html
Sent from the Bugs mailing list archive at Nabble.com.
- Re: Noteheads slightly too large, Pierre Perol-Schneider, 2016/02/08
- Re: Noteheads slightly too large, Gilberto Agostinho, 2016/02/09
- Re: Noteheads slightly too large, Urs Liska, 2016/02/09
- Re: Noteheads slightly too large, tisimst, 2016/02/09
- Re: Noteheads slightly too large, Paul Morris, 2016/02/09
- Re: Noteheads slightly too large, Gilberto Agostinho, 2016/02/09
- Re: Noteheads slightly too large,
tisimst <=
- Re: Noteheads slightly too large, Pierre Perol-Schneider, 2016/02/09
- Re: Noteheads slightly too large, Pierre Perol-Schneider, 2016/02/09
- Re: Noteheads slightly too large, Paul Morris, 2016/02/10
- Re: Noteheads slightly too large, Pierre Perol-Schneider, 2016/02/10
- Re: Noteheads slightly too large, Paul Morris, 2016/02/14
- Re: Noteheads slightly too large, Andrew Bernard, 2016/02/09
- Re: Noteheads slightly too large, tisimst, 2016/02/10
- Re: Noteheads slightly too large, Werner LEMBERG, 2016/02/10
- Re: Noteheads slightly too large, Andrew Bernard, 2016/02/10
- Re: Noteheads slightly too large, tisimst, 2016/02/10