Closed xavriley closed 1 month ago
Hi @xavriley
thanks for the excellent issue including MIDI file! I found the bug in get_time_maps_from_alignment
where arrays of idx are cast to numpy dtype objects if all score and performance idx are unique. I created a PR to the develop branch here: #360 with these changes, save_match
should work again. You may use the "fix 358" branch or the "develop" branch as soon as the PR is merged (for instance clone the branch, navigate to the repo and then install with pip install .
). I don't know when the fix will be in a proper release though. Let us know if you encounter any more issues!
I have two MIDI files - one is performance midi and one is score midi.
After aligning them with parangonar the alignment seems to succeed and shows that the notes are mostly matched.
However I can't seem to run
pt.save_match()
successfully. It fails with the following error:Stepping through this code it does look like the values in
score_unique_onset_idxs
are arrays of integers. Am I doing something wrong or is there a bug in this part of the code?My full code for this is below, along with a link to the file I am using to test.
File: https://www.dropbox.com/scl/fi/xyfe3yo7e5ni3e1muf72w/Sax.mid?rlkey=t34r5t0mgjjf2r0os6mvwk5ra&dl=0