[MU3] fix #314665: don't force "long" slurs above the staff #7148
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves: https://musescore.org/en/node/314665
NOTE: I am confident the code itself is good,
not as confident we want to make this change for 3.6,
at least not without adding more compatibility handling.
But I wanted to make this available for testing and discussion.
We have code to force "long" slurs above the staff,
which isn't a terrible idea, but we're way too heavy-handed about it.
Anything more than one measure in duration is considered long.
Since this determination is best made subjectively by the user,
the code here removes this check.
However, it will doubtless have an efrect on existing scores.
In most cases, a good one, as slurs that were erroneously forced up
will now be where they really belong, below the staff.
In some cases, though - especially truly long slurs
like ones extending for most of the system -
it could cause too much extra space below the staff.
Ultimately we could consider adding a style setting to control this.
And having the default different for older versus newer scores.