lilypond-user
[Top][All Lists]
Advanced

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

Re: Individual stencils in key signature


From: Leo Correia de Verdier
Subject: Re: Individual stencils in key signature
Date: Thu, 4 Aug 2022 21:37:32 +0200

Thanks!

Thats a better solution. (But I’m still happy about having asked the wrong 
question so I could learn about how to find the stencil expression)

Best
/Leo

> 3 aug. 2022 kl. 13:40 skrev Jean Abou Samra <jean@abou-samra.fr>:
> 
> 
> 
>> Le 2 août 2022 à 23:34, Leo Correia de Verdier 
>> <leo.correia.de.verdier@gmail.com> a écrit :
>> 
>> Thanks a lot!
>> 
>> This is impressive and is helping me a lot to both understand and manage my 
>> issue.
>> 
>> Thing is I wanted narrower accidentals, and instead of doing it the proper 
>> way and redesigning the font I hacked them with a callback with 
>> ly:stencil-scale . Then I realised I wanted the key signatures to match the 
>> accidentals inside the music and have to cover my first hack with a second, 
>> even worse one… 
> 
> 
> Then, how about using the same technique with ly:stencil-scale on the whole 
> KeySignature stencil? If this leads to the accidentals being too close to 
> each other, you can increase the gaps using the padding-pairs property as 
> shown here:
> 
> https://lilypond.org/doc/v2.23/Documentation/notation/displaying-pitches#alternate-accidental-glyphs
> 
> Best,
> Jean
> 
> 
> 
>> 
>> 
>> 
>>> 2 aug. 2022 kl. 10:50 skrev Lukas-Fabian Moser <lfm@gmx.de>:
>>> 
>>> Hi Leo,
>>> 
>>> Am 02.08.22 um 09:48 schrieb Leo Correia de Verdier:
>>>> Is there any way to access the stencils of individual accidentals in a key 
>>>> signature?
>>> 
>>> The KeySignature stencil gets constructed by combining the individual 
>>> accidental stencils into one stencil, as can be seen here:
>>> 
>>> \version "2.23.7"
>>> 
>>> {
>>>  \override Staff.KeySignature.stencil =
>>>  #(grob-transformer
>>>    'stencil
>>>    (lambda (grob stencil)
>>>      (pretty-print (ly:stencil-expr stencil))
>>>      stencil))
>>>  \key as \minor
>>>  as'4
>>> }
>>> 
>>> But your question seems sounds like an xy problem 
>>> (https://en.wikipedia.org/wiki/XY_problem): What do you want to achieve 
>>> exactly?
>>> 
>>> Lukas
>>> 
>> 
>> 




reply via email to

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