asigalov61 commited on
Commit
5be3251
·
verified ·
1 Parent(s): de2ca54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -279,6 +279,8 @@ def Generate_Accompaniment(input_midi,
279
 
280
  #==================================================================
281
 
 
 
282
  if input_midi:
283
  score, score_list = load_midi(input_midi.name, melody_patch, use_nth_note)
284
 
@@ -292,7 +294,7 @@ def Generate_Accompaniment(input_midi,
292
  inp_mel = m.title()
293
  break
294
 
295
- score_list = popular_hook_melodies[[m[0] for m in popular_hook_melodies].index(input_melody)][1]
296
  score = TMIDIX.flatten(score)
297
 
298
  print('Selected melody:', inp_mel)
 
279
 
280
  #==================================================================
281
 
282
+ print('Prepping melody...')
283
+
284
  if input_midi:
285
  score, score_list = load_midi(input_midi.name, melody_patch, use_nth_note)
286
 
 
294
  inp_mel = m.title()
295
  break
296
 
297
+ score_list = popular_hook_melodies[[m[0] for m in popular_hook_melodies].index(inp_mel)][1]
298
  score = TMIDIX.flatten(score)
299
 
300
  print('Selected melody:', inp_mel)