[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: drawing brackets spanning multiple staves - spacing issue
From: |
Thomas Morley |
Subject: |
Re: drawing brackets spanning multiple staves - spacing issue |
Date: |
Sun, 23 Jul 2017 22:59:46 +0200 |
2017-07-23 19:39 GMT+02:00 Eby Mani <address@hidden>:
> 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