43using ControlPoint1 = NamedType<float, struct ControlPoint1Tag>;
44using ControlPoint2 = NamedType<float, struct ControlPoint2Tag>;
63 explicit BezierUnitShaper(
const nt::ControlPoint1 y2,
const nt::ControlPoint2 y3)
79 float y = (1 - t) * (1 - t) * y1 + 3 * (1 - t) * (1 - t) * t * y2 + 3 * (1 - t) * t * t * y3 + t * t * t * y4;
Type-safe wrapper utilities for the Deep Note synthesizer.
Applies cubic Bezier curve shaping to unit input [0,1] -> [0,1].
float operator()(const float t) const
Apply Bezier curve transformation to input value.