Linked staves not linking after copy/paste into linked tablature staff
Windows 10, latest master as of today, Nov 24. Copying/pasting tablature into a linked tablature staff creates notes in both staves, but those notes are not linked.
I assume that copying/pasting tablature into a linked tablature staff is a legitimate action. I believe it used to work. There is a workaround, which is copying/pasting only notation staves when they're linked. But there is no error message here, nothing to indicate that anything is wrong unless you look at the debug console or try to edit an unlinked note.
This is how I created the attached score:
1) Create a blank new score, choose instruments
2) Insert a guitar, then add a linked staff to the guitar staff and make the linked staff tablature-6-string-full
3) Copy/paste 1 measure of tablature from another score into the tablature staff
4) Now if I change notes in the either staff, nothing changes in the other staff. The staves are not linked for these notes.
5) If I copy/paste into the notation staff, the notes are linked. The problem is only when I copy/paste tablature. If the linked staff is not tablature, then the notes also link properly after copy/paste.
6) When I close and reopen the attached file, the following messages appear in the debug console:
Element::readProperties: could not link Chord at staff 2
Element::readProperties: could not link Note at staff 2
Element::readProperties: could not link Chord at staff 2
Element::readProperties: could not link Note at staff 2
Element::readProperties: could not link Chord at staff 2
Element::readProperties: could not link Note at staff 2
Element::readProperties: could not link Chord at staff 2
Element::readProperties: could not link Note at staff 2
Element::readProperties: could not link Chord at staff 2
Element::readProperties: could not link Note at staff 2
Element::readProperties: could not link Chord at staff 2
Element::readProperties: could not link Note at staff 2
Element::readProperties: could not link Chord at staff 2
Element::readProperties: could not link Note at staff 2
Element::readProperties: could not link Chord at staff 2
Element::readProperties: could not link Note at staff 2
Attachment | Size |
---|---|
link_test_2.mscz | 9.24 KB |
Comments
Does it work correctly in 2.3.2?
I just did a quick test and it does work in 2.1.0, which is the old version I have installed.
I can reproduce, but only if I save and reload between steps 3 & 4. That is, immediately after the paste, all is fine. but after save/reload, the links are broken. Doesn't even have to be content from another score.
So:
1) load attached score
2) select & copy first measure of tab staff
3) paste to second measure of tab staff
4) verify links work by press Up to raise pitch
5) save, close reload
6) select measure 2 tab staff, hit Up again
Result: changes not linked
Marc, I assume you're last comment is regarding 3.0, not 2.3.2. Can you reproduce your more detailed repro steps in 2.3? Or is this a pure 3.0 issue?
3.0 issues are the only issues at this point.
I was just trying to get a clear answer to Anatoly's question. I am not running 2.3, and you have new repro steps.
My steops in https://musescore.org/en/node/278770#comment-875577 are for 3.0, specifically, build from today. But yes, I just tried, and it works fine in 2.3.2, as I'd have expected (no way would something like this not have been noticed).
This is indeed connected to this summer's fileformat changes. See https://github.com/musescore/MuseScore/pull/4344 for the fix.
Fixed in branch master, commit 54bc9b4859
fix #278770: correct determination of main linked element on writing
Fixed in branch master, commit 4661bf4057
Merge pull request #4344 from dmitrio95/278770-fileformat
fix #278770: score writing issues
Automatically closed -- issue fixed for 2 weeks with no activity.