Open leleogere opened 1 month ago
Hi @leleogere Thanks for the issue and code to reproduce it! I can get it to work using a small change in your code and a patch to the export function:
extracted_measure = pt.score.Part(id="measure", quarter_duration = score._quarter_durations[0])
export_musicxml
.Thank you for your help! I'll use this patch for now as it fix the issue, and let you know if I can spot any abnormal behavior.
The fact that it does not happen on all measures is quite bizarre.
I'm not sure if it is related to Partitura or MuseScore, but I'm facing weird behavior when I try to extract a part of a score:
Here is the MusicXML rendered by MuseScore:
Here is the list of elements in the partitura
Part
object:The
TimeSignature
object does start at 0, but when I open the MusicXML file in MuseScore, I get it in the middle of the measure, resulting in the two hands not being in sync and the measure containing apparently 8 beats.Interestingly, it does not fail for every measure, for example, the measure 11 of this piece fails, but the 10 works as expected.
You can find the problematic MusicXML here.
Here is the code to reproduce the issue (the measure in question is the measure 11 from Chopin's Etude op10 no12):