Multiple chord symbols attached to same note do not copy as part of range
Severity
S4 - Minor
⇒
S3 - Major
Individual chords symbols - alternate or not - copy fine when I try it, and so do multiple chord symbols selected as a list. However, when copying a range selection, if there are multiple chord symbols on the same note (alternate or not), only one copies. Is this what you mean? If not, please attach your score and explain your problem in more detail.
What I wanted to say is what you say. Since the same chord progression continues multiple times, I wanted to copy it. Only one copy of the part where two chord symbols were entered in one note was copied.
As you say, “alternative or not” doesn't matter.
I am convinced that you have taught me that if you enter two chord symbols in one note, only one will be copied.
Thank you very much.
I believe this is an unintended side effect of the code designed to replace chord symbols already present in the destination - after the first chord is pasted, it is now seen as already in the destination, and thus gets replaced by the second. I guess we need to somehow detect that these were just added. We can't delete all the chord symbols before we start, because the idea was to only replace chord symbols where actually necessary.
We have code to replaced existing chord symbols in the destination
when copying and pasting.
Unfortunately, if there are multiple chord symbols to paste on a tick,
that same code causes each chord symbol to replace the one just pasted.
End result is only the last chord symbol is preserved.
This change uses a container pastedHarmony to track the chords symbols
as we paste them, so we can check and not delete them later._
Comments
Individual chords symbols - alternate or not - copy fine when I try it, and so do multiple chord symbols selected as a list. However, when copying a range selection, if there are multiple chord symbols on the same note (alternate or not), only one copies. Is this what you mean? If not, please attach your score and explain your problem in more detail.
In reply to Individual chords symbols -… by Marc Sabatella
What I wanted to say is what you say. Since the same chord progression continues multiple times, I wanted to copy it. Only one copy of the part where two chord symbols were entered in one note was copied.
As you say, “alternative or not” doesn't matter.
I am convinced that you have taught me that if you enter two chord symbols in one note, only one will be copied.
Thank you very much.
I believe this is an unintended side effect of the code designed to replace chord symbols already present in the destination - after the first chord is pasted, it is now seen as already in the destination, and thus gets replaced by the second. I guess we need to somehow detect that these were just added. We can't delete all the chord symbols before we start, because the idea was to only replace chord symbols where actually necessary.
https://github.com/musescore/MuseScore/pull/5531
This PR fixes the problem at hand, but I realized in testing it there is another issue, see #298541: Chord symbols deleted on paste.
Fixed in branch master, commit 93ac2c5b85
_fix #297883: multiple chord symbols not copied
We have code to replaced existing chord symbols in the destination
when copying and pasting.
Unfortunately, if there are multiple chord symbols to paste on a tick,
that same code causes each chord symbol to replace the one just pasted.
End result is only the last chord symbol is preserved.
This change uses a container pastedHarmony to track the chords symbols
as we paste them, so we can check and not delete them later._
Fixed in branch master, commit 26fc40409f
_Merge pull request #5531 from MarcSabatella/297883-copy-harmony
fix #297883: multiple chord symbols not copied_
Automatically closed -- issue fixed for 2 weeks with no activity.