Skip to content
프로젝트

소개

Mobile application for music source separation

디자인 및 미디어

이 수치를 측정하는 방법

What you can do

  • Supported formats: mp3, wav, flac, m4a (AAC or ALAC), ogg (Vorbis or Opus), and opus
  • Download songs from YouTube
  • Source separation in 4 different stems: Vocals, Bass, Drums and Other
  • Local library of unmixed songs

측정된 스타 증가

in 24h
0
in 7 days
기록 수집 중
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Demixr mobile application

Music source separation on mobile

Version badge Github build badge

:warning: This project is still in development, all the features might not work perfectly yet

Platform Support
Android :white_check_mark: Downloadable (APK)
macOS :white_check_mark: Downloadable (.dmg)
iOS :white_check_mark: Implemented & working — not yet on the App Store*

*The iOS build is complete and runs on device; publishing to the App Store / TestFlight requires a paid Apple Developer account ($99/yr), so it isn't distributed yet.

Music source separation

Music source separation is the task of decomposing music into its constitutive components, e. g., yielding separated stems for the vocals, bass, and drums.

Features

  • Load songs from the device
    • Supported formats: mp3, wav, flac, m4a (AAC or ALAC), ogg (Vorbis or Opus), and opus
  • Download songs from YouTube
  • Source separation in 4 different stems: Vocals, Bass, Drums and Other
  • Local library of unmixed songs
  • Integrated music player with the ability to mute / unmute each stem

Demixing

The demixing uses Demucs v4 (htdemucs), a hybrid-transformer source separation model, and runs cross-platform on Android, iOS and macOS. The decode, chunked overlap-add and the inverse STFT all run in Dart; only the conv + transformer core runs on the model runtime.

Models

The same htdemucs weights ship in two interchangeable backends, selectable at download time:

Model Engine Notes
htdemucs (GPU) ExecuTorch — CoreML (Apple) / Vulkan (Android) Default. GPU-accelerated; per-platform .pte.
htdemucs (ONNX) ONNX Runtime — CPU Cross-platform, smaller download, runs everywhere.

Both separate audio into 4 stems: Vocals, Drums, Bass, Other.

No 6-stem model. A 6-stem htdemucs variant (which adds Guitar and Piano) was evaluated but excluded — the guitar and piano separation quality was poor in our initial testing, so we kept the app to the 4 stems that work well.

The GPU .pte exports are built and hosted at demixr/demucs-executorch; the ONNX model is hosted on Hugging Face.

Performance

GPU (ExecuTorch) vs CPU (ONNX) on a 4-minute song, measured:

  • macOS — GPU ~8.4× faster than CPU.
  • iPhone — GPU ~2.5× faster than CPU (≈4× on compute, excluding the one-time model compile, which is warmed up at download time).

Note: Inference is done on CPU as GPU is not yet fully supported by PyTorch Mobile.

Download & install

Grab the build for your platform from the latest GitHub release.

Android (.apk)

  1. Download the .apk from the release.
  2. Open it. Android will ask to allow installing from this source — enable it (Settings → "Install unknown apps") and confirm.
  3. Open Demixr; on first use it downloads the separation model.

macOS (.dmg)

  1. Download demixr-macos.dmg and open it; drag Demixr to Applications.
  2. The app isn't notarized (it's a free, unsigned build), so the first launch is blocked by Gatekeeper. Right-click the app → Open → Open once; afterwards it launches normally.

iOS

The iOS app is implemented and works on device, but it isn't distributed yet: Apple only allows installs via the App Store / TestFlight, which require a paid Apple Developer account ($99/yr). It's the same model and engine as the other platforms (GPU-accelerated via CoreML) — just not published. To run it today you need to build from source with your own Apple account (flutter run).

Demo

https://user-images.githubusercontent.com/34341442/151656743-57e4d414-d8a8-4495-962a-55b27e08ab4c.mp4

Contributing

You are more than welome to contribute to Demixr, whether it's for:

  • Reporting a bug
  • Discussing the current state of the code
  • Submitting a fix
  • Proposing new features
  • Becoming a maintainer

Report a bug

You can report bugs using Github issues. Consider filling in the following informations for an optimal report:

  • Quick summary
  • Steps to reproduce
  • What you expected would happen
  • What actually happend
  • A screenshot if the bug is graphical

Submiting a new feature / fix

  1. Fork the repo and create your branch from main
  2. Make sure to add documentation and tests if necessary
  3. Create a pull request

References

관련 프로젝트 살펴보기

불러오는 중…