denemo-devel
[Top][All Lists]
Advanced

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

[Denemo-devel] Denemo Hooks


From: Richard Shann
Subject: [Denemo-devel] Denemo Hooks
Date: Mon, 27 Jun 2011 12:09:35 +0100

I hit the Eb/D# problem again while entering notes from my MIDI
controller, and that has galvanized me into action.
I propose to add a hook to the Key Signature settings (perhaps to *all*
denemo built-in commands?) and use it to adjust the range of enharmonics
when the keysignature is set or a new one inserted. (More is needed but
this email is about the hook technology).

So I have built the captain-hook branch and run the test from the
README. It is all working straight out of the box. Great Work!

Now I have to get my head round it:)
I think I have to write a call to denemo-run-hook (using a scm_applyxxx
I think it is) at the point where the set keysignature command is about
to be run (and perhaps another call to denemo-run-hook after doing the
keysig change, and/or perhaps not run the keysig change command if the
hook returns a #f?). The parameters to denemo-run-hook would be some
hook list and the value of keysig being set.
So, what is a good design here for the hook list? One per built-in
command?
Is the overhead here tiny if the hook list is not set?

Richard






reply via email to

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