denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] Documentation of Scheme interface


From: Richard Shann
Subject: Re: [Denemo-devel] Documentation of Scheme interface
Date: Fri, 03 Oct 2008 08:30:39 +0100

On Thu, 2008-10-02 at 14:16 -0500, Jeremiah Benham wrote:
> On Thu, 2008-10-02 at 16:47 +0100, Richard Shann wrote:
> > I've pushed a first cut of some documentation for the scripting
> > interface.
> 
> Thanks very much for doing this. Is it simple to add more scheme
> commands? I was going to add d-GetClef that would return the clef name. 

You can clone the code for d-GetType. Starting in view.c you find

install_scm_function (DENEMO_SCHEME_PREFIX"GetType",  scheme_get_type);

and

SCM scheme_get_type (SCM optional) {  clone the code to return a string
for the clef }

which are all you need to clone. 

The problems will arise in understanding what Denemo stores for clefs -
there is the leftmost clef and, I think, something for the initial clef:
I think there may well be a serious bug in there - if the leftmost clef
is not the prevailing one or if the prevailing one is not the initial
one or something - I am waiting for a user to nail it down, or at least
report it. As it is, I don't know if you can tell what the clef is at
the current cursor position. (I've been overly pessimistic before, just
because I didn't understand what all the fields mean, so I may be
wrong).
Richard






reply via email to

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