I made this cause i wanted to stare at something when i'm studying but also can't concentrate. Made it like this cause TUI has been getting some hype.
You need the PortAudio C library installed on your system.
- macOS:
brew install portaudio - Linux (Ubuntu/Debian):
sudo apt-get install libportaudio2 libportaudio-cpp0 portaudio19-dev - Windows: Install via MSYS2 or ensure the DLL is in your path.
Initialize a module and get the dependencies:
go mod init visualizer
go get [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea)
go get [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss)
go get [github.com/gordonklaus/portaudio](https://github.com/gordonklaus/portaudio)
go get [github.com/mjibson/go-dsp/fft](https://github.com/mjibson/go-dsp/fft)go run main.go- Q / Esc / Ctrl+C: Quit
- Resize Terminal: The UI adapts automatically.
If you see an error like pkg-config: exec: "pkg-config": executable file not found, install pkg-config via your package manager.
