projectlosangeles commited on
Commit
ab2f272
·
verified ·
1 Parent(s): 62d4565

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -191,6 +191,15 @@ def Generate_Chords_Textures(input_midi,
191
  print('Sample score chords', chords[:10])
192
  print('Sample score tokens', score[:10])
193
 
 
 
 
 
 
 
 
 
 
194
  #==================================================================
195
 
196
  print('=' * 70)
 
191
  print('Sample score chords', chords[:10])
192
  print('Sample score tokens', score[:10])
193
 
194
+ #==================================================================
195
+
196
+ chords_len = len(chords)
197
+
198
+ if chords_len < 128:
199
+ ((128 // chords_len)+1) * chords_len
200
+
201
+ chords = chords[:128]
202
+
203
  #==================================================================
204
 
205
  print('=' * 70)