-
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 more anchors-related issues #23190
Merged
RomanPudashkin
merged 10 commits into
musescore:master
from
mike-spa:fixEndOfDurationBugs
Jun 18, 2024
Merged
Fix more anchors-related issues #23190
RomanPudashkin
merged 10 commits into
musescore:master
from
mike-spa:fixEndOfDurationBugs
Jun 18, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dcf8d9b
to
018ef39
Compare
oktophonie
approved these changes
Jun 12, 2024
018ef39
to
5c0be1b
Compare
5c0be1b
to
1ed6794
Compare
- Find the correct measure in the linked score - Ensure that the same TimeTickAnchor is always created in every part - Correct dynamic copy constructor
06059ec
to
b41409f
Compare
RomanPudashkin
approved these changes
Jun 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: #22880
Resolves: #23185
Resolves: #23206
Resolves: #23209
A couple of noteworthy changes:
When two segments are at the same tick (i.e. happen at the same time), we establish which one goes before from the order of this enumeration. Given that the TimeTick segment isn't really an engraving thing but an invisible ruler, the choice of putting it before or after the other segments seemed just a matter of convention, so I originally put it last. From working on these issues thoguh I've realized that the more convenient choice is to put it before ChordRest type. This simplifies several things downstream.
![image](https://private-user-images.githubusercontent.com/93707756/339403783-8edd9668-46a9-4d3a-a364-192c02cce88d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAzMjM3MDAsIm5iZiI6MTcyMDMyMzQwMCwicGF0aCI6Ii85MzcwNzc1Ni8zMzk0MDM3ODMtOGVkZDk2NjgtNDZhOS00ZDNhLWEzNjQtMTkyYzAyY2NlODhkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA3VDAzMzY0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVlODk5Yzc4NmNiZDI1NGEzNGFmOTRkNDg0ZWI5MjZkMzk5MmNhYjA0NGQ1NmE0MTI5ODY4Yjk0MTJkNGY4ZjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ahVGiQpkuDSPu5JWSKmt7cOVDoDcF-Ud4rAPbAGIsAw)
I've also realized that it makes sense for Segment::allElementsInvisible to always return true for TimeTick segments, because from an engraving point of view anchors are always invisible. This also simplifies a few things downstream.