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

librosa.feature.melspectrogram function type error #11

Open
basisvectors opened this issue Mar 29, 2023 · 2 comments
Open

librosa.feature.melspectrogram function type error #11

basisvectors opened this issue Mar 29, 2023 · 2 comments

Comments

@basisvectors
Copy link

very small typo

https://github.com/ctralie/GraphDitty/blob/master/SongStructure.py#L168

    S = librosa.feature.melspectrogram(y, sr=sr, n_mels=128, hop_length=hop_length)

throws
TypeError: melspectrogram() takes 0 positional arguments but 1 positional argument (and 2 keyword-only arguments) were given
fix:

    S = librosa.feature.melspectrogram(y=y, sr=sr, n_mels=128, hop_length=hop_length)

thank you for making this code available, your papers were very insightful.

@bmcfee
Copy link
Collaborator

bmcfee commented Mar 29, 2023

This isn't a typo, it's just that graphditty was written (long) before librosa 0.10.0 made positional arguments a requirement. But yes, graphditty could/should be updated to support 0.10.0+

@ctralie
Copy link
Owner

ctralie commented Apr 4, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants