asigalov61 commited on
Commit
1e4e336
1 Parent(s): f8c0b9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -23,7 +23,7 @@ from midi_to_colab_audio import midi_to_colab_audio
23
 
24
  # =================================================================================================
25
 
26
- def Generate_Chords_Progression(total_song_length_in_chords_chunks,
27
  chords_chunks_memory_ratio,
28
  chord_time_step,
29
  merge_chords_notes,
@@ -38,7 +38,7 @@ def Generate_Chords_Progression(total_song_length_in_chords_chunks,
38
 
39
  print('=' * 70)
40
  print('Requested settings:')
41
- print('Total song length in chords chunks:', total_song_length_in_chords_chunks)
42
  print('Chords chunks memory ratio:', chords_chunks_memory_ratio)
43
  print('Chord time step:', chord_time_step)
44
  print('Merge chords notes max time:', merge_chords_notes)
@@ -351,7 +351,7 @@ if __name__ == "__main__":
351
 
352
  gr.Markdown("## Select generation options")
353
 
354
- total_song_length_in_chords_chunks = gr.Slider(4, 60, value=30, step=1, label="Total song length in chords chunks")
355
  chords_chunks_memory_ratio = gr.Slider(0, 1, value=-1, step=0.1, label="Chords chunks memory ratio")
356
  chord_time_step = gr.Slider(100, 1000, value=500, step=50, label="Chord time step")
357
  merge_chords_notes = gr.Slider(0, 4000, value=1000, step=100, label="Merged chords notes max time")
@@ -370,7 +370,7 @@ if __name__ == "__main__":
370
  output_cp_summary = gr.Textbox(label="Generated chords progression info and stats")
371
 
372
  run_event = run_btn.click(Generate_Chords_Progression,
373
- [total_song_length_in_chords_chunks,
374
  chords_chunks_memory_ratio,
375
  chord_time_step,
376
  merge_chords_notes,
 
23
 
24
  # =================================================================================================
25
 
26
+ def Generate_Chords_Progression(minimum_song_length_in_chords_chunks,
27
  chords_chunks_memory_ratio,
28
  chord_time_step,
29
  merge_chords_notes,
 
38
 
39
  print('=' * 70)
40
  print('Requested settings:')
41
+ print('Minimum song length in chords chunks:', minimum_song_length_in_chords_chunks)
42
  print('Chords chunks memory ratio:', chords_chunks_memory_ratio)
43
  print('Chord time step:', chord_time_step)
44
  print('Merge chords notes max time:', merge_chords_notes)
 
351
 
352
  gr.Markdown("## Select generation options")
353
 
354
+ minimum_song_length_in_chords_chunks = gr.Slider(4, 60, value=30, step=1, label="Minimum song length in chords chunks")
355
  chords_chunks_memory_ratio = gr.Slider(0, 1, value=-1, step=0.1, label="Chords chunks memory ratio")
356
  chord_time_step = gr.Slider(100, 1000, value=500, step=50, label="Chord time step")
357
  merge_chords_notes = gr.Slider(0, 4000, value=1000, step=100, label="Merged chords notes max time")
 
370
  output_cp_summary = gr.Textbox(label="Generated chords progression info and stats")
371
 
372
  run_event = run_btn.click(Generate_Chords_Progression,
373
+ [minimum_song_length_in_chords_chunks,
374
  chords_chunks_memory_ratio,
375
  chord_time_step,
376
  merge_chords_notes,