Resonant bandpass filter

y[n] = gain * (x[n] - r * x[n-2]) + c1 * y[n-1] + c2 * y[n-2], where r, c1, and c2 are parameters calculated from the input center-frequency and Q. Q is the filter-bandwidth divided by center-frequency. Inputs can be floats or signals.

Name | Type | Opt | Description |
---|---|---|---|

initial-gain center-frequency and Q | int or float | opt | Numbers set the initial gain, center frequency, and Q. The default values are | for gain, for center frequency, and for Q.

int | initial-gain/center-frequency/Q [int] |
An | or can be sent in the three right inlets to change the filter-gain, center-frequency, and Q. If a signal is connected to one of the inlets, a number received in that inlet is ignored.

float | initial-gain/center-frequency/Q [float] |
An | or can be sent in the three right inlets to change the filter-gain, center-frequency, and Q. If a signal is connected to one of the inlets, a number received in that inlet is ignored.

list | initial-gain center-frequency and Q [list] |
The first number sets the filter-gain. The second number sets the filter center-frequency. The third number sets the filter-Q. If any of the inlets corresponding to these parameters have signals connected, the corresponding value in the list is ignored. |

clear | Clears the filter's memory. Since reson~ is a recursive filter, this message may be necessary to recover from blowups. | |

signal | In left inlet: Any signal to be filtered. In left-middle inlet: Sets the bandpass filter gain. This value should generally be less than 1. In right-middle inlet: Sets the bandpass filter center frequency in hertz. In right inlet: Sets the bandpass filter "Q"-roughly, the sharpness of the filter - where Q is defined by the center-frequency divided by the filter-bandwidth. Useful Q values are typically between 0.01 and 500. |