-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Waves don't work properly in raw mode. #573
Comments
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: rs-pro0@23e7e0a |
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:
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).
The text was updated successfully, but these errors were encountered: