visakh7843 commited on
Commit
d020229
1 Parent(s): 51afa21

Changed midi2audio to timidity,reduces depedencies

Browse files
Files changed (2) hide show
  1. __pycache__/music.cpython-39.pyc +0 -0
  2. music.py +3 -1
__pycache__/music.cpython-39.pyc CHANGED
Binary files a/__pycache__/music.cpython-39.pyc and b/__pycache__/music.cpython-39.pyc differ
 
music.py CHANGED
@@ -1,5 +1,6 @@
1
  from distutils.log import debug
2
  import os, sys
 
3
  import random
4
  import datetime
5
  import glob
@@ -178,7 +179,8 @@ def music_gen(difficulty,time_Signature, Key_Signature):
178
  # cmd2.wait()
179
 
180
  #fluidsynth() dependency
181
- subprocess.Popen(['midi2audio',song_path+'.midi',song_path+'.wav']).communicate()
 
182
  # output = str(temp.communicate())
183
  #Introduces this wait time as we were returning file path even before lilypond converted the abc file
184
  # final_path = os.path.abspath(song_path+".png")
 
1
  from distutils.log import debug
2
  import os, sys
3
+
4
  import random
5
  import datetime
6
  import glob
 
179
  # cmd2.wait()
180
 
181
  #fluidsynth() dependency
182
+ # subprocess.Popen(['midi2audio',song_path+'.midi',song_path+'.wav']).communicate()
183
+ subprocess.Popen(['timidity',song_path+'.midi','-Ow','-o',song_path+'.wav']).communicate()
184
  # output = str(temp.communicate())
185
  #Introduces this wait time as we were returning file path even before lilypond converted the abc file
186
  # final_path = os.path.abspath(song_path+".png")