Next commited on
Commit
e05976f
1 Parent(s): e118cd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -129,8 +129,8 @@ def render_midi(input_midi, render_type, soundfont_bank, render_sample_rate, cus
129
  f.write(fdata)
130
  f.close()
131
 
132
- if soundfont_bank in ["General MIDI", "Nice strings plus orchestra", "Real choir", "Super Game Boy"]:
133
- sf2bank = ["General MIDI", "Nice strings plus orchestra", "Real choir", "Super Game Boy"].index(soundfont_bank)
134
 
135
  else:
136
  sf2bank = 0
@@ -190,7 +190,7 @@ if __name__ == "__main__":
190
  print('App start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
191
  print('=' * 70)
192
 
193
- soundfonts = ["SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2", "Nice-Strings-PlusOrchestra-v1.6.sf2", "KBH-Real-Choir-V2.5.sf2", "SuperGameBoy.sf2"]
194
 
195
  app = gr.Blocks()
196
  with app:
 
129
  f.write(fdata)
130
  f.close()
131
 
132
+ if soundfont_bank in ["General MIDI", "Nice strings plus orchestra", "Real choir", "Super Game Boy", "SEGA Master"]:
133
+ sf2bank = ["General MIDI", "Nice strings plus orchestra", "Real choir", "Super Game Boy", "SEGA Master"].index(soundfont_bank)
134
 
135
  else:
136
  sf2bank = 0
 
190
  print('App start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
191
  print('=' * 70)
192
 
193
+ soundfonts = ["SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2", "Nice-Strings-PlusOrchestra-v1.6.sf2", "KBH-Real-Choir-V2.5.sf2", "SuperGameBoy.sf2","ProtoSquare_.sf2"]
194
 
195
  app = gr.Blocks()
196
  with app: