lilypond-user
[Top][All Lists]
Advanced

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

Brackets/TextSpan when connecting notes on different lines


From: Rachel Green
Subject: Brackets/TextSpan when connecting notes on different lines
Date: Thu, 11 Feb 2021 21:37:51 +0000

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


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 }
}

Attachment: Bracket-snippet.pdf
Description: Bracket-snippet.pdf


reply via email to

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