SNEX interpolate table
-
I'm trying to interpolate on a table but I get instant crash no matter I spent my day on this...
I need instead to "type"
interpolatedValue
as float or auto inside the function body because any attempt to write the member variable leads to a crash with no explanations...I also tried to pass it as reference parameter
So what the heck am I doing so wrong here?
// float interpolatedValue = 0.0f; void updateGainCompensation(float typeAsFloat, int tableIdxAsInt, TableIndexType& tableIdx, InterpolatorType& valueInterpolator) { DataReadLock sl(data); float interpolatedValue = tableValues[tableIdx][valueInterpolator]; // valueInterpolator checked -> normalised 0-1 }
-
-
Are you trying to use the built in interpolator in hise? I've done this before in c++ but I don't understand it super well. However I've gotten it to work
-
@griffinboy Thanks, yeah I don't think the problem is related to the interpolator itself, this works as expected and I managed to get it in C++ as well, where all this code works so definitely a SNEX issue...