Ghadjeres / DeepBach

code accompanying "DeepBach: a Steerable Model for Bach Chorales Generation" paper
MIT License
500 stars 131 forks source link

TypeError: part_to_inputs() takes exactly 4 arguments (3 given) #43

Open hans-ekbrand opened 6 years ago

hans-ekbrand commented 6 years ago

part_to_inputs() requires four arguments, but it is called with only three arguments at line 125-126 in deepBach.py

The length argument seems to be missing, see data_utils.py line 142.

I tried to insert len(melody) as a second argument to part_to_inputs(), and deepBach.py then ran without errors, but the resulting xml-file was not correct.

Ghadjeres commented 6 years ago

Hi, Sorry, I can provide no easy fix for the moment, but I'll refactor the whole project soon.