Skip to main content

Music22: Modal Music Analysis

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

Metadata

Release files for music22 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for music22 0.0.8
File Size Uploaded Provenance Actions
music22-0.0.8.tar.gz 24.0 kB Without provenance Details for music22-0.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for music22 0.0.8
File Interpreter ABI Platform Actions
music22-0.0.8-py3-none-any.whl Python 3 none any Details for music22-0.0.8-py3-none-any.whl

Total release size: 49.4 kB

Release files / music22-0.0.8.tar.gz

Download URL music22-0.0.8.tar.gz
Size 24.0 kB
Tags Source
SHA-256 checksum
How to use checksums
867c659c21f092edd195d550c525f026204e9210a2880454a7470addb690b668
BLAKE2b-256 checksum
How to use checksums
559cd237bacf33cea5625b091c846f2888d31e163c1d1f5e81e2e72579438c86
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / music22-0.0.8-py3-none-any.whl

Download URL music22-0.0.8-py3-none-any.whl
Size 25.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9aabfeafdc68b261afc55e4ac1374d5d92ad11cd228ce46604c95a2d03f4c900
BLAKE2b-256 checksum
How to use checksums
24f2b8dd6fb3e1bd4b00a7c3ce877383b647f7ecd64893fcac63e3ab9639b590
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for music22 0.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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