Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -282,7 +282,10 @@ def Mix_MIDI_Loops(num_loops_to_mix,
|
|
282 |
if y_val != right_chunk[:64]:
|
283 |
rcount += 1
|
284 |
print('Regenerating attempt #', rcount)
|
285 |
-
|
|
|
|
|
|
|
286 |
song = song + y[:-64] + right_chunk
|
287 |
song_parts.append(y[:-64])
|
288 |
song_parts.append(right_chunk)
|
|
|
282 |
if y_val != right_chunk[:64]:
|
283 |
rcount += 1
|
284 |
print('Regenerating attempt #', rcount)
|
285 |
+
|
286 |
+
if rcount == 3:
|
287 |
+
break
|
288 |
+
|
289 |
song = song + y[:-64] + right_chunk
|
290 |
song_parts.append(y[:-64])
|
291 |
song_parts.append(right_chunk)
|