Open p0nce opened 4 years ago
Desired realizations: Direct Form I / transposed Direct Form II / Andy Simper's oversampled state variable filter
First need to make a few dplug:audio "processors", like a silence detector or a delayline
Doing this necessitates in turn to define AudioContext and audio processors in a future-proof way
Create a new IIR filter facility in a
dplug:iir
module, splitted in two.correct one-poles... https://dsp.stackexchange.com/a/54088=> it's tricky, see one pole varaitions in dplug/dsp/iir.dAudioBuffer
Summing Up
The role of the pole-zero realization is to filter, hold state, hold smoothing state. It has a maximum number of pole-zero (8 ? 6 ?) The role of the pole-zero computation is to compute pole and zeros when needed.
Computation feeds realization with pole and zero, and choose their relative order.
Advantages: the last filter structure you need. Downsides: conflating realization and design was a bit more friendly.