]> Sound and music - Transfer Functions

Transfer Functions

Transfer functions concisely describe the frequency response of a given filter.

LTI Systems

Filters are linear time-invariant (LTI) systems.

Write f(x) for the output of x. A system is linear if f(x+x)=f(x)+f(x) and f(ax)=af(x). Below we shall use the notation xy to mean y is the output of the system when the input is x, i.e. y=f(x).

Time-invariance means that the behaviour of the system is independent of the current time; it only depends on the previous inputs.

LTI systems can be continuous (where the input is a function of time) or discrete (where the input is a sequence of values). Analog filters are continuous, whilst digital filters are discrete.

Digital Filters

Write x[n] for the nth input and y[n] for the corresponding output.

Suppose the discrete input signal is x[n]=z n for some complex number z.

By linearity, x[n]=z n=zx[n1 ]zy[n1 ]. Hence by induction, y[n]=Hz n for some H that depends on z.

Since H depends on z, we write H=H(z). It is called the transfer function. If the output is real when the input is real (which is always the case for audio filters), then it is easy to show that H(z *)=H(z) * (see the z transform).

Points on the unit circle of H(z) determine the filter’s effect on sinusoids: for all a, H(e ia) is the amount a sinusoid of the form cos(an+b) is amplified after passing through the filter (i.e. H(e ia) is the filter’s frequency response). As any periodic signal can be represented as a sum of sinusoids, H(z) determines the effect of a filter on any periodic signal.

Proof: Suppose the input signal is

x[n]=cos(an+b)=e i(an+b)+e i(an+b)2

Then by linearity, and using the above observations,

y[n]=e ibH(e ia)e ian+e ibH(e ia)e ian2

Letting H(e ia)=re iθ, we see

y[n]=re i(an+b+θ)+e i(an+b+θ)2 =rcos(an+b+θ)

For a low-pass filter we want H(e iθ)1 when θ0 , so that low frequencies pass through unchanged, and H(e iθ)0 when θπ, in order to cutoff higher frequencies.

Note that the phase response is determined by H(e ia).

Analog Filters

Consider an analog filter, whose input at time t is x(t), and has corresponding output y(t).

Suppose the input is the signal x(t)=e st. Then by linearity,

x(t+d)x(t)dy(t+d)y(t)d

Letting d approach zero shows that x(t)y(t). But since x(t)=se st, we have

y(t)=sy(t)

which means y(t)=He st for some H depending on s, so write H=H(s). (Proof: dy/dt=sy implies dt/dy=1 /sy which implies t=(lny)/s+C, for some constant C, in other words y=He st for some constant H.)

The function H(s) is the transfer function for the analog filter. As in the digital case, consider what happens to the input

x(t)=cos(at+b)=1 2 (e iat+e iat)

If we let H(ia)=re iθ then the output is y(t)=rcos(at+b+θ), so we see that the effect of the filter on sinusoids is determined by the values of H(s) on the imaginary axis (for example H(2 πi) determines the behaviour of 1Hz sinusoids).

For a low-pass analog filter, we want H(s)1 on the imaginary axis near the origin, and near zero as s approaches infinity, so that cos(at) is cut off for high a but let through unchanged for low a.

Stability

A filter is stable if the output tends to zero if the input becomes zero, otherwise it is unstable. It turns out a digital filter is stable if and only if the poles of its transfer function lie within the unit circle. Similarly an analog filter is stable if and only if the poles of its transfer function lie on the left side of the imaginary axis.