musicnn
Pronounced as "musician", musicnn is a set of pre-trained musically motivated convolutional neural networks for music audio tagging. This repository also includes some pre-trained vgg-like baselines.
Check the documentation and our basic / advanced examples to understand how to use musicnn.
Do you have questions? Check the FAQs.
Installation
pip install musicnn
or, to get bigger models and all the documentation (including jupyter notebooks), install from source:
git clone https://github.com/jordipons/musicnn.git
python setup.py install
Predict tags
From within python, you can estimate the topN tags:
from musicnn.tagger import top_tags
top_tags('./audio/joram-moments_of_clarity-08-solipsism-59-88.mp3', model='MTT_musicnn', topN=10)
['techno', 'electronic', 'synth', 'fast', 'beat', 'drums', 'no vocals', 'no vocal', 'dance', 'ambient']
Let's try another song!
top_tags('./audio/TRWJAZW128F42760DD_test.mp3')
['guitar', 'piano', 'fast']
From the command-line, you can also print the topN tags on the screen:
python -m musicnn.tagger file_name.ogg --print
python -m musicnn.tagger file_name.au --model 'MSD_musicnn' --topN 3 --length 3 --overlap 1.5 --print
or save to a file:
python -m musicnn.tagger file_name.wav --save out.tags
python -m musicnn.tagger file_name.mp3 --model 'MTT_musicnn' --topN 10 --length 3 --overlap 1 --print --save out.tags
Extract the Taggram
You can also compute the taggram using python (see our basic example for more details on how to depict it):
from musicnn.extractor import extractor
taggram, tags = extractor('./audio/joram-moments_of_clarity-08-solipsism-59-88.mp3', model='MTT_musicnn')
The above analyzed music clips are included in the ./audio/ folder of this repository.
You can listen to those and evaluate musicnn yourself!
Metadata
Release files for musicnn 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| musicnn-0.1.0.tar.gz | 29.3 MB | Without provenance | Details for musicnn-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| musicnn-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for musicnn-0.1.0-py3-none-any.whl |
Total release size: 58.6 MB
Release files / musicnn-0.1.0.tar.gz
| Download URL | musicnn-0.1.0.tar.gz |
|---|---|
| Size | 29.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
674ccc1fb638e6894f99197cfc2794b90d96444292ea28cedee96de0f74c4abd
|
|
BLAKE2b-256 checksum How to use checksums |
160ae274cd010cd0b2a2dd63d4aaa3d51a51821ffcc8ee19c76194f835c302bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Release files / musicnn-0.1.0-py3-none-any.whl
| Download URL | musicnn-0.1.0-py3-none-any.whl |
|---|---|
| Size | 29.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f38a4890c648c1ddbb141c5d96d2b0a8cfcd36746002d896989f7b88beb65cfa
|
|
BLAKE2b-256 checksum How to use checksums |
1b6f38229e7d99c438e11114bbfa39c8c39185458c398011d0b6d7d7c7401617
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Security for musicnn 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.