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

equal duration for all chord notes #418

Merged
merged 4 commits into from
Jan 21, 2025
Merged

equal duration for all chord notes #418

merged 4 commits into from
Jan 21, 2025

Conversation

huispaty
Copy link
Collaborator

Use the duration of the first chord note as the duration for all remaining notes of that chord if their duration is unequal.

@huispaty huispaty requested a review from sildater January 21, 2025 15:03
@huispaty huispaty self-assigned this Jan 21, 2025
@sildater
Copy link
Member

This PR addresses an issue that came up during the parsing of the BPSD data: not all notes in a musicxml \chord group shared the same duration, which shifts the timeline and leads to all manner of strange downstream problems because \chord objects belong to the same voice. This fix assumes this to be an encoding error and sets the duration of all elements to the duration of the first.

@huispaty huispaty merged commit fe19cf9 into develop Jan 21, 2025
3 checks passed
@manoskary manoskary mentioned this pull request Jan 26, 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.

2 participants