Skip to main content

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:

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

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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

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

Hashes for music22-0.0.8.tar.gz
Algorithm Hash digest
SHA256 867c659c21f092edd195d550c525f026204e9210a2880454a7470addb690b668
MD5 f5610fbd8f82bac7dc870eafcb44b2dd
BLAKE2b-256 559cd237bacf33cea5625b091c846f2888d31e163c1d1f5e81e2e72579438c86

See more details on using hashes here.

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

Hashes for music22-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9aabfeafdc68b261afc55e4ac1374d5d92ad11cd228ce46604c95a2d03f4c900
MD5 a827f365996d1c63cc2e93c9d1051a34
BLAKE2b-256 24f2b8dd6fb3e1bd4b00a7c3ce877383b647f7ecd64893fcac63e3ab9639b590

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 files

0.0.5

2 files

0.0.2.post1

1 file

0.0.2

2 files

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page