From 1dd53ac8c030dee870885b7235fa6b61efd6249d Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 4 Apr 2026 01:38:02 -0400 Subject: [PATCH] =?UTF-8?q?play.py:=20reduce=20log=20compression=20on=20sp?= =?UTF-8?q?ectrum=20(50=E2=86=9215)=20for=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 8244695..1c65c25 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 * 50) for b in bands] + bands = [np.log1p(b * 15) 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