asigalov61 commited on
Commit
d84f99c
1 Parent(s): 0d3141e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -226,6 +226,9 @@ def InpaintPitches(input_midi, input_num_of_notes, input_patch_number):
226
  nidx = 0
227
 
228
  for m in enumerate(melody_chords):
 
 
 
229
  if 2304 <= melody_chords[i] < 18945 and (cpatch) == inpaint_MIDI_patch:
230
  nidx += 1
231
 
 
226
  nidx = 0
227
 
228
  for m in enumerate(melody_chords):
229
+
230
+ cpatch = (melody_chords[i]-2304) // 129
231
+
232
  if 2304 <= melody_chords[i] < 18945 and (cpatch) == inpaint_MIDI_patch:
233
  nidx += 1
234