Pasting triplets over a barline corrupts measures

• Jul 3, 2010 - 21:24
Type
Functional
Severity
S2 - Critical
Status
closed
Project
Tags

Steps to reproduce bug
1. Open "Copy-paste tuplets over barline.mscz" (attached below)
2. Copy the first four measures of the bottom staff
3. Select the quarter rest in measure 1 of the top staff
4. Edit > Paste
5. File > Save
6. File > Reload
7. Select all the notes in the top staff
8. Press delete.

--> Measures 5 and 6 are now corrupted (see "Capture.PNG" below).

Expected behavior: After step 4 the score should look like "Capture2.PNG" (below). This is a screen shot of Finale 2007.

Actual behavior: MuseScore gets confused when the tuplet crosses the barline.

MuseScore version: 0.9.6 stable.

(Operating System: Windows 7)

Preliminary report by SKB: http://musescore.org/en/node/6334

Attachment Size
Copy-paste tuplets over barline.mscz 1.88 KB
Capture.PNG 13.44 KB
Capture2.PNG 185.68 KB

Comments

Status (old) needs info active

Under Windows 8, commit b000104
By following the steps, even after step 4 there is a corruption, see image attached. The triplets pasted into the top staff are not correctly divided into the two measures. Saving and reloading brings to strong corruption (measures without rests or notes, for example).

Attachment Size
copy-paste-tuplets.png 15.96 KB

While pasting a triplet half before and half after a bar line can be solved, I suspect that the possibility to paste tuplets across bar lines in general raises more problems than it could solve.

For instance, what should happen if the 2-plet in the middle of the first measure is copied and pasted into the select area? There would be 1/3 of the 2-plet at the end of the first measure and 2/3 of it in second measure; how would you write this as 2-plet?

NOT FOUND: 1

And this is easy, as "2-in-place-of-3" can also be written as dotted notes (but this would require to part from the tuplet paradigm). What about 5-plets, 7-plets, ...? What about nested tuplets?

I suspect the only general, manageable, solution is to inhibit tuplets pasting across measure boundaries.

If someone has more experience than I have with irregular rhythms, elaborations are welcome!

Thanks,

M.

Attachment Size
test_tuplet_copy_example.png 3.32 KB

BTW, not only is the score corrupt, but trying to edit it to fix it is likely to crash.

Here are steps to reproduce from scratch:

1) new score, 4/4, 3 or more measures
2) note entry
3) first measure: 6 C Ctrl+3 B A G
4) second measure: 5 F
5) exit note entry
6) select first measure
7) click quarter rest on beat 2 of second measure
8) paste

Result: score is now corrupt (wrong number of beats in measures 2 & 3)

Now:

9) click measure 3 to select it

Result: crash

1.3 generated similar corruption, but it didn't crash when you tried to fix it.