lilypond-user
[Top][All Lists]
Advanced

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

drawing brackets spanning multiple staves - spacing issue


From: Eby Mani
Subject: drawing brackets spanning multiple staves - spacing issue
Date: Sun, 23 Jul 2017 17:39:20 +0000 (UTC)

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'' {
    a^\markup\openBracket #14 
    c'^\markup\closeBracket #16.5 
  }
  \new Staff { \clef F c' c' }
>>

%%% SNIPET END %%%


reply via email to

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