Update app.py
Browse files
app.py
CHANGED
|
@@ -115,6 +115,11 @@ def load_midi(input_midi):
|
|
| 115 |
if escore_notes and escore_notes[0]:
|
| 116 |
|
| 117 |
escore_notes = TMIDIX.augment_enhanced_score_notes(escore_notes[0], sort_drums_last=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
|
| 119 |
dscore = TMIDIX.delta_score_notes(escore_notes)
|
| 120 |
|
|
@@ -439,9 +444,9 @@ with gr.Blocks() as demo:
|
|
| 439 |
)
|
| 440 |
|
| 441 |
gr.Examples(
|
| 442 |
-
[["All Out of Love.mid", 1.
|
| 443 |
-
["POP909_001.mid", 1.
|
| 444 |
-
["Sharing The Night Together.kar", 1.
|
| 445 |
],
|
| 446 |
[input_midi,
|
| 447 |
model_temperature,
|
|
|
|
| 115 |
if escore_notes and escore_notes[0]:
|
| 116 |
|
| 117 |
escore_notes = TMIDIX.augment_enhanced_score_notes(escore_notes[0], sort_drums_last=True)
|
| 118 |
+
|
| 119 |
+
if not TMIDIX.escore_notes_monoponic_melodies(escore_notes):
|
| 120 |
+
escore_notes = TMIDIX.add_expressive_melody_to_enhanced_score_notes(escore_notes,
|
| 121 |
+
melody_channel=15
|
| 122 |
+
)
|
| 123 |
|
| 124 |
dscore = TMIDIX.delta_score_notes(escore_notes)
|
| 125 |
|
|
|
|
| 444 |
)
|
| 445 |
|
| 446 |
gr.Examples(
|
| 447 |
+
[["All Out of Love.mid", 1.0, 1],
|
| 448 |
+
["POP909_001.mid", 1.0, 1],
|
| 449 |
+
["Sharing The Night Together.kar", 1.0, 1]
|
| 450 |
],
|
| 451 |
[input_midi,
|
| 452 |
model_temperature,
|