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

Adding the Mel and Log Mel spectrograms. #156

Merged
merged 4 commits into from
Jan 11, 2024
Merged

Conversation

ax-le
Copy link
Contributor

@ax-le ax-le commented Jan 9, 2024

Hi! And Happy New Year!
This pull request aims at implementing two additional features: the Mel and the Log Mel spectrograms.
The Mel filter bank is defined following [1] (i.e. 80 mel coefficients, with a min frequency of 80Hz, and a max frequency of 16kHz.
Note that these Mel spectrograms were developed for signals sampled at 44.1kHZ with 2048 samples per window, while, in the current implementation of MSAF, signals are sampled at 22.05kHz with 4096 frames per window. It should be discussed how to solve that ambiguity (divide by two the max frequency? Change the sampling rate for Mel spectrograms?).
Let me know if I can improve the code in any way!

References
[1] Ullrich, K., Schlüter, J., & Grill, T. (2014, October). Boundary Detection in Music Structure Analysis using Convolutional Neural Networks. In ISMIR (pp. 417-422).

msaf/features.py Outdated Show resolved Hide resolved
@urinieto
Copy link
Owner

Oh wow, that's fantastic, thank you! Should I wait for the TODO feature computation before merging this, @ax-le ?

@urinieto
Copy link
Owner

Never mind, I see you're addressing this here #157

Merging away, thanks for your contribution!

@urinieto urinieto merged commit 897d51c into urinieto:main Jan 11, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

3 participants