Skip to main content

Pronounced as "musician", musicnn is a set of pre-trained deep convolutional neural networks for music audio tagging

Project description

musicnn

Pronounced as "musician", musicnn is a set of pre-trained deep convolutional neural networks for music audio tagging.

Check the documentation and some basic / advanced examples for additional ideas on how to use musicnn.

Do you have questions? Check the FAQs.

Installation

pip install musicnn

or, to get all the documentation (including the Jupyter Notebooks), install from source:

git clone https://github.com/jordipons/musicnn.git

python setupy.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', 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, print to the topN tags on the screen:

python -m musicnn.tagger file_name.ogg --print
python -m musicnn.tagger file_name.au --model 'MTT' --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' --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')

Taggram

The above analyzed music clips are included in the ./audio/ folder of this repository.

You can listen to those and evaluate musicnn yourself!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

musicnn-0.0.2.tar.gz (8.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

musicnn-0.0.2-py3-none-any.whl (8.3 MB view details)

Uploaded Python 3

File details

Details for the file musicnn-0.0.2.tar.gz.

File metadata

  • Download URL: musicnn-0.0.2.tar.gz
  • Upload date:
  • Size: 8.3 MB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for musicnn-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ba9e0875f59965c91fa0a729955eda35724daf923f614b9895fa89b847842edd
MD5 851748dc11f86d40836b45a95125c50f
BLAKE2b-256 5a854e413f95f86f4f4e2b1a6be035b34b6132fa1a5ae00529468401893bf4b3

See more details on using hashes here.

File details

Details for the file musicnn-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: musicnn-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for musicnn-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ea7a05deb32a7ed9dfe019d05fb30692d194c37572f010494090636d5872186a
MD5 c94125b36f982d9cc1887f4807ee7e16
BLAKE2b-256 f78ba673c0f33e981f206d4fe7c1f3715e3674114df8c84d4b626324831419eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page