[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
what's the centred-text-spanner state of the art?
From: |
Kieren MacMillan |
Subject: |
what's the centred-text-spanner state of the art? |
Date: |
Tue, 3 Jan 2017 11:15:43 -0500 |
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: address@hidden
- what's the centred-text-spanner state of the art?,
Kieren MacMillan <=