Example #1
0
        public MultiplierControlPoint ControlPointAt(double time)
        {
            int result = ControlPoints.BinarySearch(new MultiplierControlPoint(time));

            if (result < 0)
            {
                result = Math.Clamp(~result - 1, 0, ControlPoints.Count);
            }
            return(ControlPoints[result]);
        }