Library for melody analysis based on pitch context vectors.
Project description
component-id: pitchcontext name: pitchcontext description: Python module for melody analysis based on pitch context vectors. type: SoftwareLibrary release-date: 2023-06-02 release-number: 0.1.9 work-package:
- WP3 pilot:
- TUNES
keywords:
- melody
- pitch analysis changelog: licence: release link:
pitchcontext
Python module for melody analysis based on pitch context vectors.
Prerequisites:
- lilypond installed and in command line path.
- convert (ImageMagick) installed and in command line path.
- kernfiles and corresponding .json files with melodic features.
The .json files need to be formatted according to the standard of MTCFeatures.
Installation
The latest release of the pitchcontext module can be installed from pypi:
$ pip install pitchcontext
The development version can be installed by cloning the repository and by using the provided pyproject.toml and poetry. In root of the rep do:
$ poetry install
This creates a virtual environment with pitchcontext installed.
Examples
Requires a Python3 environment with both pitchcontext and streamlit installed. Four examples are provided:
- apps/st_dissonance.py
- apps/st_novelty.py
- apps/st_unharmonicity.py
- apps/st_impliedchords.py
To run:
$ streamlit run st_dissonance.py -- -krnpath <path_to_kern_files> -jsonpath <path_to_json_files>
The -- is needed to pass the following arguments to the python script.
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 pitchcontext-0.1.9.tar.gz
.
File metadata
- Download URL: pitchcontext-0.1.9.tar.gz
- Upload date:
- Size: 25.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.0 CPython/3.8.6 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18de706894cef4f50f0f8a7f1551974e6362199037c872842b048be178cf5bb1 |
|
MD5 | aee9c0be4683da7e43bab59e48a1ae62 |
|
BLAKE2b-256 | d0c3913086cd09bf045dd6354e6a9ad0fdf8f4cbeaa7d5469c36eb7de4508336 |
File details
Details for the file pitchcontext-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: pitchcontext-0.1.9-py3-none-any.whl
- Upload date:
- Size: 26.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.0 CPython/3.8.6 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 981ade39cc12dc2536b4a4da36a3e8c6c2d43f030bee85e7a431a3f0145b6004 |
|
MD5 | 24fb69276841c9d6a4b271e6783d9d02 |
|
BLAKE2b-256 | 0c339272ba84f1da618969486a8ae07120e0f26584993f26caf741ac28751da6 |