hpf

Parent Previous Next

hpf

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

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

arg

type

Description

Unit or Value scale

x

AUDIO

audio signal


fcut

SCAL

cut-off frequency


order

SCAL

order of the IIR filter


type

SCAL

IIR filter type (1: Butterworth, 2: Chebyshev, 3: Elliptic)


dBpass

SCAL

Passband ripple allowed


dBstop

SCAL

Stopband attenuation


Outputs

  • y is a highpass-filterd version of x.

Notes

  • The output is not normalized; i.e., the rms of x is adjusted according to the filter gain.
  • fcut should be less than the Nyquist frequency.
  • IIR filter coefficients are designed by the specification requested in the argument list, but not guranteed. The user is responsible for making sure the output follows the spec.

Examples

  • hpf(x, 2000)

See Also

lpf | bpf | bsf

Algorithm

ELLF Digital Filter Calculator

Created with the Personal Edition of HelpNDoc: Full-featured Help generator