Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidparsson/transposer
A python script transposing chords from one key to another.
https://github.com/davidparsson/transposer
music python sheet-music transpose-chords
Last synced: 24 days ago
JSON representation
A python script transposing chords from one key to another.
- Host: GitHub
- URL: https://github.com/davidparsson/transposer
- Owner: davidparsson
- Created: 2011-08-21T17:57:16.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2024-05-01T11:44:34.000Z (7 months ago)
- Last Synced: 2024-10-11T14:42:09.887Z (about 1 month ago)
- Topics: music, python, sheet-music, transpose-chords
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 19
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Transposer
==========[![Build Status](https://github.com/davidparsson/transposer/workflows/CI/badge.svg)](https://github.com/davidparsson/transposer/actions?query=workflow%3ACI)
Transposing chords from one key to another
Usage
-----To transpose chords, use transposer like this:
python transposer.py --from=F# --to=Eb input.txt
Input files
-----------The input file should be a plain text file, but can contain any text - only lines starting with a vertical bar (`|`) will be transposed. On these lines, root notes must be in upper case while everything else should be in lower case.
Example
-------
The contents of `example.txt`:Rocking start, jazzy ending
| D | G A | Bbm7#11/Db |Using `transposer --from=D --to=E example.txt` will produce the result
Result (D -> E):
Rocking start, jazzy ending
| E | A B | Cm7#11/D# |Testing
-------Run unit tests using Python's doctest:
python -m doctest -v transposer.py