asigalov61
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -190,7 +190,7 @@ def Convert_Score_to_Performance(input_midi,
|
|
190 |
|
191 |
#==================================================================
|
192 |
|
193 |
-
print('Sample output events', src_melody_chords_f[0][:3])
|
194 |
print('=' * 70)
|
195 |
print('Generating...')
|
196 |
|
@@ -215,9 +215,9 @@ def Convert_Score_to_Performance(input_midi,
|
|
215 |
|
216 |
elif input_midi_type == 'Performance':
|
217 |
|
218 |
-
dur_top_k =
|
219 |
dur_temperature = 1.5
|
220 |
-
vel_temperature = 1.
|
221 |
|
222 |
else:
|
223 |
|
@@ -477,7 +477,7 @@ if __name__ == "__main__":
|
|
477 |
gr.Markdown("## Conversion options")
|
478 |
|
479 |
input_number_prime_notes = gr.Slider(0, 512, value=0, step=8, label="Number of prime notes")
|
480 |
-
input_number_conv_notes = gr.Slider(
|
481 |
|
482 |
gr.Markdown("## Custom MIDI type model options")
|
483 |
|
|
|
190 |
|
191 |
#==================================================================
|
192 |
|
193 |
+
print('Sample output events', src_melody_chords_f[0][1][:3])
|
194 |
print('=' * 70)
|
195 |
print('Generating...')
|
196 |
|
|
|
215 |
|
216 |
elif input_midi_type == 'Performance':
|
217 |
|
218 |
+
dur_top_k = 100
|
219 |
dur_temperature = 1.5
|
220 |
+
vel_temperature = 1.9
|
221 |
|
222 |
else:
|
223 |
|
|
|
477 |
gr.Markdown("## Conversion options")
|
478 |
|
479 |
input_number_prime_notes = gr.Slider(0, 512, value=0, step=8, label="Number of prime notes")
|
480 |
+
input_number_conv_notes = gr.Slider(8, 2048, value=512, step=8, label="Number of notes to convert")
|
481 |
|
482 |
gr.Markdown("## Custom MIDI type model options")
|
483 |
|