Commit
·
4e4340d
1
Parent(s):
5cb4af1
Update app.py
Browse files
app.py
CHANGED
|
@@ -102,11 +102,11 @@ def run(search_prompt, mid=None):
|
|
| 102 |
init_msgs.append(create_msg("visualizer_append", event))
|
| 103 |
yield mid_seq, None, None, init_msgs
|
| 104 |
|
| 105 |
-
j = 0
|
| 106 |
-
for i in range(len(mid_seq)-1):
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
|
| 111 |
|
| 112 |
with open(f"output.mid", 'wb') as f:
|
|
|
|
| 102 |
init_msgs.append(create_msg("visualizer_append", event))
|
| 103 |
yield mid_seq, None, None, init_msgs
|
| 104 |
|
| 105 |
+
# j = 0
|
| 106 |
+
# for i in range(len(mid_seq)-1):
|
| 107 |
+
# if mid_seq[i][0] == 'note':
|
| 108 |
+
# j += 1
|
| 109 |
+
# yield mid_seq, None, None, [create_msg("visualizer_append", mid_seq[i]), create_msg("progress", [j + 1, len(mid_seq)])]
|
| 110 |
|
| 111 |
|
| 112 |
with open(f"output.mid", 'wb') as f:
|