automation-events
Version:
A module which provides an implementation of an automation event list.
6 lines • 336 B
JavaScript
import { interpolateValue } from './interpolate-value';
export const getValueCurveValueAtTime = (time, { duration, startTime, values }) => {
const theoreticIndex = ((time - startTime) / duration) * (values.length - 1);
return interpolateValue(values, theoreticIndex);
};
//# sourceMappingURL=get-value-curve-value-at-time.js.map