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: Federico Bruni
Subject: Re: tenuto fingering: 3t, 2t, 4t, etc.
Date: Fri, 04 May 2018 07:19:28 +0200



Il giorno ven 4 mag 2018 alle 6:54, Federico Bruni <address@hidden> ha scritto:


Il giorno gio 3 mag 2018 alle 9:47, Torsten =?iso-8859-1?q?H=E4mmerle?= <"torsten.haemmerle"@web.de> ha scritto:
Hi all,

And the remaining problem of \finger in this case is that \finger (just as
\number) uses the Feta numbers from the Emmentaler notation font.
As this font does not contain the letter "t", the t will be taken from a
replacement font (in this case some sans serif font).

The best out-of-the-box solution I can think of is using bold t with a
matching font size and slightly adjusted baseline, as in:

\markup \concat { \finger 3 \fontsize #-3 \raise #0.03 \bold t }

<http://lilypond.1069038.n5.nabble.com/file/t3887/finger-3t.png>



Thanks, this is exactly what I want.

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.

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. The obvious solution is overriding the TextScript padding when using these markup commands.

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?






reply via email to

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