asigalov61 commited on
Commit
536ae91
·
verified ·
1 Parent(s): a118c0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -63,6 +63,8 @@ MODEL_CHECKPOINT = 'Guided_Accompaniment_Transformer_Trained_Model_36457_steps_0
63
 
64
  SOUDFONT_PATH = 'SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2'
65
 
 
 
66
  #==================================================================================
67
 
68
  print('=' * 70)
@@ -143,7 +145,7 @@ def load_midi(input_midi, melody_patch=-1, use_nth_note=1):
143
  else:
144
  zscore = TMIDIX.recalculate_score_timings(sp_escore_notes)
145
 
146
- cscore = TMIDIX.chordify_score([1000, zscore])[::use_nth_note]
147
 
148
  score = []
149
 
 
63
 
64
  SOUDFONT_PATH = 'SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2'
65
 
66
+ MAX_MELODY_NOTES = 64
67
+
68
  #==================================================================================
69
 
70
  print('=' * 70)
 
145
  else:
146
  zscore = TMIDIX.recalculate_score_timings(sp_escore_notes)
147
 
148
+ cscore = TMIDIX.chordify_score([1000, zscore])[:MAX_MELODY_NOTES:use_nth_note]
149
 
150
  score = []
151