lilypond-user
[Top][All Lists]
Advanced

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

Re: tenuto fingering: 3t, 2t, 4t, etc.


From: Aaron Hill
Subject: Re: tenuto fingering: 3t, 2t, 4t, etc.
Date: Fri, 04 May 2018 10:16:29 +0000
User-agent: Roundcube Webmail/1.3.6

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.

Even if I was able to change David's function to use a markup for the
t, then the problem would remain: the number would be aligned
correctly but the t would not.

I am afraid I am not familiar with this particular notation to know what is expected, but the example I posted seems visually balanced to my eye. What specific alignment are you desiring for these fingering marks?

-- Aaron Hill



reply via email to

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