From c5c63a76e8616b78ab5e519dfaaf57c1d8234a72 Mon Sep 17 00:00:00 2001 From: jonathan Date: Sat, 13 Jun 2026 07:41:12 +0200 Subject: [PATCH] fix: loudness navigation shows rank position, not time-order index When stepping the clip queue by loudness (U/I, or "highlights only" auto-advance), the position count showed the section's time-order index (e.g. "30 / 426") instead of its place in the loudest-first ranking, so walking highlights produced a count that jumped around. playClip now takes a byScore flag: the displayed position is the rank in scoreOrder() when navigating highlights ("1 / 426" = loudest), the time-order index otherwise. The in-player U/I path already announced the rank. Co-Authored-By: Claude Opus 4.8 --- CLAUDE.md | 2 +- webui.html | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 51409bb..c4a156f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -38,7 +38,7 @@ Dependencies: `requests` (streams), `numpy` + `soundfile` (FLAC output and FLAC - Serving: `_stream()` (Range support), `_copy_to_response()`, `_safe_path()` (path traversal guard). `webui.html` (one `