2017-07-23 19:39 GMT+02:00 Eby Mani <eby...@yahoo.com>: > Hi, I'm engraving some organ music and using the > LSR(http://lsr.di.unimi.it/LSR/Snippet?id=957) for drawing brackets spanning > multiple staves to denote a particular manual/registration. > > The problem now i'm facing, the LSR brackets are too close to the > notes/barlines/key signatures/etc.. Moving the the brackets horizontally > makes things even worse. > > The requirement is when a bracket is placed, there should be sufficient space > before and after the bracket. > > i'm using version 2.16.2 on ubuntu 12.04 lts. > > Thanks. > Eby > > %%% LSR SNIPPET: %%% > > #(define-markup-command (openBracket layout props heitgh) (number?) > (interpret-markup layout props > (markup #:line (#:with-dimensions (cons 0 0) (cons 0 0) > (#:path 0.25 > (list (list (quote moveto) 0 0) > (list (quote lineto) -1 0) > (list (quote lineto) -1 (* heitgh -1)) > (list (quote lineto) 0 (* heitgh -1)))))))) > > #(define-markup-command (closeBracket layout props heitgh) (number?) > (interpret-markup layout props > (markup #:line (#:with-dimensions (cons 0 0) (cons 0 0) > (#:path 0.25 > (list (list (quote moveto) 1.3 0) > (list (quote lineto) 2.3 0) > (list (quote lineto) 2.3 (* heitgh -1)) > (list (quote lineto) 1.3 (* heitgh -1)))))))) > > \new PianoStaff << > \new Staff \relative c'' { %% play around with the two commands below %% adjust the values to fit your needs \once \override TextScript.X-offset = #-5 \once \override Score.NoteColumn.X-offset = 10 > a^\markup\openBracket #14 > c'^\markup\closeBracket #16.5 > } > \new Staff { \clef F c' c' } >>> > > %%% SNIPET END %%%
Cheers, Harm _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user