pub fn sample_scalar(animation: &Animated<f32>, time: MediaTime) -> f32Expand description
Samples one animated scalar with the project’s keyframe semantics.
Values outside the keyframe sequence clamp to its first or last value, and a
alpha2_model::Interpolation::Hold segment keeps its left value until the
next keyframe. Values are interpolated numerically, so a rotation from 0 to
720 degrees turns twice. Audio mixing calls this at control points fixed
by the project sample, and on every sample around a keyframe, so that
automation does not depend on the host block size.