lilypond-user
[Top][All Lists]
Advanced

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

Re: Brackets/TextSpan when connecting notes on different lines


From: Rachel Green
Subject: Re: Brackets/TextSpan when connecting notes on different lines
Date: Fri, 12 Feb 2021 04:26:16 +0000

I figured it out!!! Right-broken and left-broken were the settings I needed to 
adjust.

upperBracket = { %upperBracket
  \override TextSpanner.style = #'line
  \override TextSpanner.to-barline = ##f
  \override TextSpanner.direction = #UP
  \override TextSpanner.bound-details =
  #`(
   (left
    (text . ,#{ \markup { \draw-line #'( 0 . -.6) } #})
    (Y . 0)
    (padding . 0.25)
    (attach-dir . -2)
   )
   (right
    (text . ,#{ \markup { \draw-line #'( 0 . -.6) } #})
    (Y . 0)
    (padding . 0.25)
    (attach-dir . 2)
    )
   (right-broken
    (text . ,#{ \markup { \draw-line #'( 0 . 0) } #})
    (Y . 0)
    (padding . 0.25)
    (attach-dir . 2)
    )
   (left-broken
    (text . ,#{ \markup { \draw-line #'( 0 . 0) } #})
    (Y . 0)
    (padding . 0.25)
    (attach-dir . -0.5)
    )
   )
}




> On Feb 11, 2021, at 2:37 PM, Rachel Green <rg433n@outlook.com> wrote:
> 
> Hello,
> How would I change the settings for a bracket that connects notes on 
> different lines so that it does not include the part  of the bracket that 
> points down? I’ve drawn in red what I would like the bracket to look like. I 
> would also like the bracket on line 2 to start to the right of the bar number.
> 
> Best,
> Rachel
> 
> <Bracket-snippet.pdf>
> 
> Here is a snippet:
> 
> \version "2.19.80"
> 
> \language "english"
> #(set-global-staff-size 20)
> 
> upperBracket = { %upperBracket
>   \override TextSpanner.style = #'line
>   \override TextSpanner.to-barline = ##f
>   \override TextSpanner.direction = #UP
>       % \override TextSpanner.bound-details.left-broken.text = ##f
>   \override TextSpanner.bound-details.left.padding = #3
>   \override TextSpanner.bound-details =
>   #`(
>    (left
>     (text . ,#{ \markup { \draw-line #'( 0 . -.5) } #})
>     (Y . 0)
>     (padding . 0.25)
>     (attach-dir . -2)
>    )
>    (right
>     (text . ,#{ \markup { \draw-line #'( 0 . -.5) } #})
>     (Y . 0)
>     (padding . 0.25)
>     (attach-dir . 2)
>     )
>    )
> }
> 
> 
> sta = \startTextSpan
> sto = \stopTextSpan
> 
> Treble = \relative c''
>   {
>     \clef treble
>     \upperBracket
>     \set Score.markFormatter = #format-mark-box-alphabet
>     % \tempo 4=60
>     \time 3/8
>     \key a \major
>     % \numericTimeSignature
>     \override Glissando.style = #'trill
>     cs4\sta-1 a8-2 |
>     fs8.-3\sto\sta e'16-1\sto\sta d8-2 | \break
>     cs4-3\sto a8-1\sta |
>     fs4.-2\sto | 
>   }
> 
> 
> \score {
>   \new Staff { \Treble }
> }
> 


reply via email to

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