asigalov61 commited on
Commit
fa31cf9
·
verified ·
1 Parent(s): 61d2e2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -188,6 +188,19 @@ def Generate_POP_Section(input_comp_section,
188
  print('Rendering results...')
189
 
190
  print('=' * 70)
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  print('Sample INTs', song[:5])
192
  print('=' * 70)
193
 
@@ -257,6 +270,7 @@ def Generate_POP_Section(input_comp_section,
257
 
258
  print('Output MIDI file name:', output_midi)
259
  print('Output MIDI title:', output_midi_title)
 
260
  print('=' * 70)
261
 
262
 
@@ -267,7 +281,7 @@ def Generate_POP_Section(input_comp_section,
267
  print('-' * 70)
268
  print('Req execution time:', (reqtime.time() - start_time), 'sec')
269
 
270
- return output_midi_title, output_midi, output_audio, output_plot
271
 
272
  # =================================================================================================
273
 
 
188
  print('Rendering results...')
189
 
190
  print('=' * 70)
191
+
192
+ comp_section = sections_dict[song[1]-512]
193
+ comp_mode_time = song[2]-532
194
+ comp_mode_dur = song[3]-660
195
+ comp_mode_ptc = song[4]-788
196
+
197
+ comp_summary = ''
198
+
199
+ comp_summary += 'Generated section: ' + str(comp_section) + '\n'
200
+ comp_summary += 'Generated mode time: ' + str(comp_mode_time) + '\n'
201
+ comp_summary += 'Generated mode duration: ' + str(comp_mode_dur) + '\n'
202
+ comp_summary += 'Generated mode pitch :' + str(comp_mode_ptc)
203
+
204
  print('Sample INTs', song[:5])
205
  print('=' * 70)
206
 
 
270
 
271
  print('Output MIDI file name:', output_midi)
272
  print('Output MIDI title:', output_midi_title)
273
+ print('Output MIDI summary', comp_summary)
274
  print('=' * 70)
275
 
276
 
 
281
  print('-' * 70)
282
  print('Req execution time:', (reqtime.time() - start_time), 'sec')
283
 
284
+ return output_midi_title, comp_summary, output_midi, output_audio, output_plot
285
 
286
  # =================================================================================================
287