lilypond-user
[Top][All Lists]
Advanced

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

Re: stems and barlines


From: David Nalesnik
Subject: Re: stems and barlines
Date: Mon, 20 May 2013 21:04:08 -0500

Hi Luis,


On Mon, May 20, 2013 at 8:22 PM, luis jure <address@hidden> wrote:
 
everything looks fine except for one small detail: the stem has rounded
tips, while the barline is rectangular (see the second image).

can this be changed?

The only way I know to do this is to create your own filled box to replace the stem.  You can incorporate the following override, which specifies a rounded box with no rounding of the corners:

 \override Stem.stencil = #(lambda (grob)
    (let ((th (ly:output-def-lookup (ly:grob-layout grob) 'line-thickness)))
      (ly:make-stencil
        `(round-filled-box
           0 (* 1.3 ,th)
           0.8125 0.8125
           0)
         (cons 0 (* 1.3 th))
         (cons 0.8125 0.8125))))


HTH,
David


reply via email to

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