On 2018-05-04 05:19, Federico Bruni wrote:
Perhaps a smart function may be created but as I need only 4
variations I can simply use 4 variables:
unoT = \markup \concat { \finger 1 \fontsize #-2.5 \raise #0.03
\bold t }
dueT = \markup \concat { \finger 2 \fontsize #-2.5 \raise #0.03
\bold t }
treT = \markup \concat { \finger 3 \fontsize #-2.5 \raise #0.03
\bold t }
quattroT = \markup \concat { \finger 4 \fontsize #-2.5 \raise #0.03
\bold t }
The downside of this approach is that it creates TextScript objects,
so in case a score (as in my real project) is using some padding for
TextScript objects then the custom fingering will be placed away from
the note.
[ . . . ]
However I wonder if a better fallback could be provided when using a
letter with \finger.
As Feta numbers look as bold serif fonts, shouldn't the t in `\finger
"3t"` fall back to serif instead of sans?
Federico,
This approach here seems to generate Fingering objects, not
TextScript objects:
%%%
\version "2.19.80"
tenutoFingeringMark = \markup \text \fontsize #2 \bold "t"
t = #(define-event-function (n) (index?)
#{ \finger \markup \concat { #(format "~d" n) \tenutoFingeringMark
} #})
{
\override Staff.Fingering.color = #green
\override Staff.TextScript.color = #red
c\t1 d_\t2 e2^\markup Text
}
%%%
This uses the \text markup command, which by default seems to select
a font with serifs. You can obviously adjust \tenutoFingeringMark
however you need to get the desired appearance.