Using Theano backend.
Traceback (most recent call last):
File "generator.py", line 193, in <module>
main(sys.argv)
File "generator.py", line 188, in main
generate(data_fn, out_fn, N_epochs)
File "generator.py", line 107, in generate
chords, abstract_grammars = get_musical_data(data_fn)
File "/Users/grant/project/deepjazz/preprocess.py", line 130, in get_musical_data
measures, chords = __parse_midi(data_fn)
File "/Users/grant/project/deepjazz/preprocess.py", line 37, in __parse_midi
melody_voice.insert(0, key.KeySignature(sharps=1, mode='major'))
TypeError: __init__() got an unexpected keyword argument 'mode'
Try to run the script but failed. Any pointer?