lilypond-user
[Top][All Lists]
Advanced

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

Re: Curious behaviour of q and a tweak


From: David Kastrup
Subject: Re: Curious behaviour of q and a tweak
Date: Tue, 01 Nov 2022 19:59:31 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Werner LEMBERG <wl@gnu.org> writes:

>> [...] As you can deduce from the existence of the \chordRepeats
>> function, the substitution of q is not immediate.  In contrast,
>> \tweak takes effect immediately by modifying each of the notes in
>> the chord.  Since there are no notes yet in the "q" chord at the
>> time \tweak is applied (they are copied later from the previous
>> chord), \tweak does nothing.  [...]
>>
>> On the other hand, in this case, there is little \tweak \could do
>> that \override cannot do.  The main purpose of \tweak is to be used
>> if you want to modify only one of the notes in a chord, but without
>> writing out each of the notes instead of putting "q", you don't make
>> room for this.  So, just use an \override here.
>
> Shouldn't this be documented in the NR?  It's certainly not obvious to
> Joe User...

It makes more sense if

a) a tweak on an to-be-expanded chord (no non-post-event chord elements)
is applied to the ChordEvent expression itself after all.
b) when expanding a RepeatChord, tweaks get copied over to the created
elements.

That adds complexity to the implementation, but users usually could care
less about the implementation.

-- 
David Kastrup



reply via email to

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