Deepnote Synthesizer Voice Library v1.0.0
A C++14 header-only library implementing the THX Deep Note effect
Loading...
Searching...
No Matches
deepnote::BezierUnitShaper Struct Reference

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.
 

Detailed Description

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.

Parameters
y2First control point (influences curve shape near start)
y3Second control point (influences curve shape near end)

Definition at line 59 of file bezier.hpp.

Member Function Documentation

◆ operator()()

float deepnote::BezierUnitShaper::operator() ( const float  t) const
inline

Apply Bezier curve transformation to input value.

Parameters
tInput value in range [0,1]
Returns
Shaped output value in range [0,1]

Definition at line 77 of file bezier.hpp.