Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
orchestor opened this issue Jan 11, 2017 · 4 comments
Closed

Comments

@orchestor
Copy link

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
Copy link
Owner

jisungk commented Jan 11, 2017

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

@jisungk jisungk closed this as completed Jan 11, 2017
@jisungk jisungk reopened this Jan 11, 2017
@jisungk jisungk closed this as completed Jan 11, 2017
@gofornaman
Copy link

How to fix this?

@dkun7944
Copy link

@jisungk Which version of music21 works with deepjazz?

@GyeowoonJeong
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants