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

expandRepeats don't work as expected #1713

Open
miniil opened this issue May 16, 2024 · 1 comment
Open

expandRepeats don't work as expected #1713

miniil opened this issue May 16, 2024 · 1 comment

Comments

@miniil
Copy link

miniil commented May 16, 2024

music21 version

9.8.7

Problem summary

I have got a musicxml file with 10 measures one repetition from 5 to 10.
I parse my file with convert.parse and then expandRepeats
music21 repeat from measure repeat 5 to 10 correctly and then do another 1 to 10 - 5 to 10

Paste minimal code example here. Most issues can be reproduced with just a few elements.
Attach external files only after attempting to reproduce using a simple stream.
 score = converter.parse(filepath, format='musicxml')
    score = score.expandRepeats()
    measures = score.recurse().getElementsByClass('Measure')
    score.write("musicxml", fp="file.xml")

Expected vs. actual behavior

Expected : Not repeat one more time

@miniil
Copy link
Author

miniil commented May 17, 2024

musicxml file
new PB.txt
the result of expandRepeats
file.txt

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

No branches or pull requests

1 participant