asigalov61 commited on
Commit
a3edd0d
·
verified ·
1 Parent(s): 2c1eabd

Upload TMIDIX.py

Browse files
Files changed (1) hide show
  1. TMIDIX.py +3 -4
TMIDIX.py CHANGED
@@ -9562,6 +9562,8 @@ def escore_notes_to_text_description(escore_notes, song_name='', artist_name='')
9562
  #==============================================================================
9563
 
9564
  escore_times = [e[1] for e in escore_notes if e[3] != 9]
 
 
9565
 
9566
  if len(escore_times) > 0:
9567
  if len(escore_times) == len(set(escore_times)):
@@ -9573,9 +9575,6 @@ def escore_notes_to_text_description(escore_notes, song_name='', artist_name='')
9573
  elif len(escore_times) >= len(set(escore_times)) and 1 not in Counter(escore_times).values():
9574
  comp_type = 'accompaniment only'
9575
 
9576
- else:
9577
- comp_type = 'mixed'
9578
-
9579
  else:
9580
  comp_type = 'drums only'
9581
 
@@ -9692,7 +9691,7 @@ def escore_notes_to_text_description(escore_notes, song_name='', artist_name='')
9692
 
9693
  description += comp_type + ' composition'
9694
 
9695
- if comp_type != 'drums only' or comp_type != 'mixed':
9696
 
9697
  if drums_present:
9698
  description += ' with drums'
 
9562
  #==============================================================================
9563
 
9564
  escore_times = [e[1] for e in escore_notes if e[3] != 9]
9565
+
9566
+ comp_type = ''
9567
 
9568
  if len(escore_times) > 0:
9569
  if len(escore_times) == len(set(escore_times)):
 
9575
  elif len(escore_times) >= len(set(escore_times)) and 1 not in Counter(escore_times).values():
9576
  comp_type = 'accompaniment only'
9577
 
 
 
 
9578
  else:
9579
  comp_type = 'drums only'
9580
 
 
9691
 
9692
  description += comp_type + ' composition'
9693
 
9694
+ if comp_type != 'drums only':
9695
 
9696
  if drums_present:
9697
  description += ' with drums'