denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] Please make (d-NextSelectedObject) work for multi-sta


From: Richard Shann
Subject: Re: [Denemo-devel] Please make (d-NextSelectedObject) work for multi-staff selections
Date: Sat, 20 Feb 2010 09:09:39 +0000

On Sat, 2010-02-20 at 00:41 +0100, Nils wrote:
> (d-NextSelectedObject) does only work for one staff. It should move to the 
> first selected object in the next staff if needed.
> Since (d-NextSelectedObject) is a primitive-procedure and not Scheme I cannot 
> do it myself.

I think NextSelectedObject does cursor right provided the cursor remains
inside the selected region returning #t if the cursor moves else #f.
That is a sensible, very primitive action.

I suggest you create a new command script (command name could be
NextSelectedObjectAllStaffs) which does (in pseudo coding)

if (d-NextSelectedObject) return #t
else  do ; while (d-PrevSelectedObject) ;;; i.e. get cursor back to start on 
the current staff
if GoToStaffDown ;;; (or whatever the staff down is called)
 return (d-NextSelectedObject)
else return #f ;;; perhaps you would want to re-position the cursor at this 
point

This may need some working on, but better work it out in scheme than in
C

Richard






reply via email to

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