A python package for transposing chords from one key to another and changing between DO-RE-MI and A-B-C notations.
Project description
PyTranspose
Transposing chords from one key to another and changing between DO-RE-MI and A-B-C notations.
Usage
To transpose single chords, use pytranspose
like this:
>>> import pytranspose.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.pytranspose.transposer -v
This will run the tests for the main transposer
sub-module. For the rest of the submodules, use:
python3 -m src.pytranspose.common -v
python3 -m src.pytranspose.abc -v
python3 -m src.pytranspose.doremi -v
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(15.2 kB
view hashes)
Built Distribution
Close
Hashes for pytransposer-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7abb2260f768d80c48d1f57ee39e9d4c37bc7f50a509d9d2e4f6c28b026a13d0 |
|
MD5 | 60077532f99d36001fce7fabb68c500d |
|
BLAKE2b-256 | 9d8d2206900ed68fcd9d034ff3355157975564007ee2ba905b43747ffad4b1fa |