Compare commits

...

1 Commits

Author SHA1 Message Date
Yotam Mann
a7f1cc8446 Revert "Fixed issue with generate params and midi output params" 2016-11-16 13:57:09 -08:00

View File

@ -49,9 +49,9 @@ def generate_midi(midi_data, total_seconds=10):
1, qpm)
generate_section.end_time_seconds = total_seconds
# generate_response = generator_map[generator_name].generate(generate_request)
generate_response = basic_generator.generate(generate_request.input_sequence, generate_request.generator_options)
generate_response = basic_generator.generate(generate_request)
output = tempfile.NamedTemporaryFile()
midi_io.sequence_proto_to_midi_file(
generate_response, output.name)
generate_response.generated_sequence, output.name)
output.seek(0)
return output