expand

Reference > lowPass

Wave
Spectrum

    

lowPass(a) creates a high pass filter. a should be between 0 and 1.

Filter equation
output[i] = input[i] - 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 lowPass in the synthesine library.