Hello all,

In the snippet below, I overload a tuplet bracket to create a spanner with a 
centred text.

I would like to use TextSpanner instead.

  1. I need the text/markup centred.
  2. I likely need the ability to have the spanner broken.
  3. I only need one piece of text (n.b. I’ve seen a lot of code going around 
for multiple text items).

What is the current state of the art that will give me the most light-weight 
solution?

Thanks,
Kieren. 

%%%  SNIPPET BEGINS
\version “2.19”

\paper { ragged-right = ##f line-width = 4\in }

fermTupSpan = {
    \once \override TupletNumber.text =
        \markup \halign #0 \with-dimensions #'(-1 . 0.625) #'(0 . 1)
        \musicglyph #"scripts.ufermata"
    \once \override TupletBracket.bracket-visibility = ##t
    \once \override TupletBracket.direction = #UP
    \once \override TupletBracket.style = #'dashed-line
    \once \override TupletBracket.dash-period = #2
    \once \override TupletBracket.dash-fraction = #1/3
    \once \override TupletBracket.shorten-pair = #'(-1 . -1)
    \once \override TupletBracket.padding = #2
}

test = { \fermTupSpan \tuplet 1/1 { e''4 4 r4 e''4 } }

\score { \test }
%%%  SNIPPET ENDS
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: [email protected]


_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to