On Wed, 18 Jul 2012 13:56:09 -0700, Thomas Morley 
<[email protected]> wrote:

But reading out x- and y-length of the NoteHead-stencil, and comparing
their quotient with the quotient build from the values I got via
'stem-attachment, different results are returned.

x-length 1.316178
y-length 1.100012
[stem-attachment]  (1.0 . 0.341476274804275)

The stem attaches at 1.0 times the width of the head, 0.34 times the height,
so for the default note-head it attaches at (1.32 staff-space, 0.37 staff-space)
... or possibly the origin is in the middle of the head, so stem might attache
at half what I figured, (0.66 0.18) relative to the center.

When you make a bigger stencil by putting a box around, it will be about
2.0 high and 2.0 wide, so the desired stem-attachment will be around (0.50, 
0.17)

Maybe you can figure the new stem-attachment coordinates based on the new height
and width, but it looks easier to choose them by hand, as part of designing a
new note-head.


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

Reply via email to