Skip to main content

Capo: A Python Library for Guitar Chord Transposition

Project description

Capo: A Python Library for Guitar Chord Transposition


built with Python3 GitHub repo size PyPI version

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 CodeFactor

Installation

Source Code

PyPI

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

Show Your Support

Star This Repo

Give a ⭐️ if this project helped you!

Donate to Our Project

Bitcoin

1KtNLEEeUbTEK9PdN6Ya3ZAKXaqoKUuxCy

Ethereum

0xcD4Db18B6664A9662123D4307B074aE968535388

Litecoin

Ldnz5gMcEeV8BAdsyf8FstWDC6uyYR6pgZ

Doge

DDUnKpFQbBqLpFVZ9DfuVysBdr249HxVDh

Tron

TCZxzPZLcJHr2qR3uPUB1tXB6L3FDSSAx7

Ripple

rN7ZuRG7HDGHR5nof8nu5LrsbmSB61V1qq

Binance Coin

bnb1zglwcf0ac3d0s2f6ck5kgwvcru4tlctt4p5qef

Tether

0xcD4Db18B6664A9662123D4307B074aE968535388

Dash

Xd3Yn2qZJ7VE8nbKw2fS98aLxR5M6WUU3s

Stellar

GALPOLPISRHIYHLQER2TLJRGUSZH52RYDK6C3HIU4PSMNAV65Q36EGNL

Zilliqa

zil1knmz8zj88cf0exr2ry7nav9elehxfcgqu3c5e5

Coffeete

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.2 - 2025-11-15

Added

  • transpose function
  • Logo

Changed

  • README.md updated
  • capo_map function modified
  • Test system modified

0.1 - 2025-11-05

Added

  • capo_map function
  • 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

capo-0.2.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

capo-0.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file capo-0.2.tar.gz.

File metadata

  • Download URL: capo-0.2.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for capo-0.2.tar.gz
Algorithm Hash digest
SHA256 432ea43436b2e404bfb0b6fedc5f37279ba2411692060117262f356e6dda2804
MD5 9f1e52d3f529ea561b1bfcfa627bea81
BLAKE2b-256 4ff624edd3c7c87182750d53fac5441c9818886eaf725513c1b225d231c10ff8

See more details on using hashes here.

File details

Details for the file capo-0.2-py3-none-any.whl.

File metadata

  • Download URL: capo-0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for capo-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b07d35ad588fd36c28b6817e3ba23b5e7fe4f6870b3bc756bd5b694432215a64
MD5 b05b6f626bca20f51e19a981ef25d529
BLAKE2b-256 56de6893960a5f823eb67fa8692d0652dc3f7c5b930f69c4a3c7a67d7c18dd25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page