-
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
estimate_symbolic_duration
breaks for some unknown durations
#371
Comments
What should the expected duration or the intended behavior be? Currently, the Another solution would be to allow the function to return |
Thanks for looking into this! I think the intended behavior should be to a) not raise exceptions and b) not give wrong values. |
Ok, I think I have a solution, I will add you as the reviewer. |
loading
beethoven_op053_mv3.match
from the Zeilinger dataset throws an error inestimate_symbolic_duration
. The inputs to reproduce without the file arept.utils.estimate_symbolic_duration(2496, 96)
. Looking into this, for most smaller fractions returns nonsensical values (like{'type': 'long', 'actual_notes': 1, 'normal_notes': 2}
) if it doesn't hit a symbolic duration, for larger fractions the method fails. Test script:The text was updated successfully, but these errors were encountered: