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. image: https://github.com/polifonia-project/pitchcontext/blob/main/image/vector_example_hor.png type: SoftwareLibrary release-date: "2023-06-02" release-number: 0.1.9 doi: 10.5281/zenodo.8020644 work-package:
- WP3 pilot:
- TUNES
keywords:
- melody
- pitch analysis licence:
- MIT contributors:
- P. van Kranenburg https://github.com/pvankranenburg project: polifonia-project related-components:
- story:
- Mark#1_FolkMusic
- Brendan#1_FindTraditionalMusic
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pitchcontext-0.1.11.tar.gz.
File metadata
- Download URL: pitchcontext-0.1.11.tar.gz
- Upload date:
- Size: 25.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.8 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bcbbf29c37f8df8ea06fdf4c404e7bf5d21cd3cb7ead782abfb98e9ff5f28e9
|
|
| MD5 |
8fe02815a351c4f094008accfe7a7b23
|
|
| BLAKE2b-256 |
e3782259f130fd174accd11ce6170bf5fb16860961234bbd322d2060a5124090
|
File details
Details for the file pitchcontext-0.1.11-py3-none-any.whl.
File metadata
- Download URL: pitchcontext-0.1.11-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.8 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4eb2009707d91475513dcd8e19fde783b557a2465e7ae340920ea0e1eeb8beea
|
|
| MD5 |
53fd7aa88964ca14b1332477c179a542
|
|
| BLAKE2b-256 |
45dcc2c1cd116d92a1e4299d6823e46c4f023ba0bc12e70d3d4422f666d5b79a
|