Skip to content
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

clip effects.split output to duration #619

Merged
merged 1 commit into from
Sep 1, 2017
Merged

clip effects.split output to duration #619

merged 1 commit into from
Sep 1, 2017

Conversation

bmcfee
Copy link
Member

@bmcfee bmcfee commented Sep 1, 2017

Reference Issue

Fixes #617

What does this implement/fix? Explain your changes.

effects.split was returning sample indices beyond the input duration, as a result of frame-center to sample conversion. This PR clips the sample indices to the valid range.


This change is Reviewable

@bmcfee bmcfee added the bug Something doesn't work like it should label Sep 1, 2017
@bmcfee bmcfee added this to the 0.6.0 milestone Sep 1, 2017
@bmcfee bmcfee self-assigned this Sep 1, 2017
@bmcfee
Copy link
Member Author

bmcfee commented Sep 1, 2017

Reviewed 2 of 2 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@bmcfee bmcfee merged commit 3594fdb into master Sep 1, 2017
@bmcfee bmcfee deleted the split-overshoot branch September 1, 2017 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something doesn't work like it should
Development

Successfully merging this pull request may close these issues.

librosa.effects.split() returns out-of-bound index
1 participant