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

Support for <tuplet-dot/> and <normal-dot/> tags when parsing tuplets #429

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

leleogere
Copy link
Collaborator

@leleogere leleogere commented Feb 5, 2025

Following my previous PR #414, I noticed that it didn't cover all possible tuplets cases. In particular, in addition to allow things like "5 eighth notes in the space of 2 quarter notes", MusicXML also allows things like "5 eighth notes in the space of 2 dotted quarter notes". My previous implementation wasn't taking into account the eventual dots in the tuplet normal duration.

Those dots can be seen in two places:

  • As <tuplet-dot/> in <tuplet-normal> or <tuplet-actual> tags (themselves in <tuplet type="start"> tags)
  • As <normal-dot/> tags in <time-modification> tags (not sure why there isn't any <actual-dot/> in the MusicXML spec)

I've adapted the tuplet test to test one of those dotted cases too.

References:

@leleogere leleogere requested a review from manoskary February 5, 2025 17:01
@leleogere leleogere self-assigned this Feb 5, 2025
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.

1 participant