mirror of
https://github.com/kennethreitz/kennethreitz.org.git
synced 2026-06-05 22:50:17 +00:00
1.4 KiB
1.4 KiB
PyTheory: Music Theory for Humans
pytheory is a Python library that simplifies working with music theory concepts. It provides a simple and intuitive interface for representing musical elements such as notes, scales, chords, and intervals, making it easier to work with music theory in Python.
Features
- Note Representation: PyTheory allows you to represent musical notes using the standard Western notation (
A,Bb,C#, etc.), enabling you to work with notes in different formats. - Scale Generation: The library provides functions for generating scales based on different modes, such as major, minor, pentatonic, and blues scales, allowing you to explore different musical scales.
- Chord Construction: PyTheory supports constructing chords from notes, intervals, or scale degrees, making it easy to create and analyze chords in different keys.
- Interval Calculation: The library allows you to calculate intervals between notes, enabling you to determine the distance between two pitches in a musical context.
This project is highly experimental, and is more of a thought exercise than a practical library. It aims to explore how music theory concepts can be represented and manipulated using Python, and to provide a foundation for further research and development in this area.
Installation
You can install pytheory using pip:
$ pip install pytheory