Move a filter’s cutoff on a clock. The LFO sweeps the corner up and down around a centre frequency, at a rate in Hz and a depth in octaves, and the filter type decides what the sweep does to the sound.
The sweep
Centre is the frequency the sweep is centred on, from 40 Hz to 16 kHz. Depth is the total travel in octaves: at 2 oct the cutoff runs an octave above and an octave below the centre. Rate is the cycle frequency. At 0.5 Hz a full sweep takes two seconds, one bar at 120 BPM.
The sweep is computed in octaves rather than in Hz, so a sine LFO moves the cutoff the same musical distance in each direction and the top of the sweep does not spend most of the cycle parked near the ceiling.
Shapes
- Sine: a smooth up and down.
- Triangle: the same travel at a constant speed, so the turn-arounds are sharper.
- Saw down: a jump to the top and a steady fall, the classic sweep that resets on the beat.
- Square: two cutoffs, alternating. The edges are rounded over
3 msso they do not click. - Sample and hold: one random cutoff per cycle, held until the next. The random sequence is seeded, so the export matches the preview.
Filters
The low-pass, high-pass and band-pass are a state-variable filter read at three points, so the resonance is the same peak in each. Resonance runs from a Butterworth corner at 0 to a 26 dB peak at 100.
The ladder is a different structure: four one-pole stages in series with feedback around the whole stack, the topology of the classic synthesizer filter. It is a 24 dB per octave low-pass, twice as steep as the others, and its resonance thins the low end as it rises, which is part of that sound. The feedback stops just short of self-oscillation.
The filter is solved per sample for the cutoff it has at that sample, so it stays stable while the corner moves every frame. Nothing in the loop bends the waveform, so there is nothing to oversample and no aliasing to filter out.
Rate from a tempo
| Sweep | At 120 BPM | At 100 BPM |
|---|---|---|
| One per beat | 2 Hz |
1.67 Hz |
| One per bar | 0.5 Hz |
0.42 Hz |
| One per two bars | 0.25 Hz |
0.21 Hz |
Seconds per beat is 60 / BPM. Multiply by the beats in one sweep and take the reciprocal for the rate.
Settings that move during playback
Centre, Resonance and Depth glide over about 30 ms when dragged, so a slider move is a sweep of its own rather than a step. Changing the rate keeps the LFO’s phase, so the sweep speeds up or slows down from where it is. None of this reaches the export, which renders with the settings in place when it starts.
For a sweep that follows the playing rather than the clock, the auto-wah does that from the signal’s own level.