Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small fix in aria.utils #2

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
Alex Spangher authored and Alex Spangher committed Mar 7, 2024
commit 9da2250eae575512918a3241b0c5a3afc1a8257a
3 changes: 2 additions & 1 deletion aria/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
def midi_to_audio(mid_path: str, soundfont_path: str | None = None):
here = os.path.dirname(__file__)
FLUIDSYNTH_DIR = os.path.join(here, "..", "fluidsynth")
SOUNDFONT_PATH = os.path.join(here, "..", "DoreMarkYamahaS6-v1.6.sf2")
SOUNDFONT_PATH = os.path.join(FLUIDSYNTH_DIR, "DoreMarkYamahaS6-v1.6.sf2")
DOWNLOAD_URL = "https://www.dropbox.com/scl/fi/t8gou8stesm42sc559nzu/DoreMarkYamahaS6-v1.6.sf2?rlkey=28ecl63kkjjmwxrkd6hnzsq8f&dl=1"

if os.name != "posix":
Expand All @@ -24,6 +24,7 @@ def midi_to_audio(mid_path: str, soundfont_path: str | None = None):
)
if _input == "Y":
if not os.path.isdir(FLUIDSYNTH_DIR):
print(f"making dir: {FLUIDSYNTH_DIR}")
os.mkdir(FLUIDSYNTH_DIR)

res = requests.get(url=DOWNLOAD_URL)
Expand Down