lilypond-user
[Top][All Lists]
Advanced

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

Re: macro for \once\override


From: David Kastrup
Subject: Re: macro for \once\override
Date: Sat, 29 Aug 2020 14:09:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Werner LEMBERG <wl@gnu.org> writes:

>>> BTW, would it be possible to enhance `\propertyTweak` to write
>>>
>>>   \propertyTweak fret-diagram-details.dot-color #'white
>>>                  FretBoard
>>>
>>> as
>>>
>>>   \propertyTweak dot-color #'white
>>>                  FretBoard.fret-diagram-details       ?
>> 
>> Have you even tried?
>
> Only the stacking case:
>
>   \once \propertyTweak barre-type #'straight
>         \propertyTweak dot-color #'black
>         \propertyTweak finger-code #'below-string
>                        FretBoard.fret-diagram-details
>
>   => error: bad grob property path (dot-color)
>
> Sorry for the simplification.
>       
>> With the obvious consequence that it makes no difference for
>> stacking _multiple_ \propertyTweak commands, so it doesn't help a
>> lot in your case.
>
> I don't understand this remark.  Please elaborate.

\propertyTweak finger-code #'below-string
  FretBoard.fret-diagram-details

is completely indistinguishable from

\propertyTweak fret-diagram-details.finger-code #'below-string
  FretBoard

So any commands stacked before this last \propertyTweak command have no
way of knowing that they are supposed to assume fret-diagram-details as
a given.

>> And actually using this syntax for the final \propertyTweak is
>> likely going to be a lot more confusing than just staying like you
>> are.
>
> I agree.  It was a bad example, and the one above should better
> demonstrate what I'm looking for.

No idea what you mean.

-- 
David Kastrup



reply via email to

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