Dan Eble <d...@faithful.be> writes:

> On Feb 17, 2018, at 16:10, Dan Eble <d...@faithful.be> wrote:
>> On Feb 17, 2018, at 15:13, David Kastrup <d...@gnu.org> wrote:
>>> #(call-after-session
>>> (lambda ()
>>>  (hash-clear! default-fret-table)
>>>  (hash-clear! chord-shape-table)))
>> I see.  Thanks again.
> That didn’t solve my problem.  LilyPond appears to process multiple
> scores in the same session.

Oh yes.  A "session" means one file on the command line, not one score.
Separate files on the command line will get processed independently (as
independent as LilyPond manages separating sessions).

> I found that clearing the hash table in my engraver’s initialize()
> method did the trick.  In the end, I will probably copy the table in
> initialize() and restore the original in finalize().

Probably one way to do this.

David Kastrup

lilypond-devel mailing list

Reply via email to