-
Notifications
You must be signed in to change notification settings - Fork 117
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
return indices of adjusted intervals #229
Comments
Seems reasonable, but changing the output pattern of the function will break backwards compatibility, so can't be taken lightly. In particular, if there is scarce interest in this, I would suggest instead having users implement a custom function based on
Can you give me a more specific example? |
I don't think I understand the suggested modification. Can you provide an example input and output of the proposed behavior? |
If not or all is ok, we will close the issue. |
very sorry for the slow responses.
Not to break backwards compatibility, one can do boolean parameter, return_indices and set it to false by default, no? Example:
I have a file with annotations of lyrics lines. I need to work with particular segment of the song, for which I have the t_min and t_max. I would like to pick up only the relevant lines for that segment. The only way to take their content (lyrics) is by their ordered indices in the original file. Or maybe there is a better function, which could do that? |
I request an additional output of
mir_eval.util.adjust_intervals():
idx_start:
intthe idx in the parameter intervals of the returned new_intervals[0]
idx_end:
intthe idx in the parameter intervals of the returned new_intervals[-1]
This could be useful when marking intervals of interest in a large file for later usage.
The text was updated successfully, but these errors were encountered: