denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] Articulations


From: Richard Shann
Subject: Re: [Denemo-devel] Articulations
Date: Tue, 20 Dec 2011 15:40:37 +0000

On Mon, 2011-12-19 at 09:00 -0600, Jeremiah Benham wrote:
> >        * All these scripts should share a common function call
> rather
> >          than repeating the same code. I guess this will be best in
> the
> >          top level (denemo.scm or denemo-modules) rather than in the
> >          init.scm, as the same thing will be needed for ornaments
> etc,
> >          (ie other menus). 

I see you have created a common procedure to call, however its name

d-DirectivePut-note-font-lilypond

 leaves a lot to be desired :(
d-XXX indicates a procedure that has a corresponding GtkAction of name
XXX and d-DirectivePut-typename-fieldname indicates a command that
creates or modifies the field called fieldname of the directive of type
typename - they expect a tag and a value for the field. This procedure
actually affects directives of type chord yet is it named -note- (and so
on... L)

I suggest

ToggleChordDirective 

which takes tag, graphic and lilypond-postfix strings.
The Toggle bit of the name indicates it deletes a directive of that tag
if present, the Chord bit says what type of directive it works on.

Richard





reply via email to

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