Skip to main content

A tool for musicological analysis from audio files. Now it is focused on modal music analysis : Scale analysis, tonic detection

Project description


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.


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, if you have a GitLab account, using git:

git clone
python 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


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





GNU General Public License

Copyright (c) 2015-2017 Anas Ghrab

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

music22-0.0.8.tar.gz (24.0 kB view hashes)

Uploaded Source

Built Distribution

music22-0.0.8-py3-none-any.whl (25.4 kB view hashes)

Uploaded Python 3

Supported by

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