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: Jeremiah Benham
Subject: Re: [Denemo-devel] Documentation of Scheme interface
Date: Fri, 03 Oct 2008 11:34:38 -0500

On Fri, 2008-10-03 at 08:30 +0100, Richard Shann wrote:
> 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. 


ok. Do you think it should return a string or is an int fine. I clefs
names are stored in an enum. I think I would have to write a function to
return a string value. I saw that you wrote a define in denemo_types.h
but this is for an array. Should I write an array and have the value
looked up by the inter value corresponding with the enum clef value? Or
should I just have the function return an int. 

Thanks,
Jeremiah 


> 
> 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
> 
> 
> 
> 
> _______________________________________________
> Denemo-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/denemo-devel





reply via email to

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