3 InterpolationAction::InterpolationAction(bool h):
9 void InterpolationAction::start(float b, float d)
13 interpolate(0.0f, 0.0f);
16 void InterpolationAction::tick(float b, float d)
20 float t = (b-start_beat)/duration;
21 float dt = d/duration;
26 dt = t-(3-2*dt)*dt*dt;
31 interpolate(1.0f, 1.0f);
34 void InterpolationAction::end(float)
36 interpolate(1.0f, 0.0f);