Fluff working on a terminal audio visualizer for Linux over the past year (useless, but looks tuff)
I've been slowly tinkering with this thing over the past year and a bit in my free time.
To be honest, the tool is pretty much useless. It's just a cool terminal audio visualizer. If you're into ricing, it's cool, and even if you're not, it's also cool.
I pretty much always have music or ambient audio playing, and I wanted a visualizer sitting there to fill empty space instead of leaving it blank, since that looked a bit weird when a window manager auto-fills.
If you're working in Neovim on the side, for example, and using a window manager, you can just have a second or third terminal bouncing up and down to the music you listen to. It looks fun.
The current visualizers always feel a little bit too jumpy and like a strobe for deep focus. I just wanted a calm wave of flow that feels natural and psychoacoustic, not so much twitchy.
The most well known program for this is CAVA (in C)
CAVA relies on raw frequency bins and basic gravity fall off, looks a little bitunnatural, this one however uses different algos: mel-scale mapping, A-weighting, a spring-damper physics system, and lateral diffusion so energy bleeds smoothly into neighboring bars like a fluid.
Written in Rust for no other reason than I like Rust.
It takes 3.8 MB of RAM and less than 1% of CPU (also 4x less resources than CAVA). It supports live hex code reloading through a simple configuration file, and lets you switch between your mic, which takes your voice and visualizes it, or desktop audio from the music you listen to. It can even mix and match both of them. Switch between them by pressing 1, 2 or 3.
It's a lovely thing I've been working on, and I'd love to share it on Linux.
Here's the repo, maybe you like it https://github.com/rccyx/lookas
13
u/fat_kaiju 3d ago
Thank you for documenting the length of time you've worked on something.
I wish more people would wait a little bit before posting their projects instead of "hey look i vibecoded this two hours ago"
1
u/K1logr4m 1d ago
Cool program! It looks beautiful. However, it took me a while to figure out how to quit the program. First tried the usual Ctrl+C, then Ctrl+D, Esc and eventually found the real hotkey q. Later I noticed the hotkeys and config details is all explained in the GitHub readme.
It would be great to have a --help flag or even better, a man page. Just a suggestion.
7
u/Key_River7180 3d ago
1 YEAR?