Skip to content

Incorrect duration ratio for a duplet taking up odd number of beats (e.g. 5 or 7) #28130

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

Open
4 tasks done
mishmish-dev opened this issue May 24, 2025 · 2 comments
Open
4 tasks done
Labels

Comments

@mishmish-dev
Copy link

Issue type

Engraving bug (incorrect score rendering)

Description with steps to reproduce

The duration multiplier for duplet notes is incorrect. Basically, it yields 2:x total duplet duration is x/y (as irreducible fraction). Because of this, duplets taking up full measure in 5/8 time, will consist of two quavers (8ths), having ratio of 2:5, which is bizzare. I would expect to see two crochets (4ths) and 4:5. Generally, the ratio should be between 1/2 and 1.

A real-world example of music like this would be movt. 4 of Ravel's String Quartet. I believe all score editions you'll find would show crochets in duplets that take up 5/8 measure.

Supporting files, videos and screenshots

Image

IMSLP01617-Ravel_-String_Quartet(Score).pdf

What is the latest version of MuseScore Studio where this issue is present?

4.5.2

Regression

No.

Operating system

macOS 15, I believe it occurs on all platforms

Additional context

I guess this is the code responsible for tuplet creation:

void NotationNoteInput::addTuplet(const TupletOptions& options)

Perhaps it shouldn't try to compute just denominator, but the ratio itself. I'm happy to make a patch myself, looks straightforward, but I'm not 100% sure that I'm not missing anything.

Checklist

  • This report follows the guidelines for reporting bugs and issues
  • I have verified that this issue has not been logged before, by searching the issue tracker for similar issues
  • I have attached all requested files and information to this report
  • I have attempted to identify the root problem as concisely as possible, and have used minimal reproducible examples where possible
@bkunda bkunda added the needs design Design is needed label May 27, 2025
@mishmish-dev
Copy link
Author

mishmish-dev commented May 28, 2025

Hi @bkunda, could you please elaborate on why you changed this issue to feature? Is the feature ability to change the tuplet number independently of the ratio?

@its-not-nice
Copy link
Contributor

@mishmish-dev The feature is for more options for how certain ratios should be automatically determined (not just this, but also for example using 4:3 or 4:6 in compound time, for example), and better, a way to directly specify the rhythmic unit you wish to use for a tuplet (rather than having to calculate the ratio). This is among many other improvements that tuplet handling requires.

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

No branches or pull requests

4 participants