Skip to main content

separate_learned

Function separate_learned 

Source
pub fn separate_learned(
    mixture_mag: &[f32],
    n_stems: usize,
    out_stems: &mut [f32],
) -> Result<usize, AudioError>
Expand description

Attempt learned, demucs-class source separation of a mixture magnitude spectrum into n_stems stems written contiguously into out_stems (n_stems × mixture_mag.len()).

Always fails closed. No weights are bundled, so this returns AudioError::BackendUnavailable without touching out_stems — it never fabricates stems.

§Errors

Always AudioError::BackendUnavailable (NeedsWeights).