v0.82.0: Instant vocal splitting (Spleeter via sherpa-onnx, opt-in), a per-deck Instant/HQ swap, and stems cached as Opus

This commit is contained in:
2026-10-26 17:25:33 -07:00
parent 1fd7dacf88
commit cd4edcf81f
13 changed files with 785 additions and 70 deletions
+19
View File
@@ -472,6 +472,25 @@ persistence) → GUI (Qt widgets that read the manager and connect to its signal
`split`'s watcher thread at once (it can go seconds without a progress
line). The slider then stays enabled, and grabbing it (or loading the
song again) splits it over.
**Round 114 — Instant vocals** (`dj/instant.py`, opt-in): Spleeter's
2-stem weights as ONNX through **sherpa-onnx** — the real `spleeter`
package needs TensorFlow and Python ≤3.11 — in its own venv
(`$XDG_DATA_HOME/lintunes/spleeter`, ~160 MB, made by Preferences › DJ's
download button, `InstantSetup`; models pinned by SHA-256 — the
release's checksum.txt is stale for them). `_spleeter_run.py` runs in
that venv (`-I`, no LinTunes imports) in 30 s pieces crossfaded over 1 s
(sample-aligned across seams, measured): ~11–17 s for a 4-min song while
Demucs was running beside it. It is the lowest tier (`stems.TIERS`,
`"spleeter"`), so a cached Demucs split still wins. The decks keep **one
`StemSplitter` per engine** (`HQ`/`FAST`; Instant never queues behind
Demucs); `DeckView.engine` is what the deck wants, `using` the tier
playing. `dj_stem_default` (synced) picks the engine a deck starts with,
`stems.default_engine` falls back to whichever is installed *here*. Each
deck's **Instant ⇄ HQ** button (only when both are set up) swaps: to HQ
keeps the instant stems playing until Demucs lands; to Instant kills a
running Demucs. Every split is cached as **Opus 160k** (`to_opus`, ~1/7
of FLAC; decodes back sample-aligned); old FLAC splits still read.
conftest `_no_instant_split` pins `instant.available` off in tests.
**Prepare for DJ** (a playlist's or songs' right-click; `dj/prepare.py`)
does the BPM + split ahead of time with the status-bar progress/cancel.
Each deck also has a volume fader (outer edge, perceptual), a ½×/1×/2×