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: Library release-date: 2023-03-15 release-number: 0.1.4 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
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. Two examples are provided:
- apps/st_dissonance.py
- apps/st_novelty.py
To run:
$ streamlit run st_dissonance.py -- -krnpath <path_to_kern_files> -jsonpath <path_to_json_files>
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
Hashes for pitchcontext-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e337015d6eca41e4e0c2e6aa146eea8e8af8cff88dbea3808140a1a39f3fc2c7 |
|
MD5 | 47f12053070ef5e9e61781de65d7acbc |
|
BLAKE2b-256 | 52092487a5230c0fe9ead96a824fcc912924daa9de39cd83b07fb3a9bb5f11b4 |