lilypond-user
[Top][All Lists]
Advanced

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

Re: Text Spanner auto expand to end of duration


From: Jean Abou Samra
Subject: Re: Text Spanner auto expand to end of duration
Date: Mon, 8 Feb 2021 13:32:57 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0


Le 08/02/2021 à 01:59, Thomas Morley a écrit :
Am Mo., 8. Feb. 2021 um 00:29 Uhr schrieb Jean Abou Samra <jean@abou-samra.fr>:
       ((finalize this-engraver)
         ;; house keeping
         (set! trill-spanner #f)
         (set! rhythmic-events '())
         (set! bar-line #f)))))


Hi Harm,

Is there a reason to reset variables in 'finalize'
methods like this?

I've done without so far and never had any
problem; engravers in scm/scheme-engravers.scm
only do it when you are their author ;-)

Just curious.

Thanks,
Jean
Well, I seem to remember that there was a problem, if a
custom-engraver was consisted in various files all compiled in one go
like
lilypond file-1.ly file-2.ly.
Some bleed over, iirc. I didn't test recently, though. It doesn't hurt
to reset the variables, imho.

Cheers,
   Harm

Ok, thanks! I'll do some tests later on today.

Jean




reply via email to

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