asigalov61 commited on
Commit
b3ace9d
·
verified ·
1 Parent(s): 1c01fbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -144,7 +144,7 @@ def GenerateMIDI(num_tok, idrums, iinstr):
144
  if 1280 <= ss1 < 2816:
145
  channel = (ss1 - 1280) // 128
146
  pitch = (ss1 - 1280) % 128
147
- event = ['note', ctime, dur, channel, pitch, vel, list_of_MIDI_patches[chanel]]
148
  output[-1].append(event)
149
 
150
  midi_data = TMIDIX.score2midi(output, text_encoding)
 
144
  if 1280 <= ss1 < 2816:
145
  channel = (ss1 - 1280) // 128
146
  pitch = (ss1 - 1280) % 128
147
+ event = ['note', ctime, dur, channel, pitch, vel, list_of_MIDI_patches[channel]]
148
  output[-1].append(event)
149
 
150
  midi_data = TMIDIX.score2midi(output, text_encoding)