55 void Init(
float sample_rate);
66 inline void SetTime(uint8_t seg,
float time) { segment_time_[seg] = time; }
70 inline void SetCurve(
float scalar) { curve_scalar_ = scalar; }
74 inline void SetMin(
float min) { min_ = min; }
78 inline void SetMax(
float max) { max_ = max; }
80 inline float GetValue()
const {
return (output_ * (max_ - min_)) + min_; }
90 uint8_t current_segment_, prev_segment_;
92 float sample_rate_, min_, max_, output_, curve_scalar_;
93 float c_inc_, curve_x_, retrig_val_;