jisungk / deepjazz

Deep learning driven jazz generation using Keras & Theano!
http://deepjazz.io
Apache License 2.0
2.88k stars 443 forks source link

TypeError: __init__() got an unexpected keyword argument 'mode' #8

Closed orchestor closed 7 years ago

orchestor commented 7 years ago

Try to run the script but failed. Any pointer?


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'
jisungk commented 7 years ago

It appears that there's been an API change for the music21 library.

gofornaman commented 6 years ago

How to fix this?

dkun7944 commented 6 years ago

@jisungk Which version of music21 works with deepjazz?

GyeowoonJeong commented 5 years ago

@jisungk Can you explain me about how can I fix this error?