-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Precision issues with __hv_log2_f SSE and NEON SIMD #184
Comments
@lokkiikkol please don't post issues in (possibly) unrelated tickets. Especially when not giving any useful information. Can you share a (minimum) patch that showcases the problem? And try to explain the problem as well. "not the right output" doesn't give us anything to go on. |
sorry, yes. I use plugdata to export a patch to vst on osx (Sonoma). I just now put together a simple test patch, and it works with mtof~ and ftom~, however the resulting frequency is out of tune to the test frequency I put it against, this is the patch:
I will have to investigate further, why my original patch is not working, it is a bit more complex but I will try to strip it down some more. |
Hmm, it works correctly for me on Linux. Are you on Apple Silicon? maybe there is an issue with the NEON optimization. |
yep, I am on an m1. so you get no beating (left against right channel) at all in the exported vst? |
ok, this patch here exhibits the problem: on my machine the left channel outputs a phasor at 220 hertz while the right channel stays silent... Patch
sorry don't know why it is not layouted....it looks fine before I post it. |
Use tripple backticks instead of single :) |
These patches are much too complex to debug sensibly. Also I really recommend against using a |
actually this is the simpler version, sorry I posted twice the same: Patch
|
noted. I don't currently have cardinal, but will try to get it, have to leave now unfortunately. I can see from the meters in my host (Element), that there is output which is not audible, this normally means that there is just a dc output (frequency at zero) I don't have a scope in my plugins currently. |
Thank you. Can you do the same for the first patch? It's much more minimal so likely easier to pinpoint what's going on. Of course the issue could be either in |
I just tried an SSE build (of the first patch) and I see a similar discrepancy. |
Lets not conflate different issues in the same ticket. It is better to focus on one thing at a time. If you see an issue with |
I think the issue is likely with the approximation used in the SIMD implementation. The precision can possibly be improved somewhat by tweaking the constants used. I don't know what the best approach is and we will likely need some help to achieve this. |
You can see the patch implementations here: https://github.com/Wasted-Audio/hvcc/tree/develop/hvcc/interpreters/pd2hv/libs/pd I don't think the issue is with |
this patch shows also no drift, meaning the problem has to be in the ftom~ object... Patch
|
and this ftom replacement I did also shows the drift, of course it also uses hv.log~ so your assumptions seems legit. Patch
|
_Originally posted by @lokkiikkol
The text was updated successfully, but these errors were encountered: