GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - titus-ong/chordparser: A Python 3 package that provides a musical framework to analyse chords

BranchesTags
Open more actions menu

Latest commit

 

History

392 Commits
392 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
docs
docs
 
 
notebooks
notebooks
 
 
requirements
requirements
 
 
src/chordparser
src/chordparser
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
AUTHORS.rst
AUTHORS.rst
 
 
CONTRIBUTING.rst
CONTRIBUTING.rst
 
 
HISTORY.rst
HISTORY.rst
 
 
LICENSE
LICENSE
 
 
MANIFEST.in
MANIFEST.in
 
 
Makefile
Makefile
 
 
README.rst
README.rst
 
 
pyproject.toml
pyproject.toml
 
 
setup.py
setup.py
 
 
tox.ini
tox.ini
 
 

Repository files navigation

chordparser

Build status Documentation status Coverage Downloads Downloads Open in Colab

chordparser is a Python 3 package that provides a musical framework to analyse chords. Chord notation can be parsed into Chords, which can then be analysed against other chords or the key of the song. This allows for harmonic analysis in chord sheets and helps musicians understand why and how chord progressions work.

Quick demo:

>>> import chordparser
>>> cp = chordparser.Parser()

>>> new_chord = cp.create_chord("C7add4/E")
>>> new_chord.notes
(E note, C note, F note, G note, B♭ note)

>>> new_chord.transpose_simple(6)
F♯7add4/A♯ chord
>>> new_chord.notes
(A♯ note, F♯ note, B note, C♯ note, E note)

>>> e_scale = cp.create_scale("E", "major")
>>> cp.to_roman(new_chord, e_scale)
II65 roman chord

>>> e_fifth = cp.create_diatonic(e_scale, 5)
>>> e_fifth
B chord
>>> cp.analyse_secondary(new_chord, e_fifth, e_scale)
"V65/V"

Features

  • Create and manipulate notes, keys, scales and chords easily
  • Parse complex chord notations
  • Transpose musical classes easily and accurately
  • Automatically generate notes for scales and chords from notation
  • Generate roman numeral notation from chords
  • Analyse chord-scale relationships

Installation

To install chordparser, run this command in your terminal:

$ pip install chordparser

Usage

Check out the Colab notebook, which runs through a working example to showcase chordparser's functions and help you get started on using it.

The full documentation can be found here.

Contribute

  • Issue Tracker: github.com/titus-ong/chordparser/issues
  • Source Code: github.com/titus-ong/chordparser

Support

If you are having issues, please let me know at: [email protected]

Authors

Development Lead

  • Titus Ong <[email protected]>

License

The project is licensed under the MIT license.

About

A Python 3 package that provides a musical framework to analyse chords

Topics

chord-progressionchordsharmonic-analysismusicroman-numeralstheorytranspose-chords

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

22 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.