chordparser
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: titusongyl@gmail.com
License
The project is licensed under the MIT license.
Metadata
Release files for chordparser 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chordparser-0.4.2.tar.gz | 30.5 kB | Without provenance | Details for chordparser-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chordparser-0.4.2-py3-none-any.whl | Python 3 | none | any | Details for chordparser-0.4.2-py3-none-any.whl |
Total release size: 60.3 kB
Release files / chordparser-0.4.2.tar.gz
| Download URL | chordparser-0.4.2.tar.gz |
|---|---|
| Size | 30.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6dfd22e20f2ff017ec4d5b64a969ff4d23af4e88b7d6d1f1ae4cdf1e03d1d58
|
|
BLAKE2b-256 checksum How to use checksums |
926a5111f8225556b81bd1887177313b5d3f14b63b1cd55bf093ecadb5685bc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / chordparser-0.4.2-py3-none-any.whl
| Download URL | chordparser-0.4.2-py3-none-any.whl |
|---|---|
| Size | 29.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
27abff827a1acdfe9cda817cbb064e3c6f03b5c66479e487c668a18d896b4908
|
|
BLAKE2b-256 checksum How to use checksums |
c6f026d98d88c91d5fb5f1a5752a001c7305195e98a243bff144899a2ec8e122
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for chordparser 0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.