play.py: bass tilt 30%→10% on spectrum

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-04 07:59:55 -04:00
parent fabcd0de92
commit 80bb3ae1de
+1 -1
View File
@@ -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