Awell00 commited on
Commit
6e5c437
·
verified ·
1 Parent(s): 3d32187

fix: guitar too loud in music

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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