v0.101.0: the timeline can show the song's waveform (Preferences › Appearance › Timeline: Waveform) — an embossed bar whose played part reveals the waveform in the highlight color, drawn exactly at whatever width the window is

This commit is contained in:
2026-11-23 12:01:28 -08:00
parent 5f6f01d91c
commit 224ecfd291
7 changed files with 574 additions and 3 deletions
+10
View File
@@ -245,6 +245,16 @@ persistence) → GUI (Qt widgets that read the manager and connect to its signal
panel draws the cover to the outline's centre and the 1 px line over it
in the lists' grey (`frame_color`); inset by half a pixel, the clip
left a pale blend that read as a 2 px border on vivid covers.
**The timeline has two looks** (Round 133, pref `timeline`, Preferences ›
Appearance): `plain` is Fusion's; `waveform` makes `SeekSlider` paint
itself — an embossed groove, the played part a `TINT` of the highlight,
and over it the song's waveform in the highlight, centred, only left of
the handle. `waveform.py` decodes the whole file once (ffmpeg, mono
22,050 Hz, streamed) into ~5.8 ms bins of peak + RMS, cached in
`$XDG_CACHE_HOME/lintunes/waveforms/`; each paint width is an exact
reduction of them (`columns`) into a device-pixel image whose bar ends
are partial pixels (`coverage`), rebuilt on resize. Time maps onto the
handle *centre's* travel. Nothing is decoded while the look is plain.
The now-playing panel (`transport.NowPlayingPanel`, Round 110) is a
Go to Current Song button while a song is on (not in DJ mode): raised
in the hover face under the cursor, sunk and darker while held. Its