You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(demystify): play a ten-second track excerpt, and collapse the track index
The FULL TRACK INDEX is now a closed <details> disclosure showing its count
rather than 60 rows dumped under the genre list — every track already appears on
its own genre's page.
Audio now plays the track rather than a placeholder. The files under
public/demystify/genre turned out to be two-second WAV blips with an .mp3
extension, so there was no real audio to excerpt; previews come from the iTunes
Search API instead, which needs no key and sends CORS headers. 58 of the 60
tracks resolve.
- resolve a track to its catalogue preview on press, cached per session, and
play a ten-second window of it
- window start comes from an optional 4th field on a track line, else the
centre of the clip
- source order: track preview, then the genre's local sample, then a chord
synthesised from the genre's spectrum
- one control per track in the detail list, and the genre row auditions its
first track
- the control shows resolving / playing / fell-back-to-synth, so a press that
finds no preview is never silently ambiguous
- drop the redundant wide play button that duplicated the first track
0 commit comments