Aaron Hill <lilyp...@hillvisions.com> writes:

> On 2020-11-02 12:18 pm, Aaron Hill wrote:
>>   #{ \once \override Glissando.after-line-breaking = #proc
>>      <>\glissando #})
>
> You can even simplify that expression using \tweak:
>
>   #{ <>-\tweak after-line-breaking #proc \glissando #}
>
> Not sure if \tweak is cheaper than \once \override.

The bulk of the price of \tweak is prepaid due to the cost of the
Tweak_engraver being mostly independent of actual use.

The significant advantage of \tweak is that its effect is constrained to
the construct in question rather than the timestep in question.  That
makes unexpected side effects much less likely.

-- 
David Kastrup

Reply via email to