Skip to content

librosa.feature.melspectrogram function type error #11

@basisvectors

Description

@basisvectors

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions