lilypond-user
[Top][All Lists]
Advanced

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

Re: Override SystemStartSquare width?


From: dtsmarin
Subject: Re: Override SystemStartSquare width?
Date: Thu, 17 Nov 2016 03:38:38 -0700 (MST)

Hi Thomas,

My code uses Scorlatti font and I'm trying to replicate SCORE's look. 
<http://lilypond.1069038.n5.nabble.com/file/n196771/scorelook.png> 

I simply changed the offset and width of the brackets because Lilypond's
defaults are so far from the staves. Also I can't fix the vertical distance
of the brackets even if I used this code:
\override StaffGroup.SystemStartBracket.stencil = 
#(lambda (grob)
 (let* ((stil (ly:system-start-delimiter::print grob))
        (extra-height (ly:grob-property grob 'padding))
        (yext (ly:stencil-extent stil Y))
        (ytop (cdr yext))
        (ylen (interval-length yext))
        (yfinal (+ ylen (* 2 extra-height)))
        (yscale (/ yfinal ylen))
       )
   (ly:stencil-translate
     (ly:stencil-scale 
       (ly:stencil-translate stil (cons 0 (- ytop)))
       1 yscale)
     (cons 0 (+ ytop extra-height)))
 ))

I'm trying to achieve this type of bracketing (for violin sections when
multiple staves are used)
<http://lilypond.1069038.n5.nabble.com/file/n196771/gouldexample.png> 




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Override-SystemStartSquare-width-tp196731p196771.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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