Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -112,7 +112,7 @@ with main:
|
|
| 112 |
song.addNote(0, 0, pitch, time, dur, 100)
|
| 113 |
if not notationIndex:
|
| 114 |
time += dur
|
| 115 |
-
with open(os.path.join(st.session_state['path'], '
|
| 116 |
song.writeFile(f)
|
| 117 |
if not st.session_state['downloadable']:
|
| 118 |
st.session_state['downloadable'] = True
|
|
|
|
| 112 |
song.addNote(0, 0, pitch, time, dur, 100)
|
| 113 |
if not notationIndex:
|
| 114 |
time += dur
|
| 115 |
+
with open(os.path.join(st.session_state['path'], 'out.mid'), 'wb') as f:
|
| 116 |
song.writeFile(f)
|
| 117 |
if not st.session_state['downloadable']:
|
| 118 |
st.session_state['downloadable'] = True
|