Debian Codegraph @

docs/plugins/acousticbrainz.rst

raw
1 AcousticBrainz Plugin
2 =====================
3
4 The ``acousticbrainz`` plugin gets acoustic-analysis information from the
5 AcousticBrainz_ project. This plugin is now deprecated since the AcousicBrainz
6 project has been shut down.
7
8 As an alternative the beets-xtractor_ plugin can be used.
9
10 .. _acousticbrainz: https://acousticbrainz.org/
11
12 .. _beets-xtractor: https://github.com/adamjakab/BeetsPluginXtractor
13
14 Enable the ``acousticbrainz`` plugin in your configuration (see
15 :ref:`using-plugins`) and run it by typing:
16
17 ::
18
19 $ beet acousticbrainz [-f] [QUERY]
20
21 By default, the command will only look for AcousticBrainz data when the tracks
22 doesn't already have it; the ``-f`` or ``--force`` switch makes it re-download
23 data even when it already exists. If you specify a query, only matching tracks
24 will be processed; otherwise, the command processes every track in your library.
25
26 For all tracks with a MusicBrainz recording ID, the plugin currently sets these
27 fields:
28
29 - ``average_loudness``
30 - ``bpm``
31 - ``chords_changes_rate``
32 - ``chords_key``
33 - ``chords_number_rate``
34 - ``chords_scale``
35 - ``danceable``
36 - ``gender``
37 - ``genre_rosamerica``
38 - ``initial_key`` (This is a built-in beets field, which can also be provided by
39 :doc:`/plugins/keyfinder`.)
40 - ``key_strength``
41 - ``mood_acoustic``
42 - ``mood_aggressive``
43 - ``mood_electronic``
44 - ``mood_happy``
45 - ``mood_party``
46 - ``mood_relaxed``
47 - ``mood_sad``
48 - ``moods_mirex``
49 - ``rhythm``
50 - ``timbre``
51 - ``tonal``
52 - ``voice_instrumental``
53
54 Warning
55 -------
56
57 The AcousticBrainz project has shut down. To use this plugin you must set the
58 ``base_url`` configuration option to a server offering the AcousticBrainz API.
59
60 Automatic Tagging
61 -----------------
62
63 To automatically tag files using AcousticBrainz data during import, just enable
64 the ``acousticbrainz`` plugin (see :ref:`using-plugins`). When importing new
65 files, beets will query the AcousticBrainz API using MBID and set the
66 appropriate metadata.
67
68 Configuration
69 -------------
70
71 To configure the plugin, make a ``acousticbrainz:`` section in your
72 configuration file. The available options are:
73
74 - **auto**: Enable AcousticBrainz during ``beet import``. Default: ``yes``.
75 - **force**: Download AcousticBrainz data even for tracks that already have it.
76 Default: ``no``.
77 - **tags**: Which tags from the list above to set on your files. Default: []
78 (all).
79 - **base_url**: The base URL of the AcousticBrainz server. The plugin has no
80 function if this option is not set. Default: None