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 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:
Anas Ghrab <anas.ghrab@gmail.com>
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.
Metadata
Release files for music22 0.0.2.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| music22-0.0.2.post1-py2.7.egg | Legacy Egg format | - | - | Details |
Release files / music22-0.0.2.post1-py2.7.egg
| Download URL | music22-0.0.2.post1-py2.7.egg |
|---|---|
| Size | 34.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
9fc05c875f903e258a79ba32aee01b754934058947c2ab5cf480a072c98c650f
|
|
BLAKE2b-256 checksum How to use checksums |
ea6f9b4a244cc1cc6e61aad3fbc2e208c55d545bcb6c9da3c5d58aa6f19d4942
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for music22 0.0.2.post1
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.