projectlosangeles commited on
Commit
4520507
·
verified ·
1 Parent(s): 37d8cd2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -230,16 +230,20 @@ def Generate_Chords_Textures(input_midi,
230
 
231
  #==================================================================
232
 
233
- ccount = 0
 
 
 
 
234
 
235
  for i, f in enumerate(final_song):
236
 
 
 
 
237
  if ccount == chords_len:
238
  break
239
 
240
- if f > 384:
241
- ccount += 1
242
-
243
  final_song = final_song[:i]
244
 
245
  #==================================================================
 
230
 
231
  #==================================================================
232
 
233
+ if prime_with_first_note:
234
+ ccount = 0
235
+
236
+ else:
237
+ ccount = 1
238
 
239
  for i, f in enumerate(final_song):
240
 
241
+ if f > 384:
242
+ ccount += 1
243
+
244
  if ccount == chords_len:
245
  break
246
 
 
 
 
247
  final_song = final_song[:i]
248
 
249
  #==================================================================