From 72ab3c79493bfa057f667c2feb08d982871861e4 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 4 Apr 2026 01:28:55 -0400 Subject: [PATCH] =?UTF-8?q?play.py:=20lighter=20braille=20spectrum=20?= =?UTF-8?q?=E2=80=94=20=E2=A1=80=E2=A1=84=E2=A1=86=E2=A1=87?= 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/play.py b/play.py index 4b30494..6ab2ab8 100644 --- a/play.py +++ b/play.py @@ -323,7 +323,7 @@ def play_audio(buf, sample_rate, title="", info_lines=None, offset_sec=0.0): # Spectrum analyzer — FFT frequency bands displayed as EQ bars import numpy as np scope_w = 48 - bars = "⠀⡀⡄⡆⡇⣇⣧⣷⣿" + bars = " ⡀⡄⡆⡇" window_size = int(sample_rate * 0.05) start_s = max(0, pos - window_size // 2) end_s = min(total_frames, start_s + window_size) @@ -350,7 +350,7 @@ def play_audio(buf, sample_rate, title="", info_lines=None, offset_sec=0.0): # Color each bar: low freq green, mid yellow, high red scope_parts = [] for j, b in enumerate(bands): - idx = min(8, int(b / peak * 8)) + idx = min(4, int(b / peak * 4)) frac = j / scope_w if frac < 0.33: c = "\033[32m" # green — bass