Made a small sound visualizer demo

tranzystorek_io@beehaw.org to Free and Open Source Software@beehaw.org – 1 points –
spectroscope
codeberg.org

I have been tinkering with sound visualizing recently and this is the result :3

5

This looks pretty cool to me. Well done :)

Thank you! I've made small tweaks since posting, like adding config flags to CLI, for instance --style fill will display "filled" bars instead of "striped":

I've been working on a small TUI framework and sound was something I was wondering if possible to be done. My code is in PHP though not Rust. So this might give me some insight on how capturing works (I have no idea how sound works) but what I wanted to create is the capability (more or less) that for example TIC-80 provides where you have input from sound and make graphics respond to it (see Lovebyte jam sessions on youtube for example).

I really like the detail on the non filled ones where the last one on top might not always be a full one.

Sound capture was a major pain point here 😅 I had to hardcode an alsa loopback device identifier, and beyond that it's very manual - loading alsa's loopback kernel module, connecting my music player to the pipewire device and such