From 054d83745480a1b5b1faa3c3a792e017c8a93b1b Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 4 Apr 2026 07:56:09 -0400 Subject: [PATCH] =?UTF-8?q?play.py:=20spectrum=20log=208=E2=86=923=20?= =?UTF-8?q?=E2=80=94=20quiet=20parts=20nearly=20silent=20on=20display?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play.py b/play.py index 516a01c..d542e1b 100644 --- a/play.py +++ b/play.py @@ -349,7 +349,7 @@ def play_audio(buf, sample_rate, title="", info_lines=None, offset_sec=0.0): hi = lo + 1 bands.append(np.mean(fft[lo:hi])) # Log scale — human hearing is logarithmic - bands = [np.log1p(b * 8) for b in bands] + bands = [np.log1p(b * 3) for b in bands] peak = max(bands) if max(bands) > 0 else 1 # Multi-row spectrum: map each band to 0..n_rows*4 height max_h = n_rows * 4