A tool for musicological analysis from audio files. 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, if you have a GitLab account, using git:
git clone https://gitlab.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:
Anas Ghrab <anas.ghrab@gmail.com>
License
GNU General Public License
https://www.gnu.org/licenses/gpl-3.0.en.html
https://gitlab.com/AnasGhrab/music22/blob/master/LICENSE
Copyright (c) 2015-2017 Anas Ghrab
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
File details
Details for the file music22-0.0.8.tar.gz
.
File metadata
- Download URL: music22-0.0.8.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 867c659c21f092edd195d550c525f026204e9210a2880454a7470addb690b668 |
|
MD5 | f5610fbd8f82bac7dc870eafcb44b2dd |
|
BLAKE2b-256 | 559cd237bacf33cea5625b091c846f2888d31e163c1d1f5e81e2e72579438c86 |
File details
Details for the file music22-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: music22-0.0.8-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aabfeafdc68b261afc55e4ac1374d5d92ad11cd228ce46604c95a2d03f4c900 |
|
MD5 | a827f365996d1c63cc2e93c9d1051a34 |
|
BLAKE2b-256 | 24f2b8dd6fb3e1bd4b00a7c3ce877383b647f7ecd64893fcac63e3ab9639b590 |