mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
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>
25 lines
791 B
ReStructuredText
25 lines
791 B
ReStructuredText
AutoBPM Plugin
|
|
==============
|
|
|
|
The `autobpm` plugin uses the `Librosa`_ library to calculate the BPM
|
|
of a track from its audio data and store it in the `bpm` field of your
|
|
database. It does so automatically when importing music or through
|
|
the ``beet autobpm [QUERY]`` command.
|
|
|
|
To use the ``autobpm`` plugin, enable it in your configuration (see
|
|
:ref:`using-plugins`).
|
|
|
|
Configuration
|
|
-------------
|
|
|
|
To configure the plugin, make a ``autobpm:`` section in your
|
|
configuration file. The available options are:
|
|
|
|
- **auto**: Analyze every file on import.
|
|
Otherwise, you need to use the ``beet autobpm`` command explicitly.
|
|
Default: ``yes``
|
|
- **overwrite**: Calculate a BPM even for files that already have a
|
|
`bpm` value.
|
|
Default: ``no``.
|
|
|
|
.. _Librosa: https://github.com/librosa/librosa/
|