Skip to content

Commit 5648088

Browse files
authored
Add files via upload
1 parent ce8bdf3 commit 5648088

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

spp_config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"KEY_INSTRUMENTALS": "1",
33
"KEY_VOCALS": "2",
44
"KEY_BASS": "3",
5-
"KEY_DRUMS": "4"
5+
"KEY_DRUMS": "4",
6+
"MP3_WAV": "MP3"
67
}

stemplayerplayer.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222

2323
folder_path = filedialog.askdirectory(initialdir=os.path.normpath("%UserProfile%\Documents"), title="Select Tracks Folder")
2424
print(folder_path)
25-
stem_list = glob.glob(folder_path + "/*.mp3")
25+
if SPP_CONFIG["MP3_WAV"] == "WAV":
26+
print("Using WAV...")
27+
stem_list = glob.glob(folder_path + "/*.wav")
28+
else:
29+
stem_list = glob.glob(folder_path + "/*.mp3")
30+
print("Using MP3...")
31+
2632

2733
pg.mixer.init()
2834
pg.init()

0 commit comments

Comments
 (0)