|
From: | Gianmaria Lari |
Subject: | Re: fingering |
Date: | Fri, 23 Feb 2018 08:43:40 +0100 |
Likely safer to check whether a stencil is present before trying to2018-02-22 11:03 GMT+01:00 Thomas Morley <address@hidden>:
> 2018-02-22 10:58 GMT+01:00 Gianmaria Lari <address@hidden>:
>> Dear Harm,
>>
>> thank you for your really nice help. Your fix worked well and now your
>> example is perfect!
>>
>> I hope others will take advantage of it.
>>
>> I copy here the final working code with a screenshot.
>
> Glad you like it :)
>
> This morning I observed a certain weakness in the code, a missing
> safety net to be more precise.
> I'll have a deeper look this evening. Now I have to run for my regular job ...
>
> Cheers,
> Harm
change it. At least it calms down my paranoia ...
adjustFC =
\override Staff.FingeringColumn.before-line-breaking = (ly:grob-set-property! grob 'snap-radius 3)
#(lambda (grob)
"Sets @code{snap-radius} of @code{FingeringColumn} to @code{3} and
applies @code{centered-stencil} to every fingering-stencil"
(let* ((fingerings (ly:grob-object grob 'fingerings))
(fingering-ls
(if (ly:grob-array? fingerings)
(ly:grob-array->list fingerings)
'())))
(for-each
(lambda (f)
(let ((f-stil (ly:grob-property f 'stencil)))
(if (ly:stencil? f-stil)
(ly:grob-set-property! f 'stencil
(centered-stencil f-stil)))))
fingering-ls)))
Cheers,
Harm
[Prev in Thread] | Current Thread | [Next in Thread] |