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
+12
View File
@@ -155,3 +155,15 @@ def syncthing_pair(tmp_path):
yield instances
finally:
pair.stop(out)
@pytest.fixture(autouse=True)
def _collect_on_the_main_thread():
"""Python's garbage collector runs on whichever thread happens to
trigger it — a worker's included — and a Qt object left over from a
test, destroyed off the GUI thread, segfaults later (the rare crash in
test_round72's maximized window, Rounds 94–96). Collecting here, after
every test, on this thread, leaves workers nothing Qt to collect."""
yield
import gc
gc.collect(1) # the young generations: what a test just left