[sharing] variable-order bandpass filter in gen~

    Sep 23 2021 | 10:15 pm
    Hi folks, here is a variable-order bandpass filter in gen~ using codebox. The design is straightforward : input sound goes through a series of high pass filters (which are copied from the gen~.filters.maxpat example patch), the result goes in a series of low pass filters, and the result is the bandpass. I don't know if this can result in phase problems, please tell me, so far it seems to sound ok. The thing i had trouble with was how to use `Data` object type inside a `while` loop in order to correctly set up each single sample delay ; when it is required that each single order filter in the series of n-order has its own delayed sample. So i thought this could be of use to someone, maybe. Cya !