Skip to content

Commit

Permalink
Version 1.0 Code corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
asigalov61 authored Jan 3, 2025
1 parent 7bdceef commit b2e2c33
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tegridy-tools/TMIDIX.py
Original file line number Diff line number Diff line change
Expand Up @@ -9784,7 +9784,7 @@ def escore_notes_to_text_description(escore_notes,
description += ', '.join(instruments[:-1]) + ' and ' + instruments[-1] + '.'

else:
description += 'features one instrument: ' + instrument[0] + '.'
description += 'features one instrument: ' + instruments[0] + '.'


description += '\n'
Expand Down Expand Up @@ -9826,7 +9826,7 @@ def escore_notes_to_text_description(escore_notes,
description += 'The song has ' + NUMERALS[len(lead_melodies)-1] + ' distinct lead ' + mword + ' played on '

if len(lead_melodies) > 1:
description += ', '.join(lead_melodies[:-1][0]) + ' and ' + lead_melodies[-1][0] + '.'
description += ', '.join([l[0] for l in lead_melodies[:-1]]) + ' and ' + lead_melodies[-1][0] + '.'

else:
description += lead_melodies[0][0] + '.'
Expand All @@ -9844,7 +9844,7 @@ def escore_notes_to_text_description(escore_notes,
description += 'The song has ' + NUMERALS[len(base_melodies)-1] + ' distinct base ' + mword + ' played on '

if len(base_melodies) > 1:
description += ', '.join(base_melodies[:-1][0]) + ' and ' + base_melodies[-1][0] + '.'
description += ', '.join([b[0] for b in base_melodies[:-1]]) + ' and ' + base_melodies[-1][0] + '.'

else:
description += base_melodies[0][0] + '.'
Expand All @@ -9862,7 +9862,7 @@ def escore_notes_to_text_description(escore_notes,
description += 'The song has ' + NUMERALS[len(lead_melodies)-1] + ' distinct lead ' + lmword + ' played on '

if len(lead_melodies) > 1:
description += ', '.join(lead_melodies[:-1][0]) + ' and ' + lead_melodies[-1][0] + '.'
description += ', '.join([l[0] for l in lead_melodies[:-1]]) + ' and ' + lead_melodies[-1][0] + '.'

else:
description += lead_melodies[0][0] + '.'
Expand All @@ -9876,7 +9876,7 @@ def escore_notes_to_text_description(escore_notes,
description += ' And ' + NUMERALS[len(base_melodies)-1] + ' distinct base ' + bmword + ' played on '

if len(base_melodies) > 1:
description += ', '.join(base_melodies[:-1][0]) + ' and ' + base_melodies[-1][0] + '.'
description += ', '.join([b[0] for b in base_melodies[:-1]]) + ' and ' + base_melodies[-1][0] + '.'

else:
description += base_melodies[0][0] + '.'
Expand Down

0 comments on commit b2e2c33

Please sign in to comment.