Hi Filip, you have an ellegant soution there!
I have a quesion, do your code consider the Easing from the slider? if it does, how?
what i got with my code is:
keyF_A = connect(value_A);
keyF_B = connect(value_B);
return linear(time,time_A, time_B, keyF_A, keyF_B);
where, keyF_A is the previous pose keyframe that will be controlled by a controller, and KeyF_B is the next.
Then we have, the time whe the poses happens as time_A and time_B.