Skip to main content

A python package for transposing chords from one key to another and changing between DO-RE-MI and A-B-C notations.

Project description

PyTransposer

Build Status

Transposing chords from one key to another and changing between DO-RE-MI and A-B-C notations.

Usage

To transpose single chords, use pytransposer like this:

>>> import pytransposer.transposer as tr
>>> tr.transpose_chord('C', 3, 'Bb')
'Eb'
>>> tr.transpose_chord('DO', 3, 'Bb')
'Eb'
>>> tr.transpose_chord('DO', 3, 'Bb', chord_style_out='doremi')
'MIb'

Testing

Run unit tests using Python's doctest, first clone the repo:

git clone https://github.com/bfrangi/transposer.git

Then, open a terminal at the root directory of the repo and run:

python3 -m src.pytransposer.transposer -v  

This will run the tests for the main transposer sub-module. For the rest of the submodules, use:

python3 -m src.pytransposer.common -v  
python3 -m src.pytransposer.abc -v  
python3 -m src.pytransposer.doremi -v  

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

pytransposer-0.0.2.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

pytransposer-0.0.2-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file pytransposer-0.0.2.tar.gz.

File metadata

  • Download URL: pytransposer-0.0.2.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for pytransposer-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cd186191ec6f24901965e03826ef034ac69711db86334dfe0c9443ef0a7d963e
MD5 81ff3761715ef7f18521133eb14f2094
BLAKE2b-256 1ebd9ba1e635e37e030ccfe96db813fd339273e63de135cd50a89579332cbd5f

See more details on using hashes here.

File details

Details for the file pytransposer-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pytransposer-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for pytransposer-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7e4a94734a6a59524ae0c4b85be8d055d4a14c477bb7b6e522cd603c7e10da30
MD5 f54fde232aac4ca65f594b61df256a42
BLAKE2b-256 25fae19a858ba44b5beda3e249632a9f85322e3725b130294b954734146fc625

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