asigalov61 commited on
Commit
673f330
·
verified ·
1 Parent(s): fb96fda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -290,11 +290,7 @@ def Inpaint_MIDI_Template(midi_template_idx,
290
  cpitch = (max_acc_sample-2304) % 129
291
  pat = (max_acc_sample-2304) // 129
292
 
293
- if pat != 128:
294
- out2.extend([((cpatch * 129) + cpitch)+2304])
295
-
296
- else:
297
- out2 = out2[:-2]
298
 
299
  else:
300
  out2.append(melody_chords[i])
 
290
  cpitch = (max_acc_sample-2304) % 129
291
  pat = (max_acc_sample-2304) // 129
292
 
293
+ out2.extend([((cpatch * 129) + cpitch)+2304])
 
 
 
 
294
 
295
  else:
296
  out2.append(melody_chords[i])