python-mingus
python-mingus copied to clipboard
documentation
html documentation has
interval.measure("C", "D") 2 interval.measure("D", "C") 10
I think it should be 'intervals' (plural)
HTH
Running Python 3. Input
|A C# E |Bb D F |B D# F# |C E G |C# E# G#
Transpose C to F
Traceback (most recent call last):
File "/files/python/transposer/transposer/transposer.py", line 170, in
File "/files/python/transposer/transposer/transposer.py", line 128, in transpose
source_index = get_index_from_key(source_chord)
File "/files/python/transposer/transposer/transposer.py", line 50, in get_index_from_key
raise Exception("Invalid key: %s" % source_key)
Exception: Invalid key: E#
/docs/2016/piano/billHiltondpawson12:41>
/docs/2016/piano/billHiltondpawson12:41>transpose.sh C F chords.txt
Traceback (most recent call last):
File "/files/python/transposer/transposer/transposer.py", line 170, in
File "/files/python/transposer/transposer/transposer.py", line 128, in transpose
source_index = get_index_from_key(source_chord)
File "/files/python/transposer/transposer/transposer.py", line 50, in get_index_from_key
raise Exception("Invalid key: %s" % source_key)
Exception: Invalid key: E#
E# is F... perhaps it is restricting it to the note without the sharp.
Yes, that makes sense, though it seems rather harsh to bomb out with the obvious? Tks.
Yes, Seems no testing is done on either notes or input key.