-
Notifications
You must be signed in to change notification settings - Fork 19
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
Tuplet parsing issue in measure 125 of Chopin/Sonata_2/1st_no_repeat
#420
Comments
The issue was caused by a malformed XML (what a surprise) : the first rest of the voice 6 didn't have the |
It seems that the measures 133, 134 and 135 were also problematic for this same missing tuplet start tag. After adding back all the missing tags, the second issue, the one assigning |
Hello good catch. Adding a warning would be definitely nice. I was also wondering if we should have a similar approach to musescore and correct this on import with the warning of course. |
I might be possible to try to fix it ourselves, however, I guess that there could be quite complex cases happening (nested tuplets?). In simple cases, I guess a naive approach would be to:
In case of missing I'll open a PR to at least add a warning, and we can discuss the correction there if you think it is worth implementing this. |
Here are the measures 125 and 126 of Chopin/Sonata_2/1st_no_repeat:
They each contain 3 tuplets, two on voice 5 and one on voice 6. However, when parsing the score with the following code, we can see that only two of them:
More interestingly, when I'm extracting those two measures and pasting them into a new empty score on its own, the parsing seems to work as expected:
I'm going to investigate a bit about that, but if you have any insights about the origin of this bug it would save me some time!
Another note, the start note and the end note of the first tuplet in measure 126 belong to different voices, which should not be possible afaik. However, this does happen quite often in other measures (e.g. measure 127, 128, 131...) so it might be a completely unrelated issue. Should I open another issue to deal with that?
The text was updated successfully, but these errors were encountered: