Capo: A Python Library for Guitar Chord Transposition
Project description
Overview
Capo is a lightweight Python library for guitarists and developers that provides precise chord transposition across capo positions. It allows users to easily convert chord progressions from one capo setting to another, supporting sharps, flats, complex chord types, and slash chords. Whether you’re building a songwriting assistant, a practice tool, or a music theory application, Capo delivers a clear, reliable foundation for working with chord mappings and capo calculations in Python.
| PyPI Counter | |
| Github Stars |
| Branch | main | dev |
| CI |
| Code Quality |
Installation
Source Code
- Download Version 0.3 or Latest Source
pip install .
PyPI
- Check Python Packaging User Guide
pip install capo==0.3
Usage
Capo Map
>>> from capo import capo_map
>>> capo_map(["A", "Em", "C", "G"], target_capo=2, current_capo=0)
['G', 'Dm', 'A#', 'F']
>>> capo_map(["A", "Em", "C", "G"], target_capo=2, current_capo=0, flat_mode=True)
['G', 'Dm', 'Bb', 'F']
Transpose
>>> from capo import transpose
>>> transpose(["A", "E", "Cm", "G", "Fmaj7"], semitones=3)
['C', 'G', 'D#m', 'A#', 'G#maj7']
>>> transpose(["A", "E", "Cm", "G", "Fmaj7"], semitones=3, flat_mode=True)
['C', 'G', 'Ebm', 'Bb', 'Abmaj7']
Issues & Bug Reports
Just fill an issue and describe it. We'll check it ASAP!
- Please complete the issue template
References
1- Guitar chords capo calculator - GuitarPlayerBox
2- Enharmonic Equivalents - Music Theory Academy
3- Capo Calculator
4- Chord Transposer: Online Tool to Transpose Chords
5- Enharmonic Equivalent Chart with Enharmonic Note Names
Show Your Support
Star This Repo
Give a ⭐️ if this project helped you!
Donate to Our Project
Bitcoin
1KtNLEEeUbTEK9PdN6Ya3ZAKXaqoKUuxCyEthereum
0xcD4Db18B6664A9662123D4307B074aE968535388Litecoin
Ldnz5gMcEeV8BAdsyf8FstWDC6uyYR6pgZDoge
DDUnKpFQbBqLpFVZ9DfuVysBdr249HxVDhTron
TCZxzPZLcJHr2qR3uPUB1tXB6L3FDSSAx7Ripple
rN7ZuRG7HDGHR5nof8nu5LrsbmSB61V1qqBinance Coin
bnb1zglwcf0ac3d0s2f6ck5kgwvcru4tlctt4p5qefTether
0xcD4Db18B6664A9662123D4307B074aE968535388Dash
Xd3Yn2qZJ7VE8nbKw2fS98aLxR5M6WUU3sStellar
GALPOLPISRHIYHLQER2TLJRGUSZH52RYDK6C3HIU4PSMNAV65Q36EGNLZilliqa
zil1knmz8zj88cf0exr2ry7nav9elehxfcgqu3c5e5Coffeete
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Unreleased
0.3 - 2025-11-26
Added
- Double sharp notes
- Double flat notes
Changed
Fbbug fixedCbbug fixedE#bug fixedB#bug fixedREADME.mdupdated- Test system modified
0.2 - 2025-11-15
Added
transposefunction- Logo
Changed
README.mdupdatedcapo_mapfunction modified- Test system modified
0.1 - 2025-11-05
Added
capo_mapfunction- Flat notes
- Sharp notes
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file capo-0.3.tar.gz.
File metadata
- Download URL: capo-0.3.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
836b9a13708d729df5ce8aceac9d0ca0e40443365c40814ca2c734f1d1e524bb
|
|
| MD5 |
56633a5c25e1c11218d5bdc5384286bc
|
|
| BLAKE2b-256 |
0f5f00c8d9ed80dee8060262a964c1aafd0f13f1f4075bc12e35b40678bfa3fa
|
File details
Details for the file capo-0.3-py3-none-any.whl.
File metadata
- Download URL: capo-0.3-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd81243710ee05e7a1fadec95b1a665e577f710c644a5b346455e9d22aeb5a98
|
|
| MD5 |
5587952501f32eb1496ad71af29593a1
|
|
| BLAKE2b-256 |
fe8c2b7c1f019905a8d45b7d4a77fcbb1dae04ec177e217ed49db511c3834484
|