asigalov61 commited on
Commit
3e1e3c2
·
verified ·
1 Parent(s): e3d24b3

Upload TMIDIX.py

Browse files
Files changed (1) hide show
  1. TMIDIX.py +4 -4
TMIDIX.py CHANGED
@@ -9826,7 +9826,7 @@ def escore_notes_to_text_description(escore_notes,
9826
  description += 'The song has ' + NUMERALS[len(lead_melodies)-1] + ' distinct lead ' + mword + ' played on '
9827
 
9828
  if len(lead_melodies) > 1:
9829
- description += ', '.join(lead_melodies[:-1][0]) + ' and ' + lead_melodies[-1][0] + '.'
9830
 
9831
  else:
9832
  description += lead_melodies[0][0] + '.'
@@ -9844,7 +9844,7 @@ def escore_notes_to_text_description(escore_notes,
9844
  description += 'The song has ' + NUMERALS[len(base_melodies)-1] + ' distinct base ' + mword + ' played on '
9845
 
9846
  if len(base_melodies) > 1:
9847
- description += ', '.join(base_melodies[:-1][0]) + ' and ' + base_melodies[-1][0] + '.'
9848
 
9849
  else:
9850
  description += base_melodies[0][0] + '.'
@@ -9862,7 +9862,7 @@ def escore_notes_to_text_description(escore_notes,
9862
  description += 'The song has ' + NUMERALS[len(lead_melodies)-1] + ' distinct lead ' + lmword + ' played on '
9863
 
9864
  if len(lead_melodies) > 1:
9865
- description += ', '.join(lead_melodies[:-1][0]) + ' and ' + lead_melodies[-1][0] + '.'
9866
 
9867
  else:
9868
  description += lead_melodies[0][0] + '.'
@@ -9876,7 +9876,7 @@ def escore_notes_to_text_description(escore_notes,
9876
  description += ' And ' + NUMERALS[len(base_melodies)-1] + ' distinct base ' + bmword + ' played on '
9877
 
9878
  if len(base_melodies) > 1:
9879
- description += ', '.join(base_melodies[:-1][0]) + ' and ' + base_melodies[-1][0] + '.'
9880
 
9881
  else:
9882
  description += base_melodies[0][0] + '.'
 
9826
  description += 'The song has ' + NUMERALS[len(lead_melodies)-1] + ' distinct lead ' + mword + ' played on '
9827
 
9828
  if len(lead_melodies) > 1:
9829
+ description += ', '.join([l[0] for l in lead_melodies[:-1]]) + ' and ' + lead_melodies[-1][0] + '.'
9830
 
9831
  else:
9832
  description += lead_melodies[0][0] + '.'
 
9844
  description += 'The song has ' + NUMERALS[len(base_melodies)-1] + ' distinct base ' + mword + ' played on '
9845
 
9846
  if len(base_melodies) > 1:
9847
+ description += ', '.join([b[0] for b in base_melodies[:-1]]) + ' and ' + base_melodies[-1][0] + '.'
9848
 
9849
  else:
9850
  description += base_melodies[0][0] + '.'
 
9862
  description += 'The song has ' + NUMERALS[len(lead_melodies)-1] + ' distinct lead ' + lmword + ' played on '
9863
 
9864
  if len(lead_melodies) > 1:
9865
+ description += ', '.join([l[0] for l in lead_melodies[:-1]]) + ' and ' + lead_melodies[-1][0] + '.'
9866
 
9867
  else:
9868
  description += lead_melodies[0][0] + '.'
 
9876
  description += ' And ' + NUMERALS[len(base_melodies)-1] + ' distinct base ' + bmword + ' played on '
9877
 
9878
  if len(base_melodies) > 1:
9879
+ description += ', '.join([b[0] for b in base_melodies[:-1]]) + ' and ' + base_melodies[-1][0] + '.'
9880
 
9881
  else:
9882
  description += base_melodies[0][0] + '.'