v0.66.0: DJ mode's djay layout, loops, a sync that sets once, a real horn, a smooth slide

- Records in the top corners, each deck's controls beside them facing the
  middle, the zoomed A-over-B waveforms in the centre, and a whole-song
  overview per deck below (click to jump, drag to move) with the
  crossfader between them.
- Loops per deck: Loop plus a 1/32 to 8 beat stepper; a loop starts on
  the next beat and shows on both waveforms.
- Sync sets this deck to the other's tempo once, and stays lit only while
  that still holds.
- The air horn plays like a real one: every press a fresh blast, held it
  carries the note, let go it stops.
- Opening and closing DJ mode slides a picture over the final layout
  instead of re-laying-out the window every frame (the flicker).
- Tests: garbage is collected on the main thread after each test, which
  stops a rare segfault in the full run.
This commit is contained in:
2026-10-17 22:19:59 -07:00
parent e00aafefba
commit 279f51fba9
9 changed files with 734 additions and 191 deletions
+22
View File
@@ -422,6 +422,28 @@ persistence) → GUI (Qt widgets that read the manager and connect to its signal
while a deck is paused or held. The sink reopens when the system's
default output changes (`output._Pump`: `audioOutputsChanged`, a device
id check, an error check) — it used to go silent until DJ mode reopened.
**Round 96**: the layout is djay's — records in the top corners, each
deck's controls beside its record facing the middle (title, tempo, |◀ ⏯
Sync, ½×/1×/2×, Keep pitch, Loop, vocals), the horn and the zoomed A-over-
B lanes in the centre, and below them each deck's **whole-song overview**
(`OverviewWave`: played part shaded, playhead, loop band; click jumps,
drag moves) with the crossfader between. **Loops**: Loop + a ‹ size ›
stepper (1/32 … 8 beats); a loop starts on the *next* beat; the engine
renders up to the loop end in pieces and wraps (`Deck.loop`), shown on
both waveforms. **Sync sets once** (trav's call): it puts this deck at the
other's tempo and stays lit only while that holds (`_check_sync`: same
song on the other deck, tempos still equal) — nothing follows anything.
**The horn** plays like a real DJ horn: every press a fresh blast (older
ones fade under it), held = the first blast's steady middle looped, let
go = a 90 ms fade. **Opening/closing slides a picture** (`SlideOverlay`):
the window jumps to its final layout once and a grab of what was below
the transport boxes moves over it — animating the real shelf height
re-laid-out the window every frame, which flickered.
The suite collects garbage on the main thread after every test (conftest
`_collect_on_the_main_thread`): Python's GC runs on whatever thread
triggers it, and a Qt object a test left behind, collected on a worker,
segfaulted a later test (always test_round72's maximized window, only in
the full run).
- **`lintunes/importers/itunes_importer.py`** — parses the iTunes XML plist.
Remaps Mac `file:///Volumes/...` paths to the local `--music-root` with