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

Enhance tuplet direction detection based on voices #17520

Merged
merged 2 commits into from May 15, 2023

Conversation

asattely
Copy link
Contributor

@asattely asattely commented May 10, 2023

Resolves: #16874

Empty tuplets would always default to 'up' as their auto direction, even when in voices 2 and 4. Now voices 2 and 4 empty tuplets face downwards.

I also noticed a TODO comment in there for nested tuplets, which I also replaced with some simple logic to make sure that the outer tuplet follows the direction of the inner ones (which are laid out first).

@@ -92,7 +92,7 @@ void TupletLayout::layout(Tuplet* item, LayoutContext&)
// find out main direction
//
if (item->_direction == DirectionV::AUTO) {
int up = 1;
int up = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any new vtests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vtest added!

@oktophonie oktophonie added the vtests This PR produces approved changes to vtest results label May 10, 2023
@RomanPudashkin RomanPudashkin merged commit 370d177 into musescore:master May 15, 2023
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vtests This PR produces approved changes to vtest results
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Brackets for empty tuplets drawn on wrong side of stave when in downstemmed voice
3 participants