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

onset and chroma do not use kwarg-getting #1004

Merged
merged 1 commit into from Oct 8, 2019
Merged

Conversation

bmcfee
Copy link
Member

@bmcfee bmcfee commented Oct 8, 2019

Reference Issue

Fixes #989

What does this implement/fix? Explain your changes.

This PR promotes spectrogram parameters in onset module to function-level parameters, rather than being pulled out of kwargs.

Similarly, n_chroma is now a proper argument to feature.chroma_stft.

This should resolve issues related to preset-overrides for default parameters.

The documentation has been updated accordingly. These changes do not constitute a substantial change to the API, though some keyword parameter orderings have shifted.

@bmcfee bmcfee added the bug Something doesn't work like it should label Oct 8, 2019
@bmcfee bmcfee added this to the 0.7.1 milestone Oct 8, 2019
@bmcfee bmcfee requested a review from lostanlen October 8, 2019 16:13
@bmcfee bmcfee self-assigned this Oct 8, 2019
@beasteers
Copy link
Contributor

Lgtm 👍🏻

Copy link
Contributor

@lostanlen lostanlen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM too! Thanks to @beasteers for the co-CR

@lostanlen lostanlen merged commit 5bf9215 into master Oct 8, 2019
@bmcfee bmcfee deleted the kwarg-defaults branch October 8, 2019 20:04
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.

onset_strength_multi uses nfft=2048 and hop_length=512 by default instead of preset values
3 participants