asigalov61 commited on
Commit
ab7178f
1 Parent(s): 18a5fcf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -140,8 +140,8 @@ def render_midi(input_midi,
140
  f.write(fdata)
141
  f.close()
142
 
143
- if soundfont_bank in ["General MIDI", "Nice strings plus orchestra", "Real choir", "Orpheus", "Super Game Boy"]:
144
- sf2bank = ["General MIDI", "Nice strings plus orchestra", "Real choir", "Orpheus", "Super Game Boy"].index(soundfont_bank)
145
 
146
  else:
147
  sf2bank = 0
@@ -201,7 +201,7 @@ if __name__ == "__main__":
201
  print('App start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
202
  print('=' * 70)
203
 
204
- soundfonts = ["SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2", "Nice-Strings-PlusOrchestra-v1.6.sf2", "KBH-Real-Choir-V2.5.sf2", "Orpheus_18.06.2020.sf2", "SuperGameBoy.sf2"]
205
 
206
  app = gr.Blocks()
207
 
 
140
  f.write(fdata)
141
  f.close()
142
 
143
+ if soundfont_bank in ["General MIDI", "Nice strings plus orchestra", "Real choir", "Orpheus", "Super Game Boy", "Proto Square"]:
144
+ sf2bank = ["General MIDI", "Nice strings plus orchestra", "Real choir", "Orpheus", "Super Game Boy", "Proto Square"].index(soundfont_bank)
145
 
146
  else:
147
  sf2bank = 0
 
201
  print('App start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
202
  print('=' * 70)
203
 
204
+ soundfonts = ["SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2", "Nice-Strings-PlusOrchestra-v1.6.sf2", "KBH-Real-Choir-V2.5.sf2", "Orpheus_18.06.2020.sf2", "SuperGameBoy.sf2", "ProtoSquare.sf2"]
205
 
206
  app = gr.Blocks()
207