Spaces:
Running
on
Zero
Running
on
Zero
fix: guitar too loud in music
Browse files
app.py
CHANGED
@@ -347,6 +347,8 @@ def combine_stems_for_all(input_dir, output_format="mp3"):
|
|
347 |
|
348 |
# Load and combine stems
|
349 |
stems = {name: AudioSegment.from_file(path) for name, path in stem_paths.items()}
|
|
|
|
|
350 |
combined = stems["vocals"].overlay(stems["bass"]).overlay(stems["others"]).overlay(stems["instrumental"])
|
351 |
|
352 |
# Trim silence at the end
|
|
|
347 |
|
348 |
# Load and combine stems
|
349 |
stems = {name: AudioSegment.from_file(path) for name, path in stem_paths.items()}
|
350 |
+
|
351 |
+
stems["instrumental"] = stems["instrumental"].apply_gain(-15)
|
352 |
combined = stems["vocals"].overlay(stems["bass"]).overlay(stems["others"]).overlay(stems["instrumental"])
|
353 |
|
354 |
# Trim silence at the end
|