Simon Stolarczyk commited on
Commit
3576bea
1 Parent(s): 387b0e3

Continue sf search.

Browse files
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +3 -2
  2. app.py +3 -2
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -36,7 +36,8 @@ print(os.getcwd())
36
 
37
 
38
  # subprocess.run(['apt-get install fluidsynth'], shell=True) # do not have the right perms
39
- results = subprocess.run(['find / | grep "fluidsynth"'], capture_output=True, shell=True)
 
40
  print(results.stdout)
41
 
42
  # subprocess.run(['PATH=$PATH:~/opt/bin'])
@@ -48,7 +49,7 @@ def process_midi(midi_file):
48
  # stream = midiFileToStream(midi_file)
49
  # output_wav = play_wav(stream)
50
  # FluidSynth("../usr/share/sounds/sf2/FluidR3_GM.sf2").midi_to_audio(name, 'test.wav')
51
- FluidSynth(".fluidsynth/FluidR3_GM.sf2").midi_to_audio(name, 'test.wav')
52
  return 'test.wav'
53
 
54
  iface = gr.Interface(
 
36
 
37
 
38
  # subprocess.run(['apt-get install fluidsynth'], shell=True) # do not have the right perms
39
+ # results = subprocess.run(['find / | grep "fluidsynth"'], capture_output=True, shell=True)
40
+ results = subprocess.run(['find / | grep "FluidR"'], capture_output=True, shell=True) # look for sound fonts
41
  print(results.stdout)
42
 
43
  # subprocess.run(['PATH=$PATH:~/opt/bin'])
 
49
  # stream = midiFileToStream(midi_file)
50
  # output_wav = play_wav(stream)
51
  # FluidSynth("../usr/share/sounds/sf2/FluidR3_GM.sf2").midi_to_audio(name, 'test.wav')
52
+ FluidSynth("/usr/share/sounds/sf2/FluidR3_GM.sf2").midi_to_audio(name, 'test.wav')
53
  return 'test.wav'
54
 
55
  iface = gr.Interface(
app.py CHANGED
@@ -36,7 +36,8 @@ print(os.getcwd())
36
 
37
 
38
  # subprocess.run(['apt-get install fluidsynth'], shell=True) # do not have the right perms
39
- results = subprocess.run(['find / | grep "fluidsynth"'], capture_output=True, shell=True)
 
40
  print(results.stdout)
41
 
42
  # subprocess.run(['PATH=$PATH:~/opt/bin'])
@@ -48,7 +49,7 @@ def process_midi(midi_file):
48
  # stream = midiFileToStream(midi_file)
49
  # output_wav = play_wav(stream)
50
  # FluidSynth("../usr/share/sounds/sf2/FluidR3_GM.sf2").midi_to_audio(name, 'test.wav')
51
- FluidSynth(".fluidsynth/FluidR3_GM.sf2").midi_to_audio(name, 'test.wav')
52
  return 'test.wav'
53
 
54
  iface = gr.Interface(
 
36
 
37
 
38
  # subprocess.run(['apt-get install fluidsynth'], shell=True) # do not have the right perms
39
+ # results = subprocess.run(['find / | grep "fluidsynth"'], capture_output=True, shell=True)
40
+ results = subprocess.run(['find / | grep "FluidR"'], capture_output=True, shell=True) # look for sound fonts
41
  print(results.stdout)
42
 
43
  # subprocess.run(['PATH=$PATH:~/opt/bin'])
 
49
  # stream = midiFileToStream(midi_file)
50
  # output_wav = play_wav(stream)
51
  # FluidSynth("../usr/share/sounds/sf2/FluidR3_GM.sf2").midi_to_audio(name, 'test.wav')
52
+ FluidSynth("/usr/share/sounds/sf2/FluidR3_GM.sf2").midi_to_audio(name, 'test.wav')
53
  return 'test.wav'
54
 
55
  iface = gr.Interface(