denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] Gregorian Chant in Denemo


From: Richard Shann
Subject: Re: [Denemo-devel] Gregorian Chant in Denemo
Date: Mon, 16 Jan 2017 17:52:06 +0000

On Sun, 2017-01-15 at 19:34 +0100, Andreas Schneider wrote:
> > Perhaps you could design the way that input could be done to be easy
> to
> > pick up and use, and give reasonable feedback in the Display?
> 
> What comes to my mind is the following: It is easiest to separate note
> input and input of the special features such as ligatures. An easy
> approach would be: select two notes, click on a button on the
> Gregorian
> palette, e.g. flexa, and everything is set up correctly, i.e. add
> ligature directives and the flexa directive in the above example.


Well, here is a sample script that does that - better it allows you to
enter two punctae and then hit flexa and it does the selection of the
two notes for you.


(let ((tag "Flexa"))
(if (and (not (d-HasSelection)) (d-PrevChord))
        (begin
                (d-SetMark)
                (d-NextChord)
                (d-SetPoint)))
        
(if (MoveToSelectionBeginningInThisStaff)
        (begin
                (d-DirectivePut-chord-prefix tag "\\[ ")
                (d-DirectivePut-chord-postfix tag "\\flexa ")
                (d-DirectivePut-chord-display tag "fl--")
                (d-DirectivePut-chord-override tag 16)
                (if (d-NextChord)
                        (begin
                        
                                (d-DirectivePut-chord-postfix tag "\\]  ")
                                (d-DirectivePut-chord-display tag "--]")
                                (d-DirectivePut-chord-override tag 16)))
                                (d-MoveCursorRight)
                (d-SetSaved #f))
        (d-WarningDialog (_ "You must select two notes"))))

Richard





reply via email to

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