Spaces:
Running
on
Zero
Running
on
Zero
asigalov61
commited on
Commit
·
810a528
1
Parent(s):
0e5addd
Update app.py
Browse files
app.py
CHANGED
@@ -141,7 +141,7 @@ def GenerateMIDI():
|
|
141 |
|
142 |
audio = synthesis(TMIDIX.score2opus(output), 'SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2')
|
143 |
|
144 |
-
yield output, "Allegro-Music-Transformer-Music-Composition.mid", (
|
145 |
|
146 |
#=================================================================================================
|
147 |
|
@@ -151,7 +151,7 @@ def cancel_run(output_midi_seq):
|
|
151 |
with open(f"Allegro-Music-Transformer-Music-Composition.mid", 'wb') as f:
|
152 |
f.write(TMIDIX.score2midi(output_midi_seq))
|
153 |
audio = synthesis(TMIDIX.score2opus(output_midi_seq), 'SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2')
|
154 |
-
return "Allegro-Music-Transformer-Music-Composition.mid", (
|
155 |
|
156 |
#=================================================================================================
|
157 |
|
|
|
141 |
|
142 |
audio = synthesis(TMIDIX.score2opus(output), 'SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2')
|
143 |
|
144 |
+
yield output, "Allegro-Music-Transformer-Music-Composition.mid", (44100, audio)
|
145 |
|
146 |
#=================================================================================================
|
147 |
|
|
|
151 |
with open(f"Allegro-Music-Transformer-Music-Composition.mid", 'wb') as f:
|
152 |
f.write(TMIDIX.score2midi(output_midi_seq))
|
153 |
audio = synthesis(TMIDIX.score2opus(output_midi_seq), 'SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2')
|
154 |
+
return "Allegro-Music-Transformer-Music-Composition.mid", (44100, audio)
|
155 |
|
156 |
#=================================================================================================
|
157 |
|