From 80bb3ae1dea85edebbac23d6c3f60a031371f866 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 4 Apr 2026 07:59:55 -0400 Subject: [PATCH] =?UTF-8?q?play.py:=20bass=20tilt=2030%=E2=86=9210%=20on?= =?UTF-8?q?=20spectrum?= 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 28d850a..1f8f76b 100644 --- a/play.py +++ b/play.py @@ -353,7 +353,7 @@ def play_audio(buf, sample_rate, title="", info_lines=None, offset_sec=0.0): # Tilt — reduce bass, boost highs to compensate for FFT energy distribution for j in range(len(bands)): frac = j / len(bands) - bands[j] *= (0.3 + frac * 0.7) # bass at 30%, highs at 100% + bands[j] *= (0.1 + frac * 0.9) # bass at 10%, highs at 100% 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