Skip to main content

A tool for musicological analysis from audio files. For a symbolic analysis, you can use Music21 (http://web.mit.edu/music21/). Now it is focused on modal music analysis : Scale analysis, tonic detection

Project description

Overview

Music22 is a Python2 package for musicological analysis, especially modal music and melodies. The analysis is done from audio files.

For now, it’s main features are :

  • Fondamental frequencies extraction (using PredominentMelody() from Essentia);

  • Getting the main frequencies as peaks of the probability density function from frequencies;

  • Comparing PDFs using a correlation coefficient;

  • Getting a similarity matrix between melodies.

Installation

To use Music22, you need to manually install Essentia. In futur versions, it will be also possible to use TimeSide.

Then, install Music22 with the following :

pip install music22

Or using git:

git clone https://github.com/AnasGhrab/music22
python setup.py install

Basic Usage

To use Music22 :

from music22 import modalis,scale
path = "path/to/a/folder/with/audios/wav/files/"
Kchants = modalis.melodies(path,transpose='Yes',freqref=300)

Then you can

Kchants.pdf_show()
Kchants.matrix()
Kchants.melodies[0].scale

For more details, please read to the tutorial (in french) :

http://nbviewer.ipython.org/github/AnasGhrab/music22/blob/master/docs/source/examples/barraq.ipynb

Contact

Homepage: http://anas.ghrab.tn

Email:

License

The MIT License (MIT)

Copyright (c) 2015 Anas Ghrab

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

music22-0.0.2.post1-py2.7.egg (34.4 kB view details)

Uploaded Egg

File details

Details for the file music22-0.0.2.post1-py2.7.egg.

File metadata

File hashes

Hashes for music22-0.0.2.post1-py2.7.egg
Algorithm Hash digest
SHA256 9fc05c875f903e258a79ba32aee01b754934058947c2ab5cf480a072c98c650f
MD5 2eb84cf88cce43a73554b6c8db1c7fb0
BLAKE2b-256 ea6f9b4a244cc1cc6e61aad3fbc2e208c55d545bcb6c9da3c5d58aa6f19d4942

See more details on using hashes here.

Supported by

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