Low-pass filtering: lowpass

### 15.2.9 Low-pass filtering: lowpass

The lowpass command applies a simple first-order lowpass RC filter to an audio clip.

- lowpass takes two mandatory arguments and one optional argument:
  - A, an audio clip or a real vector representing the sampled signal.
  - c, a real number specifying the cutoff frequency.
  - Optionally, r, a samplerate (by default 44100).
- lowpass(A,c ⟨ r⟩) returns the input data after applying a simple first-order lowpass RC filter.

#### Example.

Input:

f:=unapply(periodic(sign(x),x,-1/880,1/880),x);
s:=apply(f,soundsec(3)):;
playsnd(lowpass(createwav(s),1000))

Output:
The sound of the periodic signal after a simple first-order lowpass RC filter has been applied.