# svf~

## Description

The svf~ object is an implementation of a state-variable filter algorithm described in Hal Chamberlin's book, "Musical Applications of Microprocessors." A unique feature of this filter object is that it produces lowpass, highpass, bandpass, and bandreject (notch) output simultaneously - all four are available as outlets.

## Examples

## Arguments

### center-frequency [float]

Optional

Unitshz

Sets the initial center frequency for the filter. The default value is 0.

### resonance [float]

Optional

Sets the initial resonance value for the filter. The default value is 0.01.

### Hz [symbol]

Optional

Sets the frequency input mode to Hz (the default mode - hence this is the same as providing no mode argument).

### linear [symbol]

Optional

Sets the frequency input mode to linear (0 -1).

### radians [symbol]

Optional

Sets the frequency input mode to radians (0 -1).

## Attributes

### Common Box Attributes

## Messages

### int

#### Arguments

center-frequency/resonance
[int]

In middle and right inlets: Integer values are converted to floats and can be sent in the two right inlets to change the center frequency and resonance of the filter. By default, the center frequency is expressed in Hz, where the allowable range is from 0 to one quarter of the current sampling rate. If a signal is connected to one of the inlets, a number received in that inlet is ignored. The values are sampled once every signal vector.

### float

#### Arguments

center-frequency/resonance
[float]

In middle and right inlets: A svf~ has two additional input modes that use the more conventional input range, 0 - 1. (see the and messages). If a signal is connected to one of the inlets, a number received in that inlet is ignored. The values are sampled once every signal vector.

can be sent in the two right inlets to change the center frequency and resonance of the filter. By default, the center frequency is expressed in Hz, where the allowable range is from 0 to one quarter of the current sampling rate. For convenience, ### Hz

In either inlet: Sets the frequency input mode to Hz (the default).

### clear

Clears the object's sample-memory in case of a blow-up.

### linear

In any inlet: Sets the frequency input mode to linear (0 - 1). Linear mode is simply a scaled version of the standard Hz mode, except that values in the 0-1 range traverse the full frequency range.

### radians

In any inlet: Sets the frequency input mode to radians (0 - 1). Radians mode lets you set the center frequency directly -- while the input has the same range (0-1), the output has a curved frequency response that is closer to the exponential pitch scale of the human ear.

### signal

In left inlet: Signal to be filtered.

In middle inlet: Sets the filter center frequency in Hz.

In right inlet: Sets the bandpass filter "Q" - roughly, the sharpness of the filter - where Q is defined as the filter bandwidth divided by the center frequency. Useful Q values are typically between 0.01 and 500.

In middle inlet: Sets the filter center frequency in Hz.

In right inlet: Sets the bandpass filter "Q" - roughly, the sharpness of the filter - where Q is defined as the filter bandwidth divided by the center frequency. Useful Q values are typically between 0.01 and 500.

## Output

### signal

The filtered input signal.

## See Also

Name | Description |
---|---|

Sound Processing Techniques | Sound Processing Techniques |

biquad~ | |

comb~ | |

cross~ | |

onepole~ | |

lores~ | |

reson~ | |

Audio Filtering | Audio Filtering |