TrackFX_GetParamEx values
I'm seeing unexpected behavior from TrackFX_GetParam and GetParamNormalized.
My code(c++,csurf) looks as follows:
----------------------------------------------------------------
double min, max,mid;
double val = TrackFX_GetParamEx(track, effectslot, m_id, &min, &max,&mid);
----------------------------------------------------------------
after call:
min = 0
max = 2
mid = 1
val = 2.4385089874267578
why is val > max?
Also if I call:
----------------------------------------------------------------
double val2 = TrackFX_GetParamNormalized(track, effectslot, m_id);
----------------------------------------------------------------
val2 = 1.2192544937133789
Doesn't "Normalized" suggest values between [0,1]?
I'm not sure how to deal with these numbers - any discussion appreciated.
Thanks,
Ken
Edit --- I'm calling on the threshold parameter on reacomp and purposefully put it above 0db (+7.7)
|