Skip to main content

Library for melody analysis based on pitch context vectors.

Project description

pitchcontext

Library 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

Use 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pitchcontext-0.1.2.tar.gz (18.1 kB view hashes)

Uploaded Source

Built Distribution

pitchcontext-0.1.2-py3-none-any.whl (20.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page