denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] Transpose


From: Richard Shann
Subject: Re: [Denemo-devel] Transpose
Date: Tue, 12 Aug 2008 16:54:37 +0100

On Tue, 2008-08-12 at 10:01 -0500, Jeremiah Benham wrote:
> 
> The script writer would only receive an int on return correct.
No - the example on swig tutorial shows returning a string - so it could
receive stuff ok provided our callback returns it (currently all
callbacks are return void). In fact, it can take and return any standard
C types.
>  The
> writer would not be able to get anything like a structure back in this
> way. In either option we would need to allow them to see some values
> in
> DenemoGUI *gui.
Well at first we can operate in a completely parameterless way. We just
know that Denemo has a currentobject and we manipulate it using the menu
item callbacks just as if we were pressing sequences of menu items.
>  We can get started and test things without it at first.
yep
> Without being able to read values from DenemoGUI *gui the script would
> be running blind.  Maybe new functions would need to be created to do
> things like:
> int denemo_print_currentmeasurenum()
No - the idea would be to avoid that, (see my other email for an
example). There would be an unlimited number of such things to write.

But we would want to extend to passing in and returning values of things
- I haven't thought right into it yet, but I have a good feeling that we
could do useful things without trying to write the values of variables
which we don't really know the meaning of. (i.e. without getting
involved in the core denemo stuff which is fossilized and which we could
not document without re-writing it).
So, we could re-write the pitch of a note, whether it started a slur,
the string in a LilyPond insert etc. With that we would be able to see
further still about what might be possible. (This is one of my
hobby-horses, you cannot plan this sort of software development, it is
an exploration). 
Richard






reply via email to

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