lpf

IIR, low-pass filtering; Apply a low-pass filter to the audio signal

Syntax

y = lpf ( x,fcut,order[=8],type[=1],dBpass[=.5],dBstop[=-40] )
y = x.lpf ( fcut,order[=8],type[=1],dBpass[=.5],dBstop[=-40] )

Inputs

ArgumentTypeDescriptionUnit
xaudioaudio signalHz
fcutscalarcut-off frequencydB
orderscalarorder of the IIR filterdB
typescalarIIR filter type (1: Butterworth, 2: Chebyshev, 3: Elliptic)-
dBpassscalarPassband ripple allowed-
dBstopscalarStopband attenuation-

Outputs / Return Value

Notes

Examples

lpf(x, 2000)
noise(500).lpf(500)

See Also

Review Status