asigalov61 commited on
Commit
9918a6a
1 Parent(s): 9ed302a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -63,7 +63,7 @@ def render_midi(input_midi,
63
 
64
  escore = TMIDIX.advanced_score_processor(raw_score, return_enhanced_score_notes=True)[0]
65
 
66
- escore= TMIDIX.augment_enhanced_score_notes(escore)
67
 
68
  first_note_index = [e[0] for e in raw_score[1]].index('note')
69
 
@@ -139,8 +139,7 @@ def render_midi(input_midi,
139
  output_signature = 'Advanced MIDI Renderer',
140
  output_file_name = fn1,
141
  track_name='Project Los Angeles',
142
- list_of_MIDI_patches=patches,
143
- timings_multiplier=16
144
  )
145
 
146
  else:
@@ -180,7 +179,7 @@ def render_midi(input_midi,
180
  output_midi = str(new_fn)
181
  output_audio = (srate, audio)
182
 
183
- output_plot = TMIDIX.plot_ms_SONG(output_score, plot_title=output_midi, return_plt=True, timings_multiplier=16)
184
 
185
  print('Output MIDI file name:', output_midi)
186
  print('Output MIDI title:', output_midi_title)
 
63
 
64
  escore = TMIDIX.advanced_score_processor(raw_score, return_enhanced_score_notes=True)[0]
65
 
66
+ escore= TMIDIX.augment_enhanced_score_notes(escore, timings_divider=1)
67
 
68
  first_note_index = [e[0] for e in raw_score[1]].index('note')
69
 
 
139
  output_signature = 'Advanced MIDI Renderer',
140
  output_file_name = fn1,
141
  track_name='Project Los Angeles',
142
+ list_of_MIDI_patches=patches
 
143
  )
144
 
145
  else:
 
179
  output_midi = str(new_fn)
180
  output_audio = (srate, audio)
181
 
182
+ output_plot = TMIDIX.plot_ms_SONG(output_score, plot_title=output_midi, return_plt=True)
183
 
184
  print('Output MIDI file name:', output_midi)
185
  print('Output MIDI title:', output_midi_title)