r/coolgithubprojects • u/gabrielecarsana • 2d ago
Stelix: free real-time stem separation for any app's audio on macOS, running locally on the GPU with MLX
Hi everyone!
I play the piano, and to get the stems of a song I wanted to play along to, I always had to find the audio file, import it into my DAW and wait for a stem splitter. Stelix does it live on whatever the Mac is already playing, from Spotify, YouTube or any other app.
Under the hood:
- The audio comes from a Core Audio process tap, so there's no virtual audio driver to install. macOS only asks for the system audio recording permission.
- Live runs Demucs (htdemucs) on the GPU through MLX Swift, using kylehowells/demucs-mlx-swift. It works on 7.8-second windows and reads each result near its edge, so you hear the stems about one second behind on a fast Mac.
- Studio mode separates a whole recording or file with bigger models (htdemucs_6s, and BS-Roformer through a Python sidecar at the higher quality levels) and saves 6 stems as WAV.
- The UI is SwiftUI, with a bit of AppKit for the menu bar panel. When you switch back to Original, the engine stops and the app uses no CPU.
It needs Apple silicon and macOS 15 or later. Everything runs on the Mac, with no account and no network calls except downloading the models and checking for updates.
Repo (GPL-3.0): https://github.com/stelix-app/stelix
Website: https://getstelix.com
It's the first public release. Issues and PRs are welcome, and I'd be curious to hear how far behind Live runs on your Mac.
Thanks!