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)
>>> c

"Cm7/Bb"

Get component notes

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

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

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.1.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

pychord-0.1.1-py2.py3-none-any.whl (11.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for pychord-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a8e619c72c888aa9192678e0117984786685ddc1fb4ff70ad8dc933ed98463c1
MD5 6eca909023cae727378b46e02af0e803
BLAKE2b-256 014a960a69a1ffa156ad64e80c5f9a3200923b1fad827525331c058814434eef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pychord-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 48a3cce09567d161fdd2f8d2d1d2dcddfa4e5730bfad5b2b6f4edd240389bdd3
MD5 9dfe89fc21005efaddd0ba6e06e145f9
BLAKE2b-256 cf407b996ff48b818f7fd431dae5da7ba2e2cbae6ef2f220abc0db342f80cb60

See more details on using hashes here.

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