expand

Reference > dcBlocker

Wave
Spectrum

    

dcBlocker(a) creates a DC blocker filter. a should be between 0 and 1.

Filter equation
output[i] = input[i] - input[i - 1] + (1 - a) * output[i - 1]

In synthesine, filters are functions with methods for applying and setting the filter, and an internal memory that keeps track of the state of the filter. The technical term for the kind of object is a closure. Every time you create a filter, the state is erased, so it’s a good idea to define your filters only once, in the setup function.

You can find the code for dcBlocker in the synthesine library.