[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using a hash-table context property
From: |
Dan Eble |
Subject: |
Re: Using a hash-table context property |
Date: |
Mon, 19 Feb 2018 08:35:30 -0500 |
On Feb 17, 2018, at 16:10, Dan Eble <address@hidden> wrote:
> On Feb 17, 2018, at 15:13, David Kastrup <address@hidden> 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.
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().
—
Dan