| 131 | } |
| 132 | |
| 133 | void Distortion::updateFilters(int64_t frame_number) |
| 134 | { |
| 135 | double discrete_frequency = M_PI * 0.01; |
| 136 | double gain = pow(10.0, (float)tone.GetValue(frame_number) * 0.05); |
| 137 | |
| 138 | for (int i = 0; i < filters.size(); ++i) |
| 139 | filters[i]->updateCoefficients(discrete_frequency, gain); |
| 140 | } |
| 141 | |
| 142 | // Generate JSON string of this object |
| 143 | std::string Distortion::Json() const { |
nothing calls this directly
no test coverage detected