Spaces:
Sleeping
Sleeping
Update music.py
Browse files
music.py
CHANGED
@@ -161,9 +161,9 @@ def music_gen(difficulty,time_Signature, Key_Signature):
|
|
161 |
|
162 |
# hack to include dictionary at the beginning of every abc file
|
163 |
# will add a more sophisticated way to generate the values in the future
|
164 |
-
title = "
|
165 |
final_timeS,numOfnotes = time_sigFinder(time_Signature)
|
166 |
-
songbeginning = ['X:1','T:' + title, 'R:
|
167 |
]
|
168 |
songbeginning = [x+"\n" for x in songbeginning]
|
169 |
|
|
|
161 |
|
162 |
# hack to include dictionary at the beginning of every abc file
|
163 |
# will add a more sophisticated way to generate the values in the future
|
164 |
+
title = "SpriFi MusicGen {}".format(dob)
|
165 |
final_timeS,numOfnotes = time_sigFinder(time_Signature)
|
166 |
+
songbeginning = ['X:1','T:' + title, 'R:AI generated by SpriFi', 'C:MusicGen v2 Pro', 'Z:id:hn-song-111', final_timeS, 'L:1/8', 'Q:1/4=120', 'K:G'
|
167 |
]
|
168 |
songbeginning = [x+"\n" for x in songbeginning]
|
169 |
|