Closed rs-pro0 closed 2 weeks ago
I can't see how those filters should relate to the output mode. Are you sure it looks fine with the waves filter turned off?
Yes, it is because the max value is much bigger when using raw mode(65530), this also explains why it works as expected when using ascii data format with ascii_max_range set to 1000.
try disabling waves, does it look ok then?
Yes, just using monstercat filter works the same way in raw mode and regular one.
Doesn't make any sense, I tested it with ascii output (65530 max) and the numbers looked the same with and without waves enabled
You need to have monstercat enabled for waves to work afaik.
I have that
But if they look the same then waves do nothing, right?
If you look at lines 184 and 188 in cava.c you can see that it subtracts a value that isn't affected by height. So it will subtract the same value for max 1000 and max 65530.
oh right now I'm following, sorry. Was able to reproduce sort of similar failure using the sdl_glsl output as it is only 0-1 at the time of applying this filters.
hmm i did not write the monstercat or the waves filter, but I can look into it.
it looks to be based around the assumption that the height and the number of bars are in the same ballpark type numbers. I tried normalizing the values, does it look better now?
With bigger height it just looks the same way if waves were disabled.
i am not following, so now it doesn't look as if waves are enabled at all?
Yes, because value is too big and max function selects another value. For me this works: https://github.com/rs-pro0/cava/commit/23e7e0aee48195f5c16b9764d36df9b227146d11
I think you don't need to put the height normalizer in pow because then it is also squared which is not needed.
Does that look good to you?
yes, that makes sense, i will make another commit
Thank you.
A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior No matter the max height waves should look properly.
Screenshot Expected behavior:
Actual behavior:
![image](https://github.com/karlstav/cava/assets/55341323/dd3e896c-a404-4b58-9a93-c7f05318ef42)
Desktop:
Terminal emulator Not using one.
Additional context To test this I'm using my Rust app that draws cava to the screen, here is code that reads the input if necessary.
Also the same can be achieved if you use ascii data_format and set ascii_max_range to 65530(probably any large number).