74 void Init(
float sample_rate);
119 static constexpr uint8_t kInterpolation = 4;
120 static constexpr float kInterpolationRecip = 1.0f / kInterpolation;
121 static constexpr float kMaxResonance = 1.8f;
123 float sample_rate_, sr_int_recip_;
125 float beta_[4] = {0.0, 0.0, 0.0, 0.0};
126 float z0_[4] = {0.0, 0.0, 0.0, 0.0};
127 float z1_[4] = {0.0, 0.0, 0.0, 0.0};
132 float drive_, drive_scaled_;
136 float LPF(
float s,
int i);
137 void compute_coeffs(
float fc);
138 float weightedSumForCurrentMode(
const std::array<float, 5>& stage_outs);