| 182 | |
| 183 | |
| 184 | float lb302FilterIIR2::process(const float& samp) |
| 185 | { |
| 186 | float ret = vcf_a*vcf_d1 + vcf_b*vcf_d2 + vcf_c*samp; |
| 187 | // Delayed samples for filter |
| 188 | vcf_d2 = vcf_d1; |
| 189 | vcf_d1 = ret; |
| 190 | |
| 191 | if(fs->dist > 0) |
| 192 | ret=m_dist->nextSample(ret); |
| 193 | |
| 194 | // output = IIR2 + dry |
| 195 | return ret; |
| 196 | } |
| 197 | |
| 198 | |
| 199 | // |
no test coverage detected