lilypond-user
[Top][All Lists]
Advanced

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

Re: make \breath (kind-of) ignore clef change


From: David Kastrup
Subject: Re: make \breath (kind-of) ignore clef change
Date: Wed, 01 Jun 2022 21:50:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Werner LEMBERG <wl@gnu.org> writes:

> David,
>
>
> thanks for your code – I consider it quite an elegant solution.
>
>> squashed =
>>   \once \propertyTweak stencil
>>     #(grob-transformer 'stencil
>>       (lambda (grob old)
>>               (ly:stencil-aligned-to old X RIGHT)))
>>   \etc
>> 
>> { <a' e''>1 \breathe | <g' d''> }
>> 
>> { <a' e''>1 \breathe \squashed Staff.Clef \clef alto | <a e'> }
>
> This code might serve as an example for `\propertyTweak`, which the NR
> is currently missing.
>
> Would you care to submit an MR, expanding the documentation
> accordingly?

Frankly, I have no idea what I am actually doing there with the
ly:stencil-aligned-to .  I was just fudging around until something fell
out that looked like what you wanted to be doing.  So "\squashed" is
actually a misnomer from the first attempt where I just thought I'd
shrink stuff (which did not work).

So while the technique for diddling with a stencil is programmed in a
straightforward manner, I have no clue about the underlying core action.

-- 
David Kastrup



reply via email to

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