On Sun, Apr 26, 2015 at 12:45 PM, Noeck <[email protected]> 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
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to