-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 spanner disappearing from closed parts #21883
Conversation
Not sure if it also was supposed to fix slurs reproduced in this comment. |
4b84197
to
0d0c8d9
Compare
Great job!
hairpin_lost2.mp4
slur_lost_strange_case.mp4 |
Actually we must thank you, you're the first who's managed to reproduce these bugs (hence why we couldn't fix them before despite being reported for a while). I'll look into those last ones too |
0d0c8d9
to
098b3b6
Compare
Thank you for your efforts! I think next case shouldn't be covered by this PR. Maybe I need to create separate issue with low priority because "join measures" function looks exotic to me. join_measure_slurs_lost.mp4One last thing just to be sure everything is right. |
Yes, the slur disappears also in the score, so this is an entirely different issue.
No, pretty sure it doesn't |
Something wrong with voices hairpin_lost_voices.mp4 |
Can't reproduce this one. It works fine for me in this branch. |
To repro it's important how the hairpin is added (to which voice) bandicam.2024-03-13.11-13-35-171.mp4(occurs in master as well) |
098b3b6
to
dc91d3c
Compare
Changed a few things, fixed unit tests. Please give it another round :) |
dc91d3c
to
d3100c1
Compare
correction correction
start- and end element are computed during layout for layout purpose. If a spanner (except slur and ties) doesn't have a start-end element it doesn't mean it can't exist codestyle
d3100c1
to
9cef257
Compare
I have a case where I don't understand what's going on and not sure if it's related to this PR. Other case: Staff 1, measure 244-245. Hairpin there will also not survive save/reopen. If the problem is in broken score itself, maybe it's not worth it to fix it at the cost of complicating the code |
This (and you don't know I happy it makes me to say this) is fixed in #21633 😍 |
Tested the cases reproduced in #21286 (comment), #21286 (comment) and #21883 (comment) on Win10/Mac13.6. FIXED |
If you are planning to merge this with 4.3.0 branch, please consider adding #21418 too, because it also fixes some cases for grace and regular slurs. Thank you! |
@mike-spa I've tried the last build from #21633 (on Win10). That issue is fixed for Bass trombone but still happens with Euphonium bandicam.2024-03-21.15-35-24-283.mp4 |
Resolves: #21286 Specifically, the cases reproduced in this comment, and this comment.
Resolves: #19852 (and hopefully many other similar issues reported without clear steps for reproducing)
It seems that the whole problem (for hairpins and other lines) was caused by an error in reading part scores with multi measure rests. This error was masked in previous version because it gets corrected during layout, but since 4.0 we do not layout closed parts to avoid waste of performance, so the error came up. As far as I can tell, this seems to fix it.
The problem with slurs was more involved (and also used to be masked in previous versions for the same reasons).