Fixed STEM analysis not working on Windows

This commit is contained in:
patben8 committed 2026-10-13 10:59:22 +02:00
1 parent 591f2bc791
commit 87cbd3720e
5 files changed
+25 -17

No files matched your search

+2 -2
View File
@@ -1666,10 +1666,10 @@ def analyze_preview(body: AnalyzeRequest) -> AnalyzePreview:
def _decode_for_analysis(path: Path):
"""Mono samples at the rate BOTH detectors work at (they share one decode)."""
import librosa
from .core import waveform
assert grid_detect._SR == key_detect.SR, "grid and key detection must share a sample rate"
return librosa.load(str(path), sr=key_detect.SR, mono=True)
return waveform.load(path, sr=key_detect.SR)
def _analyse_one(a, track_id: str, body: AnalyzeRequest, result: dict) -> None: