Filter

Low-pass, high-pass, band-pass, notch, all-pass or morphing filter with resonance, 12/24 dB slopes, curve editing and output RTA.

  • Filter
  • Since 0.2.0
  • filter
  • resonance
  • sweep
  • morph

Open in TuneToys

Used in the templates Warm Echo, Little Sine.

Filter as the Patch draws it, at default values: inlets on the left, outlets on the right.

A flexible filter that can cut highs, cut lows, isolate a band or remove one, with adjustable resonance.

What it does#

The state-variable filter has a Cutoff and a Resonance (Q). Type chooses low-pass, band-pass, high-pass, notch or all-pass, or Morph, which moves continuously from low-pass through band-pass to high-pass. Slope chooses one stage (12 dB per octave) or two cascaded stages (24 dB per octave). Higher resonance emphasizes frequencies around the cutoff, up to a ringing peak. Cutoff is capped at 0.45 times the sample rate.

When to use it#

Use it for filter sweeps, wah-style effects and subtractive tone shaping. Select Low-pass for a roll-off, High-pass to remove low frequencies, Band-pass to isolate a band, Notch to cut one, or All-pass to change phase. New filters start in Low-pass mode.

The graph shows the response for the selected type and slope. Drag across it to set Cutoff and vertically to set Resonance; the wheel adjusts resonance too. Hover or focus the graph while playing to see the real-time output spectrum (RTA) behind the response. Patch, Properties and Frame faces use the same editor.

Ports#

PortDirectionSignalLanes
audioInputAudioInferred from the cable
audioOutputAudioInferred from the cable

Parameters#

ParameterLabelRangeDefaultUnitScaleNotes
cutoffCutoff20 to 200001200HzlogFilter cutoff, capped at 0.45 times sample rate.
resonanceResonance0.5 to 120.707QlinearState-variable filter Q.
modeMorph0 to 20linearContinuous low-pass, band-pass and high-pass morph. Shown when type is 0.
typeType0 to 51linearSelects the implemented algorithm. Choices are discrete and are not LFO targets. Choices: 0 Morph, 1 Low-pass, 2 Band-pass, 3 High-pass, 4 Notch, 5 All-pass.
slopeSlope0 to 10linearOne or two cascaded state-variable stages; notch/all-pass retain their response semantics. Choices: 0 12 dB/oct, 1 24 dB/oct.
compensationResonance compensation0 to 10linearReduces resonant gain as Q increases. Shown when type is 0 or 1 or 3.

Cutoff (cutoff)#

The filter frequency, from 20 to 20000 Hz on a logarithmic control.

Resonance (resonance)#

The filter Q from 0.5 to 12. The default, 0.707, is a flat response. Higher values peak at the cutoff.

Morph (mode)#

Used when Type is Morph: 0 is low-pass, 1 is band-pass, 2 is high-pass, with smooth values between.

Type (type)#

Morph, Low-pass, Band-pass, High-pass, Notch or All-pass. A discrete choice.

Slope (slope)#

12 dB/oct uses one stage; 24 dB/oct cascades two. The notch and all-pass types keep their response meaning.

Resonance compensation (compensation)#

When on, reduces the gain boost that comes with a high Q. It applies to Morph, Low-pass and High-pass.

Tips#

  • Start with a bright source such as a saw wave; filters need harmonics to remove.
  • Sweep Cutoff with Resonance around 4 to 8 for classic filter sweeps.
  • Very high resonance can be loud. Lower the level or turn Compensation on.

See also#

Low-pass filter, Drive, Oscillator.

Help patches

Each help patch is an ordinary Toy that teaches one idea. The diagram shows the Patch; the preview shows its Frame. Open it in TuneToys to play and edit it.

1. Sweep a resonant filter

beginner Teaches: cutoff, resonance, type

A saw wave through a resonant filter with a mode choice.

Patch: Oscillator audio output connected to Filter audio input. Filter audio output connected to Patch outputs audio input.
Connections as text
  • Oscillator audio output connected to Filter audio input
  • Filter audio output connected to Patch outputs audio input
  • Raise Resonance and sweep Cutoff: the filter emphasizes the frequencies around the cutoff.
  • Low-pass keeps what is below it. High-pass keeps what is above it.
Frame preview: Sweep a resonant filterFrame “Sweep a resonant filter” with 4 elements: knob Cutoff, text heading, knob Resonance, segmented Type.800 HzCutoffSWEEP A RESONANT FILTER4 QResonanceMorphLow-passBand-passHigh-passNotchAll-passType
Frame preview (static). Controls show their default values.

Open in TuneToys

2. Morph between filter modes

intermediate Teaches: mode, compensation

Move continuously from low-pass through band-pass to high-pass.

Patch: Oscillator audio output connected to Filter audio input. Filter audio output connected to Patch outputs audio input.
Connections as text
  • Oscillator audio output connected to Filter audio input
  • Filter audio output connected to Patch outputs audio input
  • Morph is only used when Type is Morph. 0 is low-pass, 1 is band-pass, 2 is high-pass.
  • Resonance compensation lowers the gain boost that comes with high Q.
Frame preview: Morph between filter modesFrame “Morph between filter modes” with 5 elements: toggle Compensation, knob Cutoff, text heading, knob Morph, knob Resonance.Compensation900 HzCutoffMORPH BETWEEN FILTER MODES0Morph5 QResonance
Frame preview (static). Controls show their default values.

Open in TuneToys

3. Steeper slopes, notch and all-pass

advanced Teaches: slope

Cascade a second stage and try the notch type on noise.

Patch: Noise audio output connected to Filter audio input. Filter audio output connected to Patch outputs audio input.
Connections as text
  • Noise audio output connected to Filter audio input
  • Filter audio output connected to Patch outputs audio input
  • 24 dB/oct cascades two stages for a steeper roll-off. Compare it with 12 dB/oct on noise.
  • The notch removes a narrow band around the cutoff; all-pass leaves the level but shifts phase.
Frame preview: Steeper slopes, notch and all-passFrame “Steeper slopes, notch and all-pass” with 5 elements: knob Cutoff, text heading, knob Resonance, segmented Slope, segmented Type.1200 HzCutoffSTEEPER SLOPES, NOTCH AND ALL-PASS1.5 QResonance12 dB/oct24 dB/octSlopeMorphLow-passBand-passHigh-passNotchAll-passType
Frame preview (static). Controls show their default values.

Open in TuneToys

  • Low-pass filter A gentle one-pole filter for warmer edges.
  • Drive Four nonlinear shapers with DC removal, tone and latency-aligned filtered oversampling.
  • Oscillator Selected waveform kernels, continuous morphing, harmonic shapes and phase/gate control; an optional MIDI input plays notes in the Toy's tuning.

Edit this page on GitHub

esc

↑ ↓ move↩ open⌘↩ new tabesc close