karlstav / cava

Cross-platform Audio Visualizer
MIT License
3.92k stars 225 forks source link

Erratic when waveform activated #558

Open Kellsen opened 2 months ago

Kellsen commented 2 months ago

Heya all,

I built cava today from latest release, all working as expected but when I activate waveform instead bars the display becomes totally erratic and that can't be changed with any config settings. I tried it all.

Setting it back to bars it's smooth and looks nice.

The upper one is with waveform enabled, bar spacing=0, the lower one is an older, cached instance with waveform deactivated and bar spacing=1. It runs in a urxvt subwindow with devilspie2 handling it so it looks like it's embedded in my Conky, which it is not. But it wouldn't make a difference either way. I played around with all the settings in the cava config that would occur to me but nothing helps. I hope it makes sense.

System is LMDE 6 (Faye), Kernel 6.1.0-18-amd64, Graphics GeForce 3060Ti with 550.67 Driver, DE is Cinnamon 6.0.4, cava output is default

ezgif-3-97ced99b36

karlstav commented 2 months ago

hi @Kellsen,

The waveform visualization is very raw as it is now. Just draws each sample as a bar in the terminal (adds up left+right if it is stereo). So it will be very erratic. If you have a lot of bars it looks slightly better, but not great. Here is same song with a lot of bars 512 maybe i think is max:

file

strangely the gif conversion made it look better.

I think I could make it smoother by adding some filters, but haven't gotten around to it yet.

Kellsen commented 2 months ago

Ah, alright. So it isn't just me :+1: Yes, when I converted to gif at a lower framerate it actually looked quite alright, too. I tried to reduce the framerate in the conf but to no avail. ezgif-3-38aabb015c

I'm using DeadBeef which has a spectrum plugin that looks nice. Hence I wanted to implement it in my Conky (which it actually isn't. It's just a script superimposed to my conky handled by devislpie2) https://github.com/cboxdoerfer/ddb_musical_spectrum

But thanks so far for that cool app! Looking forward to what's coming :) :+1: