bugDenemo - Bugs: bug #29571, TimeSignature change in middle of...

 
 

bug #29571: TimeSignature change in middle of measure impossible to delete after paste

Submitted by:  None
Submitted on:  Fri 16 Apr 2010 02:39:09 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 17 Apr 2010 05:03:35 PM UTC, comment #1:

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.

I have checked in code now; I decided there was no need to change the behavior of the timesig change dialog - it will always insert at the start of a measure. But the deletion bug is now fixed.

Richard Shann <rshann>
Project Administrator
Fri 16 Apr 2010 02:39:09 AM UTC, original submission:

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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by steele (Updated the item)
  • -unavailable- added by rshann (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 04 Dec 2010 12:55:05 PM UTCsteeleOpen/ClosedOpen=>Closed
    Sat 17 Apr 2010 05:03:35 PM UTCrshannStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1