asigalov61 commited on
Commit
2ec1a72
1 Parent(s): 91a38ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -127,7 +127,7 @@ def render_midi(input_midi, render_type, soundfont_bank, render_sample_rate, cus
127
 
128
  for c in cscore:
129
  output_score.extend(c)
130
- ''' tones_chord = sorted(set([t[4] % 12 for t in c if t[3] != 9]))
131
  drums_events = [t for t in c if t[3] == 9]
132
 
133
  if tones_chord:
@@ -145,8 +145,7 @@ def render_midi(input_midi, render_type, soundfont_bank, render_sample_rate, cus
145
 
146
  output_score.extend([c[0]] + drums_events)
147
  else:
148
- output_score.extend(c)
149
- '''
150
 
151
  print('Done processing!')
152
  print('=' * 70)
@@ -159,7 +158,8 @@ def render_midi(input_midi, render_type, soundfont_bank, render_sample_rate, cus
159
  e[2] = e[2] * 16
160
 
161
  if -1 < custom_render_patch < 128:
162
- e[6] = custom_render_patch
 
163
 
164
  print('Done recalculating timings!')
165
  print('=' * 70)
 
127
 
128
  for c in cscore:
129
  output_score.extend(c)
130
+ ''' tones_chord = sorted(set([t[4] % 12 for t in c if t[3] != 9]))
131
  drums_events = [t for t in c if t[3] == 9]
132
 
133
  if tones_chord:
 
145
 
146
  output_score.extend([c[0]] + drums_events)
147
  else:
148
+ output_score.extend(c)'''
 
149
 
150
  print('Done processing!')
151
  print('=' * 70)
 
158
  e[2] = e[2] * 16
159
 
160
  if -1 < custom_render_patch < 128:
161
+ if e[3] != 9:
162
+ e[6] = custom_render_patch
163
 
164
  print('Done recalculating timings!')
165
  print('=' * 70)