-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #297957: Ties extended in region after time signature change #5506
fix #297957: Ties extended in region after time signature change #5506
Conversation
@mattmcclinch noob question: why is the unisonIndex relevant here? It seems like we wouldn't care about where the notes are in each chord for the tie. |
It goes back to my original purpose for changing this line in #5275. Writing it this way allows the right notes to be matched up, even if there previously was a tie. |
Resolves: https://musescore.org/en/node/297957. When searching for a note to complete a tie, what matters is not so much that the note doesn't already have a tieBack(), but rather that the two notes have the same unisonIndex().
1d1d8a5
to
f6998a4
Compare
I think I was originally going to compare |
It seems to me that option 2 would be the right approach. Checking for |
I agree that this would be a good way to resolve the issue. Would you implement this approach for this PR? We are planning to finalize a 3.3.4 release tomorrow so if you don't have an opportunity to do that before that time I could try implementing it myself. |
Fixup to f6998a4: needed to avoid a possibility to tie two different notes to one. See #5506 (comment)
I pushed 2d140a3, as far as I understand, this is what is needed to avoid this incorrect ties configuration issues, at least in most common cases. |
Resolves: https://musescore.org/en/node/297957.
When searching for a note to complete a tie, what matters is not so much that the note doesn't already have a tieBack(), but rather that the two notes have the same unisonIndex().