Spaces:
Running
Running
Commit
·
2a6e99c
1
Parent(s):
404342f
corrected lilypond commands
Browse files- __pycache__/music.cpython-39.pyc +0 -0
- music.py +2 -2
__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
|
@@ -165,7 +165,7 @@ def music_gen(difficulty,time_Signature, Key_Signature):
|
|
| 165 |
|
| 166 |
f = open(song_path+".ly","w")
|
| 167 |
# subprocess.Popen(['/usr/bin/abc2midi',songname],stdout=subprocess.PIPE).communicate()
|
| 168 |
-
command = "
|
| 169 |
|
| 170 |
# cmd1 = subprocess.Popen(['/usr/bin/abc2ly','-o',song_path+".ly",songname],stdout=subprocess.PIPE,stderr=subprocess.PIPE)
|
| 171 |
# cmd1 = subprocess.Popen(command,shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
|
|
@@ -174,7 +174,7 @@ def music_gen(difficulty,time_Signature, Key_Signature):
|
|
| 174 |
f.close()
|
| 175 |
# out, err = cmd1.communicate()
|
| 176 |
# # time.sleep(2)
|
| 177 |
-
cmd2 = subprocess.Popen(['
|
| 178 |
# cmd2.wait()
|
| 179 |
|
| 180 |
#fluidsynth() dependency
|
|
|
|
| 165 |
|
| 166 |
f = open(song_path+".ly","w")
|
| 167 |
# subprocess.Popen(['/usr/bin/abc2midi',songname],stdout=subprocess.PIPE).communicate()
|
| 168 |
+
command = "abc2ly "+"-o "+song_path+".ly"+" "+songname
|
| 169 |
|
| 170 |
# cmd1 = subprocess.Popen(['/usr/bin/abc2ly','-o',song_path+".ly",songname],stdout=subprocess.PIPE,stderr=subprocess.PIPE)
|
| 171 |
# cmd1 = subprocess.Popen(command,shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
|
|
|
|
| 174 |
f.close()
|
| 175 |
# out, err = cmd1.communicate()
|
| 176 |
# # time.sleep(2)
|
| 177 |
+
cmd2 = subprocess.Popen(['lilypond','-fpng','-o',path,song_path+".ly"]).communicate()
|
| 178 |
# cmd2.wait()
|
| 179 |
|
| 180 |
#fluidsynth() dependency
|