bug-lilypond
[Top][All Lists]
Advanced

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

Re: Noteheads slightly too large


From: Pierre Perol-Schneider
Subject: Re: Noteheads slightly too large
Date: Wed, 10 Feb 2016 10:08:13 +0100

Hi Paul,

Finally, after all types of trials, using 'stencil-scale is definitely the
best workaround to reach an acceptable note head output:

#(set-global-staff-size 180)  %% <= below scales and offsets were set at
#(set-global-staff-size 300) and controlled at zoom #2000
#(set-default-paper-size "a4" 'landscape)

\layout {
  indent = 0
  \context {
    \Staff
    \omit Clef
    \omit TimeSignature
  }
}

\relative {
  \override NoteHead.stencil =
    #(lambda (grob) (ly:stencil-scale (ly:note-head::print grob) 0.980
0.924))
  \override NoteHead.extra-offset = #'(0 . -.001)
  d'4*1/2 f2*1/4 a1*1/8 c\breve*1/16 e\longa*1/32
}

Cheers,
Pierre

2016-02-10 6:05 GMT+01:00 Paul Morris <address@hidden>:

> Hi Pierre,
>
> On Feb 9, 2016, at 4:30 PM, Pierre Perol-Schneider <
> address@hidden> wrote:
>
> Some thoughts regarding the use of ly:stencil-scale:
> 1. the command seems to have a side effect on the stem attachment (or
> probably no effect on the note head extents - tested on a W8 OS)
> 2. applying it on all note heads suppose that all glyphs have the same
> scale defects (which is not the case, see my example with the harmonic
> style).
>
> So here's my attempt to get something liable to all note head styles.
> Unfortunately I did note find any direct procedure to get the 'default
> style ( '() do not work):
>
>
> Well, I was only intending that code for testing purposes.  Looks like
> you’ve got a good start on something for actual use.
>
> Cheers,
> -Paul
>


reply via email to

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