-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add autobpm plugin #4923
Add autobpm plugin #4923
Conversation
ad91415
to
fbe89dd
Compare
Tested it:
I wonder if there's a smarter way to set the initial tempo that librosa uses for estimations... |
Another issue:
edit: this is only happening on MP3s, I've committed something to handle the error. |
Another error:
Edit: the track that failed this is only 1:25.. I was expecting it to be a long one... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!! This looks really great! It's a simple plugin but looks very useful.
I have just a couple of low-level suggestions; let us know if you have any questions.
From the traceback, this very much looks like a |
That's very possible, what do you recommend I do? |
I'd have suggested to report at librosa or soundfile, but there's already bastibe/python-soundfile#361 which didn't seem to garner much attention (which is unfortunate, since this really looks like soundfile blindly trusting some audio metadata, and I'd argue that audiofiles should really be treated as untrusted input here). From beets' side, it might be prudent to have a quite generic EDIT: Nevermind, this is pretty much what @sampsyo already brought up in the discussion around the |
If we are all good now, please let me know and I can rebase and squash before merging :) EDIT: nevermind, all squashed! |
6df94e8
to
f475133
Compare
This plugin uses librosa to automatically calculate the BPM for a track. It is based on the keyfinder plugin, and rounds the BPM to an int. Co-authored-by: Adrian Sampson <adrian@radbox.org>
All looks good with the new exception logging; let's call this good! |
awesome, thanks everyone for the review! |
@tandy-1000 wow! Just here to say: Many many thanks! I am a DJ and often what other existing bpm beets plugins give me is not satisfactory! Especially with "off-beaty" Drum And Bass I get a lot of wrong values (100-110-ish results LOL). Anyway, hope to be able to test this awesome new feature soon! |
This plugin uses librosa to automatically calculate the BPM for a track. It is based on the keyfinder plugin, and rounds the BPM to an int.
It's quite slow, but should be useful for DJs :).
Description
Fixes #3856
To Do
docs/
to describe it.)docs/changelog.rst
near the top of the document.)