projectlosangeles commited on
Commit
b7e97e7
·
verified ·
1 Parent(s): 5bb9b98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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)