-
Notifications
You must be signed in to change notification settings - Fork 403
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
Musicxml import wrong for voices that don't span whole bar #1633
Comments
With
|
Yes, I have the same, but this is not correct. The half rest in voice1 is wrong in particular. This becomes also apparent if you render the score with show(), where this erroneous half rest causes chaos. In the original, the bar spans a whole note and in the music21 read score, the additional rest causes voice1 to extend the bar. |
I see your problem now! you can replace
with
or you can change
this is just a quick fix that may break other scores though (#991 ) |
Is there any progress on that matter? I need to decide whether I use music21 or my own interpreter (which works in these cases but is in Java) |
music21 version
8.3.0
Problem summary
When dealing with voices that don't span a whole bar, music21 wrongly interprets notes and voices. It adds rests that don't exist and causes simultaneous notes to be not on the same beat.
Steps to reproduce
consider the voices in the treble. I attached the xml file (one bar) to reproduce this.
corresponding file
The text was updated successfully, but these errors were encountered: