denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] [bug #29571] TimeSignature change in middle of measur


From: Richard Shann
Subject: Re: [Denemo-devel] [bug #29571] TimeSignature change in middle of measure impossible to delete after paste
Date: Fri, 16 Apr 2010 10:57:35 +0100

This is an important issue: the scripting idea was based around an
imaginary user operating the commands in the denemo menu system. This
meant we could create a complete system with little work, just wiring
every command to a d-XXX scheme procedure.
However, it has lead to us fighting features which the original author
put into commands never thinking that they would be used like this. The
one we have hit most often is the cursor move when the cursor is on the
last object in a measure. A new state is entered, the cursor does not go
to the first object in the next measure (if there is such a measure and
if there is any object in it).
The example Dan has raised here is going to involve some disruption to
fix, as there is no-one available to study the code in depth and fully
design a solution.
I propose instead to make some changes and then await reports on any
problems. I will do some testing, before pushing to git, but it will be
unwise to trust git in the way you normally do while we are trying to
resolve this.
OK, that said, I think the first ploy might be to turn off all special
handling of timesignature changes by denemo. "Special Handling" means
all built-in behavior of the cursor around timesig-change objects and
the delete and the insert of timesig-change objects. The danger is that
in the calculations that Denemo makes to decide whether a measure is
full there could be inconsistencies arising and, say, floating point
exceptions. So, e.g. on inserting a timesig change, some "prevailing
timesig" is calculated, and how this will behave if the timesig is not
at the start of a measure, will need some attention.

I think there is a maybe 80% chance that this will be just fine. It
would be easy to put a dialog up to warn users if they are inserting a
timesig change not at the beginning of a measure; the dialog only firing
for non-scripted use.

We could make use of the git branches mechanism for trying out these
changes, but I worry that the extra work involved will mean less time
spent on the task itself - and less people testing it.

Comments please!

Richard



On Fri, 2010-04-16 at 02:39 +0000, anonymous wrote:
> URL:
>   <http://savannah.gnu.org/bugs/?29571>
> 
>                  Summary: TimeSignature change in middle of measure
> impossible to delete after paste
>                  Project: GNU Denemo, a gtk+ frontend to GNU Lilypond
>             Submitted by: None
>             Submitted on: Fri 16 Apr 2010 02:39:09 AM UTC
>                 Category: None
>                 Severity: 3 - Normal
>               Item Group: None
>                   Status: None
>                  Privacy: Public
>              Assigned to: None
>              Open/Closed: Open
>          Discussion Lock: Any
> 
>     _______________________________________________________
> 
> Details:
> 
> Let's say you copy and paste a passage that includes a timesig change.  Then
> you try to delete that time signature, if it is not at the beginning of a
> measure.  It's impossible to delete with the delete/backspace commands.
> Here's what I mean:
> Blank score, 4/4 time.
> Enter 4 quarter c's, next bar insert TimeSig change to 3/4.
> Put in three quarter notes in that bar.
> Now copy the last quarter note in Bar 1.
> Paste it into Bar 2 when the cursor is on top of the TimeSig change.
> The note will appear BEHIND the time sig change.  That in itself is a bit of
> a weird situation but not terrible.  The problem is that you can't delete that
> 3/4 timesig-if you try, you just delete notes!!  You can finally delete it
> only when it's been backed up to the barline.
> -Dan W.
> 
> 
> 
> 
> 
>     _______________________________________________________
> 
> Reply to this item at:
> 
>   <http://savannah.gnu.org/bugs/?29571>
> 
> _______________________________________________
>   Message sent via/by Savannah
>   http://savannah.gnu.org/
> 
> 
> 
> _______________________________________________
> 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]