-
Notifications
You must be signed in to change notification settings - Fork 18
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
Tempo curves example from doc broken #378
Comments
Hello! Thank you for raising this issue! I'll fix the import in the tutorial. As for the second error: you get this warning because the note IDs in the score note array and in the alignment do not correspond. If you print them, you see that the alignment contains note IDs ending with "-1" which indicates the number of repeats. The reason is that for the match files of (n)ASAP all score notes have a suffix, because the original IDs come from musicxml scores, but in the performance (and the corresponding match files) might contain repeats, jumps, etc. The fix is very short, just unfold (n)ASAP scores to the maximal length like so |
Works like a charm! Thank you! |
good catch! sorry for the slow merge/release process! |
Hello,
I tried the example to generate tempo curves of two performances provided at https://partitura.readthedocs.io/en/latest/Tutorial/notebook.html#Comparing-tempo-curves
However, it does not seem to work anymore. First, it seems that the
get_time_maps_from_alignment
function has be moved frompt.utils.music
topt.musicanalysis.performance_codec
, and even when setting the correct path, I get errors about indexing:Here is a sample to reproduce the issue:
Python: 3.12
Partitura: 1.5.0
The text was updated successfully, but these errors were encountered: