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
+1 -1
View File
@@ -266,7 +266,7 @@ def test_height_bounds():
low, high = height_bounds(1000, 22)
assert (low, high) == (1000 - 28 * 22, 1000 - 5 * 22)
assert default_height(1000, 22) == 1000 - 15 * 22
assert default_height(400, 22) == 320 # the full layout at least
assert default_height(400, 22) == 380 # the full layout at least (Round 96)
# ---- the window ----