lilypond-user
[Top][All Lists]
Advanced

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

Re: Height of start bar brace


From: Nathan Ho
Subject: Re: Height of start bar brace
Date: Sun, 26 Apr 2015 14:42:08 -0700

On Sun, Apr 26, 2015 at 12:45 PM, Noeck <address@hidden> wrote:
Hi,

can I change the height of a start bar brace, like in

\version "2.19.16"
\new PianoStaff <<
  \new Staff { R1 }
  \new Staff { R1 }
>>

I would like to reduce the vertical size a little bit.


For some reason this solution doesn't automatically center the bracket perfectly, but it's a start.

\version "2.19.16"

\new PianoStaff \with {
  \override SystemStartBrace.stencil =
    #(lambda (grob)
       (let* ((scale-amount 0.9)
              (stil (ly:system-start-delimiter::print grob))
              (scaled-stil (ly:stencil-scale stil scale-amount scale-amount))
              (extent (ly:stencil-extent stil Y))
              (height (- (cdr extent) (car extent))))
         (ly:stencil-translate-axis
           scaled-stil
           (+
             (* -0.5 (- 1 scale-amount) height)
             -0.3) ; adjust this to nudge it
           Y)))
} <<
  \new Staff { R1 }
  \new Staff { R1 }
>> 

Regards,
Nathan

reply via email to

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