|
Deepnote Synthesizer Voice Library v1.0.0
A C++14 header-only library implementing the THX Deep Note effect
|
Applies cubic Bezier curve shaping to unit input [0,1] -> [0,1]. More...
#include <bezier.hpp>
Public Member Functions | |
| float | operator() (const float t) const |
| Apply Bezier curve transformation to input value. | |
Applies cubic Bezier curve shaping to unit input [0,1] -> [0,1].
Uses control points y2 and y3 with fixed endpoints y1=0, y4=1. The curve equation: B(t) = (1-t)³*y1 + 3(1-t)²*t*y2 + 3(1-t)*t²*y3 + t³*y4
This allows for non-linear interpolation between start and end points, enabling smooth acceleration/deceleration curves for audio parameter animation.
| y2 | First control point (influences curve shape near start) |
| y3 | Second control point (influences curve shape near end) |
Definition at line 59 of file bezier.hpp.
|
inline |
Apply Bezier curve transformation to input value.
| t | Input value in range [0,1] |
Definition at line 77 of file bezier.hpp.