bugDenemo - Bugs: bug #28047, Pasting Oddities

 
 

bug #28047: Pasting Oddities

Submitter:  None
Submitted:  Wed 18 Nov 2009 09:07:52 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  steele
Originator Name:  Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-05-16 steele StatusNone Fixed
        Assigned toNone steele
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code