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.

Filename, size & hash SHA256 hash help File type Python version Upload date
pychord-0.1.1-py2.py3-none-any.whl (11.3 kB) Copy SHA256 hash SHA256 Wheel py2.py3 May 20, 2016
pychord-0.1.1.tar.gz (4.6 kB) Copy SHA256 hash SHA256 Source None May 20, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page