Nendo plugin for automatic music information retrieval.
Project description
Nendo Plugin Classify Core
Automatic music information retrieval (based on essentia).
Features
- Extract musical features from a
NendoTrack
or aNendoCollection
- Use descriptive features to filter, search and sort your library
- Extract rich features to annotate datasets for training custom models
Installation
-
pip install nendo-plugin-classify-core
Note: Installing this plugin together with another nendo plugin that uses
essentia
, you are likely to run into the runtime errorError: module 'essentia.standard' has no attribute 'TensorflowPredictEffnetDiscogs'
. See the corresponding entry in the troubleshooting guide below for instructions on how to fix this issue.
Usage
Take a look at a basic usage example below. For more detailed information, please refer to the documentation.
For more advanced examples, check out the examples folder. or try it in colab:
from nendo import Nendo, NendoConfig
nd = Nendo(config=NendoConfig(plugins=["nendo_plugin_classify_core"]))
track = nd.library.add_track(file_path='/path/to/track.mp3')
track = nd.plugins.classify_core(track=track)
data = track.get_plugin_data(plugin_name="nendo_plugin_classify_core")
print(data)
tracks_with_filtered_tempo = nd.library.filter_tracks(
filters={"tempo": (170, 180)},
plugin_names=["nendo_plugin_classify_core"],
)
assert len(tracks_with_filtered_tempo) == 1
Troubleshooting
Essentia can't find the embedding model
When I try to run the plugin, I get the following error:
Failed to import plugin 'nendo_plugin_classify_core'. Error: module 'essentia.standard' has no attribute 'TensorflowPredictEffnetDiscogs'
This is due to the fact that you have essentia
and essentia-tensorflow
installed at the same time, possibly because you installed another nendo plugin that uses essentia
, like e.g. nendo_plugin_quantize_core. The fix in this case is to reinstall essentia, this time only installing the essentia-tensorflow
package:
pip uninstall -y essentia essentia-tensorflow
pip install essentia-tensorflow
Contributing
Visit our docs to learn all about how to contribute to Nendo: Contributing
License
Nendo: MIT License
Essentia: Affero GPLv3 license
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for nendo_plugin_classify_core-0.2.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b685fac5ca952de8000a8c8125a365bc1ce630100bafa3ec91b92823de17f345 |
|
MD5 | 7fd05d13d20b5e48fed13a4a15827743 |
|
BLAKE2b-256 | e540c1a73624f9f82d30f0d9da90f1db1165c05dad8ddbde907e5d49c1d2099f |
Hashes for nendo_plugin_classify_core-0.2.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15478693ca1db966e78ac475a78558a7ff20fd2dfac1eb28bbf02f6e3a20d3db |
|
MD5 | eb0cc75a24027f28ae020e326df36b65 |
|
BLAKE2b-256 | 73a89b7b65a0ca0ac965abaa530a4c482c5c3730043ba9d17cd708c00efa8658 |