v0.64.0: DJ mode round two — vocals models, Prepare for DJ, deck volumes, ½×/2×, scrubbing, air horn

- Preferences › DJ: vocals model (Best / Balanced / Fast) and gentle CPU
  use (a quarter of the cores, lowest priority — measured only ~20%
  slower). Splits are cached per model; a deck uses the best one.
- Prepare for DJ on a playlist or songs: BPM and vocals ahead of time.
- Each deck: a volume fader on the outer edge, labelled beside Tempo; a
  ½×/1×/2× switch for half/double-time counting.
- Drag a waveform to scrub (backwards too).
- Crossfader: a handle twice as tall, a middle line, a snap to centre;
  narrower. "calculated, saved" is gone from the BPM line.
- Keep pitch shows a checkmark. An air horn to hold.
- The visualizer draws the mix; the sidebar art hides in DJ mode.
- The Library button has the transport buttons' 8 px corners.
This commit is contained in:
2026-10-17 03:13:59 -07:00
parent 8298450814
commit 6d6a0c2385
16 changed files with 1029 additions and 97 deletions
+19
View File
@@ -387,6 +387,25 @@ persistence) → GUI (Qt widgets that read the manager and connect to its signal
(`stems.setup_command()`; it needs numpy installed explicitly), never a
pip dependency of LinTunes — without it the slider is disabled with that
command in its tooltip.
**Round 94**: Demucs is the CPU hog (htdemucs: 29 s per 40 s of audio on
8 cores, 35 s on 2 — so cores barely matter), so it always runs niced
and Preferences › DJ (its own page) picks the model (`stems.MODELS`:
Best = htdemucs_ft, Balanced = htdemucs, Fast = htdemucs at overlap 0.1,
~25 % quicker; hdemucs_mmi 42 s and mdx 156 s were slower, no "fast"
model exists) and "gentle" (default: a quarter of the cores, nice 19).
Splits are cached per model (`<key>/<model>/`; Round 93's sit in
`<key>/` and count as htdemucs) and a deck takes the best one cached.
**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×
switch (half/double-time: the BPM shown, the beat ticks and what Sync
matches — `analysis.sync_speed` takes the straight ratio unless it's
implausible, then the nearest octave), and its waveform lane scrubs when
dragged (a scratch at the drag's rate). The crossfader is
`dj_shelf.Crossfader` (big handle, a middle line, snaps within 3 %). An
air-horn button (held = longer; `audio.Horn`, synthesised). The
transport's visualizer draws the mix in DJ mode (`Mixer.tap` →
`VisualizerWidget.set_dj_source/feed_dj`). The sidebar art hides.
- **`lintunes/importers/itunes_importer.py`** — parses the iTunes XML plist.
Remaps Mac `file:///Volumes/...` paths to the local `--music-root` with