bugDenemo - Bugs: bug #28047, Pasting Oddities

 
 

bug #28047: Pasting Oddities

Submitted by:  None
Submitted on:  Wed 18 Nov 2009 09:07:52 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: -Deleted Account- <steele>
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 21 Nov 2009 06:00:13 PM UTC, comment #2:

I have a prototype paste script using the latest git
I would like feedback on how it could be improved.

;;;;;Paste
(d-PushPosition)
(let loop ((type #f) (staff 0) (count 0))
(set! type (d-GetClipObjType staff count))
(format #t "type is ~a staff ~a count ~a~%" type staff count)
(cond
((= type MEASUREBREAK)
(if (= staff 0)
(d-AddMeasure))
(loop type staff (1+ count)))
((= type STAFFBREAK)
(d-PopPosition)
(if (d-StaffDown)
(begin
(d-PushPosition)
(loop type (1+ staff) 0))))
((>= type 0)
(d-PutClipObj staff count)
(loop type staff (1+ count)))))
(d-PopPushPosition)
(d-PopPosition)
(d-RefreshDisplay)

Richard Shann <rshann>
Project Administrator
Fri 20 Nov 2009 11:06:41 AM UTC, comment #1:

This has reached a tipping point. So much time has been used trying to fix this paste code.
I have introduced a new approach to paste. Now in git.
Once we have a good set of scripts I will declare the built-in obsolete and close this bug.

Richard Shann <rshann>
Project Administrator
Wed 18 Nov 2009 09:07:52 PM UTC, original submission:

The paste command has some further problems that I discovered while trying to write some scripts. Namely, after pasting a note the CursorLeft command isn't allowed to go left past it, until you go right into the next measure. To see this, do this:
from a blank score, enter a single c quarter note, and select it, copy and then delete the note so you have a blank score and a single c on the clipboard.
Enter 2 e quarter notes.
Now paste.
Try to go left with the CursorLeft key. I can't. I can CursorRight, and once I go into the next bar (when there is another bar), things are ok again.

There's something else that's exceedingly bizarre and I can't quite figure out what's going on. Here's what I see though:
Let's say you just did the steps above, and you have 2 e's followed by a c, all quarters. Let's say that you leave the cursor on that c that just was pasted in. Now try to enter a G. It appears at the beginning of the measure!! If, instead of trying to enter the G when you're on the C that was just pasted, you cursor right and then try to enter the G, you end up with it on the 2nd beat of the measure, rather than the 4th where it should be.
-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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 16 May 2010 01:46:25 AM UTCsteeleStatusNone=>Fixed
      Assigned toNone=>steele
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1