github-actions[bot]
commited on
Commit
·
d4e97e7
1
Parent(s):
ef24873
Sync from GitHub: c41325319a184f2e41b4253f10027acd4a889425
Browse files
services/audio_separator.py
CHANGED
|
@@ -142,6 +142,10 @@ class AudioSeparator:
|
|
| 142 |
self._save_audio(source, sr, path)
|
| 143 |
return {"guitar_rhythm": path, "guitar_lead": path}
|
| 144 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
# 1. Smart Spatial Split Check
|
| 146 |
# Calculate correlation between L and R to detect Hard Panning (Math Rock Style)
|
| 147 |
# If correlation is low, it means L and R are playing different things.
|
|
|
|
| 142 |
self._save_audio(source, sr, path)
|
| 143 |
return {"guitar_rhythm": path, "guitar_lead": path}
|
| 144 |
|
| 145 |
+
# Define Left and Right channels for processing
|
| 146 |
+
left = source[0:1, :]
|
| 147 |
+
right = source[1:2, :]
|
| 148 |
+
|
| 149 |
# 1. Smart Spatial Split Check
|
| 150 |
# Calculate correlation between L and R to detect Hard Panning (Math Rock Style)
|
| 151 |
# If correlation is low, it means L and R are playing different things.
|