Skip to main content

A library to handle musical chords in python.

Project description

Build Status

Overview

Pychord is a python library to handle musical chords.

Installation

$ pip install pychord

Usage

Create a Chord

>>> from pychord import Chord
>>> c = Chord("Am7")
>>> c.info()

"""
Am7
root=A
quality=m7
appended=[]
on=None
"""

Transpose a Chord

>>> from pychord import Chord
>>> c = Chord("Am7/G")
>>> c.transpose(3)
>>> print(c)

"Cm7/Bb"

Get component notes

>>> from pychord import Chord
>>> c = Chord("Am7")
>>> c.components()

['A', 'C', 'E', 'G']

Create chord progressions

>>> from pychord import ChordProgression
>>> cp = ChordProgression(["C", "G/B", "Am"])
>>> print(cp)
C | G/B | Am
>>> cp.append("Em/G")
>>> print(cp)
C | G/B | Am | Em/G
>>> cp.transpose(+3)
>>> print(cp)
Eb | Bb/D | Cm | Gm/Bb

Supported Python Versions

  • 2.7

  • 3.3 and above

License

  • MIT License

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

pychord-0.2.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pychord-0.2.0-py2.py3-none-any.whl (14.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pychord-0.2.0.tar.gz.

File metadata

  • Download URL: pychord-0.2.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pychord-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d04b05bcb084da4a0ff4751863376650488a053f8328ab33d8b2433061f14cfc
MD5 be3a7137c678f9f36a45f587260fe5fd
BLAKE2b-256 357b0a2faf66e394f4bd1f5b9e647cec96d7160d64955e2b3b362390a392f1c1

See more details on using hashes here.

File details

Details for the file pychord-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pychord-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7b3f6b1c0902c1207da4858522a46dfe69a2755ab44dfaceb03eaa2cb5cde400
MD5 8ffc2ac82746679e028ee4fd593cb925
BLAKE2b-256 689be2bf117e4658f897b0c43862e5bae60e600dd447d620fd6b4cfc58875b7c

See more details on using hashes here.

Supported by

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