asigalov61
commited on
Commit
•
8d69657
1
Parent(s):
650e94e
Update app.py
Browse files
app.py
CHANGED
@@ -202,7 +202,7 @@ def Render_MIDI(input_midi,
|
|
202 |
|
203 |
bmatrix = TMIDIX.escore_notes_to_binary_matrix(zscore)
|
204 |
cmatrix = TMIDIX.compress_binary_matrix(bmatrix, only_compress_zeros=True)
|
205 |
-
smatrix = TPLOTS.square_binary_matrix(cmatrix, interpolation_order=max(1, min(5, len(
|
206 |
output_score = TMIDIX.binary_matrix_to_original_escore_notes(smatrix)
|
207 |
|
208 |
for o in output_score:
|
|
|
202 |
|
203 |
bmatrix = TMIDIX.escore_notes_to_binary_matrix(zscore)
|
204 |
cmatrix = TMIDIX.compress_binary_matrix(bmatrix, only_compress_zeros=True)
|
205 |
+
smatrix = TPLOTS.square_binary_matrix(cmatrix, interpolation_order=max(1, min(5, len(zscore) // 128)))
|
206 |
output_score = TMIDIX.binary_matrix_to_original_escore_notes(smatrix)
|
207 |
|
208 |
for o in output_score:
|