asigalov61 commited on
Commit
fb790c1
1 Parent(s): b4ffaa9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -228,8 +228,14 @@ def Generate_Chords_Progression(total_song_length_in_chords_chunks,
228
  chords_progression_summary_string += '\n'
229
  print('=' * 70)
230
  print('Most common pitches chord:', list(Counter(tuple([a[0] for a in all_song_chords])).most_common(1)[0][0]), '===', Counter(tuple([a[0] for a in all_song_chords])).most_common(1)[0][1], 'count')
 
 
 
231
  print('=' * 70)
232
  print('Most common tones chord:', list(Counter(tuple([a[1] for a in all_song_chords])).most_common(1)[0][0]), '===', Counter(tuple([a[1] for a in all_song_chords])).most_common(1)[0][1], 'count')
 
 
 
233
  print('=' * 70)
234
  print('Sorted unique songs chords set:', len(sorted(set(tuple([a[1] for a in all_song_chords])))), 'count')
235
  print('=' * 70)
 
228
  chords_progression_summary_string += '\n'
229
  print('=' * 70)
230
  print('Most common pitches chord:', list(Counter(tuple([a[0] for a in all_song_chords])).most_common(1)[0][0]), '===', Counter(tuple([a[0] for a in all_song_chords])).most_common(1)[0][1], 'count')
231
+ chords_progression_summary_string += 'Most common pitches chord: ' + str(list(Counter(tuple([a[0] for a in all_song_chords])).most_common(1)[0][0])) + ' === ' + str(Counter(tuple([a[0] for a in all_song_chords])).most_common(1)[0][1]) + ' count' + '\n'
232
+ chords_progression_summary_string += '=' * 70
233
+ chords_progression_summary_string += '\n'
234
  print('=' * 70)
235
  print('Most common tones chord:', list(Counter(tuple([a[1] for a in all_song_chords])).most_common(1)[0][0]), '===', Counter(tuple([a[1] for a in all_song_chords])).most_common(1)[0][1], 'count')
236
+ chords_progression_summary_string += 'Most common tones chord: ' + str(list(Counter(tuple([a[1] for a in all_song_chords])).most_common(1)[0][0])) + ' === ' + str(Counter(tuple([a[1] for a in all_song_chords])).most_common(1)[0][1]) + ' count' + '\n'
237
+ chords_progression_summary_string += '=' * 70
238
+ chords_progression_summary_string += '\n'
239
  print('=' * 70)
240
  print('Sorted unique songs chords set:', len(sorted(set(tuple([a[1] for a in all_song_chords])))), 'count')
241
  print('=' * 70)