-
Notifications
You must be signed in to change notification settings - Fork 404
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
Lanczos read index error #4465
Comments
Yeah, the solution I came up with was to make the tables longer by 1 entry float lanczosTable[tableObs+1][filterSize]; But a better option might be to wrap (but after setting int tidx = (int)(off0byto);
double fidx = (off0byto - tidx);
tidx = (idx0 + tableObs) & (tableObs - 1); Another weird behaviour I found was that if you Anyway, just wanted to write down the stuff I was thinking last night before I forget it all :). I can help with writing test cases and so on later today or tomorrow. |
I was thinking fo the extend-by-one fix this morning and I think it is the right one. |
yeah the buffer overflow is real but practically not a problem. I thought about making the buffer size a template. I'll push a little +1 fix in a minute. |
Anyway put in a fix and tested twist - which is still fine at 44.1 and 48 |
@jatinchowdhury18 reports:
and I think he's right (even though it would only blow up twist when running at 24k sample rate I think). Write a test and check and fix for sure.
The text was updated successfully, but these errors were encountered: