automation-events
Version:
A module which provides an implementation of an automation event list.
14 lines (13 loc) • 369 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getTargetValueAtTime = void 0;
const getTargetValueAtTime = (time, valueAtStartTime, {
startTime,
target,
timeConstant
}) => {
return target + (valueAtStartTime - target) * Math.exp((startTime - time) / timeConstant);
};
exports.getTargetValueAtTime = getTargetValueAtTime;