lilypond-user
[Top][All Lists]
Advanced

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

Re: drawing brackets spanning multiple staves - spacing issue


From: Eby Mani
Subject: Re: drawing brackets spanning multiple staves - spacing issue
Date: Thu, 27 Jul 2017 17:15:29 +0000 (UTC)

Can anyone help me with this ?.

here is my code, the note column won't shift on the second staff, even if you 
put Score.NoteColumn in the "left hand" section.

Thanks.
#################################################

\version "2.16.2"

%%% SNIPPET FOR BRACKETS%%%

#(define-markup-command (openBracket layout props heitgh) (number?)
  (interpret-markup layout props
    (markup #:line (#:with-dimensions (cons 0 0) (cons 0 0)
      (#:path 0.20
        (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.13
        (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))))))))

%%% SNIPET END %%%

global = {
  \time 4/4  
}

%%%%%
right = \relative c'' {
  \global
\key d \major

d1 | \mark \markup { \box B } % SECTION B

  \once \override TextScript #'X-offset = #2
  \once \override Score.NoteColumn #'X-offset = 3
  <>^\markup {  \openBracket #19.3 }
  <>_\markup { \small \rounded-box "II: Principal Chorus"  }

  d4 a d e | 
}
%%%%%
rightTwo = \relative c'' {
  \global
\key d \major

s1 | % SECTION B
a4 s b a | 
}
%%%%%
leftOne = \relative c' {
  \global
\key d \major

d1 | % SECTION B
fis4 e d e | 
}
%%%%%
leftTwo = \relative c {
  \global
\key d \major

<fis a>1 | % SECTION B
<a d>4 a <fis b> <a cis> | 
}
%%%%%
pedal = \relative c {
  \global
\key d \major

d,1 | % SECTION B
d'4 cis b a |
}

\score {
  <<
    \new PianoStaff \with {
      instrumentName = "Manuals"
    } <<
      \new Staff = "right" \with { printPartCombineTexts = ##f
        midiInstrument = "church organ"
      } { \partcombine \right \rightTwo }
      \new Staff = "left" \with { printPartCombineTexts = ##f 
        midiInstrument = "church organ"
      } {\clef bass \partcombine \leftOne \leftTwo }
    >>
    %%instrumentName = "Pedal"
    \new Staff = "pedal" \with {
      midiInstrument = "church organ"
    } { \clef bass \pedal }
  >>
  \layout { }
}
###########################################
--------------------------------------------
On Tue, 25/7/17, Eby Mani <address@hidden> wrote:

 Subject: Re: drawing brackets spanning multiple staves - spacing issue
 To: "Eby Mani" <address@hidden>, "Thomas Morley" <address@hidden>
 Cc: "lilypond-user" <address@hidden>
 Date: Tuesday, 25 July, 2017, 3:57 PM
 
 Thanks Harm !, this is working for 1st staff
 and 3rd staff (pipe organ), not sure why the NoteColumns are
 not shifting for the 2nd staff.
 
 I'm using \partcombine for the manual
 staffs.
 
 Attached image.
 
 Eby
 --------------------------------------------
 On Sun, 23/7/17, Thomas Morley <address@hidden>
 wrote:
 
 %% 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
  
  Cheers,
    Harm


reply via email to

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