Spaces:
Sleeping
Sleeping
Upload TMIDIX.py
Browse files
TMIDIX.py
CHANGED
@@ -9608,8 +9608,10 @@ def escore_notes_to_text_description(escore_notes, song_name='', artist_name='')
|
|
9608 |
tones_chords = Counter()
|
9609 |
|
9610 |
for c in cscore:
|
9611 |
-
if len([e for e in c if e[3] != 9]) >
|
9612 |
tones_chords[tuple(sorted(set([e[4] % 12 for e in c if e[3] != 9])))] += 1
|
|
|
|
|
9613 |
|
9614 |
most_common_tones_chords = [check_and_fix_tones_chord(list(c[0])) for c in tones_chords.most_common(10)]
|
9615 |
|
@@ -9710,7 +9712,7 @@ def escore_notes_to_text_description(escore_notes, song_name='', artist_name='')
|
|
9710 |
description += 'The song '
|
9711 |
|
9712 |
if len(instruments) == 1:
|
9713 |
-
description += 'is played on a solo ' + instruments + '.'
|
9714 |
|
9715 |
else:
|
9716 |
description += 'features ' + NUMERALS[len(instruments)-1] + ' instruments: '
|
|
|
9608 |
tones_chords = Counter()
|
9609 |
|
9610 |
for c in cscore:
|
9611 |
+
if len([e for e in c if e[3] != 9]) > 0:
|
9612 |
tones_chords[tuple(sorted(set([e[4] % 12 for e in c if e[3] != 9])))] += 1
|
9613 |
+
|
9614 |
+
mood = 'Major'
|
9615 |
|
9616 |
most_common_tones_chords = [check_and_fix_tones_chord(list(c[0])) for c in tones_chords.most_common(10)]
|
9617 |
|
|
|
9712 |
description += 'The song '
|
9713 |
|
9714 |
if len(instruments) == 1:
|
9715 |
+
description += 'is played on a solo ' + instruments[0] + '.'
|
9716 |
|
9717 |
else:
|
9718 |
description += 'features ' + NUMERALS[len(instruments)-1] + ' instruments: '
|