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
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
More info
View on the Python Package Index (PyPI) here.
View on GitHub here.
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.3.tar.gz
(15.3 kB
view hashes)
Built Distribution
Close
Hashes for pytransposer-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a29c3e01ccda705ad6738ea2706b0483313e5f8221d11b4ce638dcd1d02323ec |
|
MD5 | 6870377892e71f90c0b5ed49ef504088 |
|
BLAKE2b-256 | 1afbb4d340274bcaedcef3e1173491857b0bba1c694fa108e7866073d3eaabb4 |