Skip to content

Add terminal EQ meter to WAV example#21

Merged
iancharest merged 2 commits into
mainfrom
codex/play-wav-eq-meter
Jun 12, 2026
Merged

Add terminal EQ meter to WAV example#21
iancharest merged 2 commits into
mainfrom
codex/play-wav-eq-meter

Conversation

@iancharest

@iancharest iancharest commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add optional --eq five-band terminal meter to examples/play_wav.py.
  • Render an in-place dynamic horizontal five-row EQ display in real terminals.
  • Fall back to compact single-line updates when stdout is not a TTY.
  • Keep the meter dependency-free and computed from chunks already being streamed.
  • Add --eq-width and --eq-refresh controls.
  • Document the flag in the README.

Validation

  • PYTHONPATH=src python3 -m unittest discover -s tests
  • python3 -m compileall -q src tests examples
  • PYTHONPATH=src python3 examples/play_wav.py --duration 3 --volume 0.25 --eq --eq-width 18
  • Playback smoke test reported underruns=0 and overruns=0.

@iancharest iancharest merged commit 03fe450 into main Jun 12, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant