Skip to content
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 #117066: Selecting notes in triplet quavers embedded in triplet crotchet #3812

Merged
merged 1 commit into from
Jul 13, 2018

Conversation

mattmcclinch
Copy link
Contributor

@mattmcclinch mattmcclinch commented Jul 13, 2018

See https://musescore.org/en/node/117066.

This not only fixes the issue in the bug report, but it allows us to correct rounding errors elsewhere in the code as well.

Every time we do int endTick = cr->tick() + cr->actualTicks, there is a good chance for a rounding error if cr->tuplet() != nullptr. We can instead do Fraction f = cr->ftick() + cr->actualFraction(). Converting back to regular ticks (if we have to) is as easy as calling f.ticks().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants