From 76bcc531f96977b5cb469cc29172e5ac36953f6f Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 4 Apr 2026 01:38:40 -0400 Subject: [PATCH] =?UTF-8?q?play.py:=20spectrum=20log=2015=E2=86=928=20?= =?UTF-8?q?=E2=80=94=20even=20more=20contrast?= 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 1c65c25..516a01c 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 * 15) for b in bands] + bands = [np.log1p(b * 8) 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