v0.65.0: DJ mode round three, and the small things

- The shelf is revealed in place: the decks don't stretch or squeeze as
  the window parts.
- The DJ button is the top row's last box (where bpm was), so it stays
  put; bpm moved under it.
- Tempo, vocals and the crossfader snap to their middle and show it. The
  vocals slider has icons, lined up with its ends and middle.
- Sync sticks: a synced deck follows the other's tempo, glows and says
  Synced until its own tempo fader moves. The ½×/1×/2× switch re-syncs,
  and the BPM line says when it's counted half or double.
- A back-to-the-start button per deck.
- The air horn is a real recording (CC0): tap for the phrase, hold to
  stretch the first blast.
- The zoomed waveforms ease out while a deck is paused or held.
- DJ audio follows a change of output device instead of going silent.
- A new playlist folder is named in place, scrolled into view.
- Visualizer bars: choose how many, 1 to 1024 (one per pixel at most).
- The volume slider is as tall as the scrubber.
This commit is contained in:
2026-10-17 04:00:34 -07:00
parent 6d6a0c2385
commit e00aafefba
21 changed files with 807 additions and 179 deletions
+7 -5
View File
@@ -78,13 +78,15 @@ def test_deck_volume_and_horn():
mixer.crossfader = 0.0
mixer.a.volume = 0.5
assert mixer.deck_gain(mixer.a) == pytest.approx(0.5)
mixer.horn.on = True
tone = (np.sin(np.arange(RATE) / RATE * 2 * np.pi * 400) * 20000).astype(np.int16)
mixer.horn.set_sample(np.stack([tone, tone], axis=1)) # a 1 s "horn"
mixer.horn.press()
loud = mixer.render(4410)
assert np.abs(loud).max() > 0.1
mixer.horn.on = False
mixer.render(RATE // 2)
assert mixer.horn.render(64) is None # it has died away
assert len(mixer.tap) == 2 and mixer.rendered == 4410 + RATE // 2
mixer.horn.release()
mixer.render(RATE)
assert mixer.horn.render(64) is None # it has played out
assert len(mixer.tap) == 2 and mixer.rendered == 4410 + RATE
def test_the_visualizer_draws_the_mix(shelf, qapp):