asigalov61 commited on
Commit
139b81a
·
verified ·
1 Parent(s): 573ea3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -201,7 +201,16 @@ def Match_Cores(input_midi,
201
  elif 768 <= m <= 896:
202
  vel = (m-768)
203
 
204
- song_f.append(['note', time, dur, min(15, pat // 8), ptc, vel, pat])
 
 
 
 
 
 
 
 
 
205
 
206
  output_score, patches, overflow_patches = TMIDIX.patch_enhanced_score_notes(song_f)
207
 
 
201
  elif 768 <= m <= 896:
202
  vel = (m-768)
203
 
204
+ if pat != 128:
205
+ cha = pat // 8
206
+
207
+ if cha == 9:
208
+ cha += 1
209
+
210
+ else:
211
+ cha = 9
212
+
213
+ song_f.append(['note', time, dur, cha, ptc, vel, pat])
214
 
215
  output_score, patches, overflow_patches = TMIDIX.patch_enhanced_score_notes(song_f)
216