asigalov61
commited on
Commit
•
b7bd104
1
Parent(s):
7a2f766
Update app.py
Browse files
app.py
CHANGED
@@ -175,7 +175,10 @@ def Generate_Chords_Progression(total_song_length_in_chords_chunks,
|
|
175 |
output_score.append(['note', time, dur, 2, (s[-1] % 12)+24, 120-(s[-1] % 12), base_MIDI_patch_number])
|
176 |
|
177 |
if melody_MIDI_patch_number > -1:
|
178 |
-
output_score = TMIDIX.add_melody_to_enhanced_score_notes(output_score,
|
|
|
|
|
|
|
179 |
|
180 |
if merge_chords_notes > 0:
|
181 |
escore_matrix = TMIDIX.escore_notes_to_escore_matrix(output_score)
|
|
|
175 |
output_score.append(['note', time, dur, 2, (s[-1] % 12)+24, 120-(s[-1] % 12), base_MIDI_patch_number])
|
176 |
|
177 |
if melody_MIDI_patch_number > -1:
|
178 |
+
output_score = TMIDIX.add_melody_to_enhanced_score_notes(output_score,
|
179 |
+
melody_patch=melody_MIDI_patch_number,
|
180 |
+
melody_notes_max_duration=max(merge_chords_notes, chord_time_step)
|
181 |
+
)
|
182 |
|
183 |
if merge_chords_notes > 0:
|
184 |
escore_matrix = TMIDIX.escore_notes_to_escore_matrix(output_score)
|