GB2350956A - Digital filters - Google Patents

Digital filters Download PDF

Info

Publication number
GB2350956A
GB2350956A GB0008719A GB0008719A GB2350956A GB 2350956 A GB2350956 A GB 2350956A GB 0008719 A GB0008719 A GB 0008719A GB 0008719 A GB0008719 A GB 0008719A GB 2350956 A GB2350956 A GB 2350956A
Authority
GB
United Kingdom
Prior art keywords
frequency
gain
filter
nyquist
equation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
GB0008719A
Other versions
GB0008719D0 (en
GB2350956B (en
Inventor
David Charles William Richards
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Europe Ltd
Original Assignee
Sony United Kingdom Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony United Kingdom Ltd filed Critical Sony United Kingdom Ltd
Publication of GB0008719D0 publication Critical patent/GB0008719D0/en
Publication of GB2350956A publication Critical patent/GB2350956A/en
Application granted granted Critical
Publication of GB2350956B publication Critical patent/GB2350956B/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H17/00Networks using digital techniques
    • H03H17/02Frequency selective networks
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H17/00Networks using digital techniques
    • H03H17/02Frequency selective networks
    • H03H17/0294Variable filters; Programmable filters
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H17/00Networks using digital techniques
    • H03H17/02Frequency selective networks
    • H03H17/0294Variable filters; Programmable filters
    • H03H2017/0297Coefficients derived from input parameters

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Feedback Control In General (AREA)

Abstract

A method of generating coefficients in a digital filter, comprises the steps of: <SL> <LI>(a) providing a gain control signal 6 setting a value of reference gain, <LI>(b) providing a frequency control signal 8 setting a value of reference frequency <LI>(c) calculating, according to a model of the frequency/gain characteristic of a prototype analogue filter, a plurality of gain and/or frequency points at frequencies equal to and less than Nyquist frequency (where Nyquist frequency is half the sampling frequency of the digital filter) and which match corresponding gain and/or frequency points in the corresponding digital filter characteristic, <LI>(d) calculating from the said calculated points, pre-warped parameters of a model of the analogue filter, <LI>(e) applying e.g. a bilinear a transform to the resulting pre-warped analogue model to convert the pre-warped analog model to the digital domain and <LI>(f) generating further coefficients from the transformed model and applying them to the filter. </SL>

Description

2350956 Digital Filters The present invention relates to digital filters,
a method of generating coefficients in a digital filter system and a data carrier.
In this specification the term "algorithm ical ly stable" and its inverse, instability is used. It refers to situations in which the solution to an equation becomes very sensitive to small changes in input parameters. The terms "stability", "stable" and the inverses refer to such algorithmic stability and its inverse.
An embodiment of the invention seeks to provide a shelf digital filter which is empirically optimised to provide a good gain match in the Nyquist range with a prototype analogue filter. Another embodiment of the invention seeks to provide such a shelf which is a good match to a shelf like portion of an analogue equalisation characteristic.
According to one aspect of the present invention, there is provided a method of generating coefficients in a digital filter, comprising the steps of..
(a) providing a gain control signal setting a value of reference gain, (b) providing a frequency control signal setting a value of reference frequency (c) calculating, according to a model of the frequency/gain characteristic of a prototype analogue filter, a plurality of gain and/or frequency points at frequencies equal to and less than Nyquist frequency (where Nyquist frequency is half the sampling frequency of the digital filter) and which match corresponding gain and/or frequency points in the corresponding digital filter characteristic, (d) calculating from the said calculated points, pre-warped parameters of a model of the analogue filter, (e) applying a transform to the resulting pre-warped analogue model to convert the pre-warped analogue model to the digital domain and (f) generating filter coefficients from the transformed model and applying them to the filter.
In one embodiment of the invention, the analogue filter is a symmetrical shelf. In another embodiment, the analogue filter is a shelf like portion of an Equalisation characteristic.
2 The inventive method provides a good match in the digital domain to the desired analogue filter characteristics and maintains algorithmic stability even in the Nyquist range and allows the Equalisation characteristic to appear to have a peak beyond Nyquist frequency.
These and other aspects of the invention are specified in the claims to which attention is invited.
For a better understanding of the present invention, reference will now be made, by way of example to the accompanying drawings in which:
Figures 1 to 5 are filter characteristics; Figure 6 is a shelf characteristic illustrating some parameters thereof, Figure 7 shows illustrative match points in a shelf, Figure 8 compares a prototype shelf with a "conventional shelf' and a shelf (enhanced shelf) according to the invention; Figure 9 shows a shelf where the centre frequency is above the Nyquist range; Figures 10 and 11 show overshoot characteristics; Figure 12 is a schematic block diagram of a digital filter system; Figure 13 is a chart illustrating the generation of filter coefficients for the filter of Figure 10; and Figure 14 shows an Equalisation (EQ) characteristic and matching points; Figure 15 shows matching of a shelf with an EQ; Figure 16 is a schematic block diagram of an audio mixer; and Figure 17 is a chart illustrating the generation of filter coefficients for an EQ.
Bilinear Transform - Prior Art
Direct digital filter design is difficult to achieve. The usual way to construct a digital filter is to start from an analogue filter (s-plane) and then use the bilinear transform to convert to the digital domain (z-plane). The bilinear transform takes the form:
s = 2F, (Equation 1) 1 + Z-1 where: Fs is the sampling frequency.
3 However, this maps the entire frequency range (dc to infinite frequency) of the analogue filter into the range dc to maximum representable frequency (Nyquist frequency) of the digital filter. The mapping is not linear but instead has a characteristic as shown in Figure 1.
The relationship between 'analogue frequency', co,, and 'digital frequency', cod is known and given by:
-T-'- = tan Cod (Equation 2) 2 F, 2 F, where: o), is "analogue frequency"; 0)d is "digital frequency"; and F, is the sampling frequency.
If no action is taken to remedy this warping behaviour then the results are often unsatisfactory.
Shelf - Prior Art.
Take as an example an analogue 'shelf filter characteristic with a centre frequency of 16kHz and boost of 20dB, as shown in Figure 2. Such a filter characteristic is known in the art as a "shelf'.
The following equation represents a general second order prototype shelf..
H, (s' + s 0)np + CO 2 "P) shef = Q',p (Equation 3) 2 +S Codp + 6 2 S Q dp 0 dp where: COnpis a zero frequency; COdp is a pole frequency; Qnp is a measure of zero damping; Qdp is a measure of pole damping; H.P is Gain at infinity (reference frequency); the Q components (Q,,p, and Qdp) do not correspond directly to any features of the response; and the centre frequency is at _co, if, and only if, QnpQdpSubscript p denotes prototype.
4 It can be seen that, if the equation 3 is simply subjected to the bilinear transform, then the new digital filter has its centre frequency at 12.6kHz and the transition is steeper than desired. It has very little in common with the ideal response.
To counteract this, it is conventional to 'pre-warp' the shelf. This involves moving the centre frequency in the analogue domain such that, when it is warped by the transform (as per the relationship given in Equation 2), it ends up at the correct frequency. The resulting filter would be similar to what is shown in Figure 3.
It can be seen that, while the shelf now has the correct centre frequency, it is very much sharper than the analogue prototype.
E0 - Prior Art
It is also known to produce a characteristic such as that shown in Figure 4 known as an equalisation characteristic or EQ.
A prototype EQ has the transfer function in the analogue (s) domain:
S 2 + G -T-'p s + co' HP (s) - 2 p QP CP (Equation 4) S tp S + 60 2 Q, CP where: Gp is gain, co,p is the centre frequency of the response; and Qp is the quality factor of the filter. Subscript p denotes prototype.
The transfer function is transformed to the digital (z) domain using the bilinear transform of Equation 1. The transform is applied to a prewarped EQ as described above with reference to a shelf. To warp the EQ, it is known to use a technique known as the Orfanidis method (Digital Equaliser with prescribed Nyquist Frequency Gain, Orfanidis, Audio Eng. Soc. Vol. 45 p444, June 1997) which seeks to match the features of peak gain, Nyquist gain and EQ bandwidth at a known gain in the prototype EQ to the same features in the transformed EQ. Figure 5 shows these features.
Embodiments of the present invention Embodiments of the present invention provide digital filters which have a good match with prototype analogue filters in the Nyquist range and are algorithmically stable in the Nyquist range.
The good match and the stability are provided by selecting features of the prototype analogue filter model which provide good matches with corresponding features of the corresponding digital filter model.
A 'match' is simply a frequency point at which some specific characteristic is known about the gain or phase, and at which the known characteristic is substantially identical in both the prototype and the digital filter.
A match is usually one of.
known gain at known frequency known rate of change of gain at known frequency but, in general, a match could rely on phase information, higher order derivatives of gain etc.
The matches which are selected are those unaffected by increasing the frequency of the filter towards or even above Nyquist frequency. Thus the matches which are preferably selected are a plurality of points on the filter characteristic at and below Nyquist frequency and above dc. In addition, dc may be selected.
This allows an EQ to have a peak frequency near to Nyquist frequency or an apparent peak above Nyquist Frequency, but remain realisable.
This allows both an EQ and a shelf to have a good match between the prototype analogue filter and the digital filter in the Nyquist range.
Shelf according to the invention The key to generating the shelf is to use features which are 'matched' when the pre-distorted shelf is warped.
There are five variables available in the shelf of Equation 3, H, C0n3 o)d Qn and Qd). This means up to five matches can be achieved between the prototype and distorted shelf i.e. the shelf as distorted by the bilinear transform. (As a comparison, the bilinear transform generally achieves only two matches).
Figure 6 shows the relationship of H, co,, and 0)d to a shelf.
Once a match has been identified, it is pre-warped (i.e. the feature is moved in frequency according to the relationship given in Equation 2), This guarantees that the feature will be present at the correct frequency in the shelf resulting from the application of the bilinear transform (Equation 1).
6 In theory it is possible to generate matches at any frequency below Nyquist, where Nyquist frequency here means half the sampling frequency. However, some points are more convenient than others. The matches which are chosen for use in embodiments of the present invention are:
gain at dc and Nyquist frequency frequency at '/4, '/2and 1/4Nyquist gain as shown in Figure 7.
Constructing a she A pre-warped shelf will be constructed which will be certain of matching the prototype response at a plurality of points. The warped shelf will have the same form as Equation 3 3 with its parameters denoted without a subscript p, (i.e. H oc, Wd5 Wn, Qn Qd). These parameters will each be derived from the prototype filter response in order to ensure matching at a number of points on the response.
N ain constraint yquist g_ One of the most important requirements of the distorted shelf is that, when warped, it has the same gain as the prototype at Nyquist frequency.
As a first step, the gain of the prototype shelf as a function of frequency needs to be found. For simplicity, the prototype shelf of Equation 3 is assumed to be symmetrical and critically damped. If the prototype shelf has a gain at infinity, H.p.
and half power frequency, wop, then gain at any frequency, (t)p, is given by:
4 4 H o) p cop) p Gp= IF4 OP (Equation 5) C 0P WP W + C 00 wp 4 W+ C p 00 + coop HWP WP for the shelf of Equation 3 (o)op is also the 'centre frequency' for a symmetrical shelf).
Equation 5 is based on the assumptions that:
Q,,, = Qdp = lIV-2 - i.e. critical damping; (co,,p lcodp 11H.P and 2 C0 OP = 0) nP 0) dp If the shelf has boost i.e. H, G > 1, then this equation can be rearranged for co:
7 cop =coop H.P (GP 2 - 1)l (Equation 6) H lop G pj (H,,,,P and (o,,p are in practice set by gain and frequency controls denoted by 6 and 8 in the Figures) The Nyquist gain H, can be found simply by substituting o)=7t F, into Equation 5 where F, is the sampling frequency. At this point, the condition that the filter has unity gain at DC is applied. Referring to the 'standard shelf construction' outlined in Equation 3, it can be shown that for this to be the case:
2 Td Ld = H, (Equation 6a) co) Determining frg-quency components There are three variables left to find: Q,; Q,; and either co, orCOd. In theory, it is possible to solve for these variables by matching the 1/4, '/2 and %Nyquist gain points. However, these solutions are highly complex.
To get around this, an assumption is made that the resulting shelf is symmetrical (i.e. the Q components are equal). In practice, this is often a poor assumption (there can be up to an order of magnitude difference between the Q components), especially when the centre frequency of the shelf is high. However, it has been found that the frequency components are not strongly affected by shelf asymmetry, so this approximation is useful.
The assumption allows us to say that co,, and (Od satisfy the geometric mean property around the centre frequency o),,, of the final shelf.
Cod On = Ojas 2 (Equation 7) where: co,,, in Equation 7 is the centre frequency of the final shelf obtained by substituting G = V-H. into Equation 6.
Interestingly, although the theory suggests that the centre frequency co,, , should be pre-warped, it was found experimentally that it does not need to be. With hindsight, this can be rationalised by the fact that the resulting shelf will be stretched at HF, 8 pushing the centre frequency up. This reduces the need for pre-warping (which would have pushed the centre frequency up). WaM Lolp_ep Equation 6 is used to derive frequencies colp and (02p from H,, at the '/2 and 1/4 Nyquist gain points. Equation 2 is then applied to pre-warp colp and (02p to values c), and W2. Thus col and (02 are pre-warped values chosen so that once the bilinear transform is applied they match with the prototype. Determining 0 components For the shelf of Equation 3 with a specified co,, and 0)d (whose response passes through points col and co2 with normalised gain g, and 92 respectively) the Q components including the necessary pre-warping by Equation 2 are defined as:
2 _ 2 Qn =C)n 0)l 0)2 2 7 2 _ 2)2 _ 2 2 ( 0) 2 91 92 + g2g2 2 2 XO 2 2) _ CO 2)2 -) 4 92 0)2 ((on (1) 1 910)t n 2 1 2(0)l CO 2 d- Ct)l (02 (Equation 8) 2 _ 2 91 92 Qd - Cj)d 0)l 0)l 2 2 2 2 2 2 2 2 XC 2 CO CO + - CO 04 - CO CO 2 1 (cod _ 2 1 2 (0)d 1 (0)2 1 n 1 21) _ g202 (Equation 9) [Normalised gain gn is defined as (linear gain at point/linear gain at infinity) i.e. gn = GjH., where G, is gain at a point and H. is gain at infinity of the final filter.] In theory, (o l and 02 can be any frequency but it is convenient to use the quarter and half Nyquist gain points. (Using the three quarter Nyquist gain point generally produces worse results). It is interesting to note that the half Nyquist gain point can be reused (it has already been used once to calculate the product of frequency components). This may seem analogous to attempting to solve for five unknowns using only four constraints. However, we know that the geometric mean relationship (Equation 7) used to calculate the frequency components was an approximation and therefore'it counts as an independent constraint.
9 Assembling the final filter Once the five parameters ffl, 0)n COd Q, and Qd) have been found, the shelf having the form of Equation 3 (but with its parameters replaced by H,,3 C0n COdy Q, and Qd)is subjected to a normal bilinear transform. The coefficients of the filter are then 5 generated in known manner.
The improvement can be seen by comparing 16kHz shelves designed by the conventional and the new techniques as shown in Figure 8.
Figure 8 illustrates:
0 the new method guarantees a gain match at Nyquist frequency 0 the slope of the prototype is almost exactly replicated in the enhanced shelf, especially in the audible region 0 there is no guarantee that the prototype centre frequency i.e. W,,p as set by the control 8 is matched The flexibility of the solution 1. Although it has been assumed throughout that the prototype is a shelf, the equations are general. They can be used to generate an approximation to any gain response which has no turning points. The only change in procedure is to substitute the relevant gain/frequency relationships.
2. Because features which are important to the resulting shelf are chosen throughout (all frequencies have a relationship to the Nyquist gain), the technique also works for shelves which have their centre frequency outside the Nyquist range as shown in Figure 9. Figure 9 also shows a conventional shelf.
It is possible to design shelves with apparent centre frequencies in excess of 50kHz, although these may have limited effect in the audible range. It has been found that the limiting factor is the precision of coefficient calculations. As the centre frequency rises, the Nyquist gain approaches OdB and the algorithm becomes more sensitive to errors.
If the centre frequency of the shelf is limited to 20kHz, double precision 3 floating point math (which is employed in, for example, a DEC Alpha host) is more than sufficient to ensure that algorithmic instability does not occur.
Making shelves with cut To find gain as a function of frequency, it was assumed that the shelf had boost (Equation 5). In order to use a uniform procedure for all shelves, if a shelf is required to have cut, its gain can be inverted to make it appear as if it is a boost shelf.
The shelf can be turned back to cut at the very end of the procedure taking the reciprocal Iffl of H, swapping co, and (Od and swapping Q, and Qd.
Regarding frequency, it has been assumed so far that shelves are specified by a prototype centre frequency coop and a gain at infinity H.,,p. However, it is possible to use a nominal -MB point as the reference frequency.
The centre frequency and nominal -MB point are then related by the expression CO-MB CO.. ire gain Overshoot It is possible to provide an overshoot (or undershoot) characteristic in a shelf.
To achieve this, the Q, and Qd parameters are modified according to an empirically determined law.
The centre frequency is placed at the geometric mean of the frequencies with no pre-warping and with full pre-warping. The helps reduce the gain drift in the model with no pre-warping.
As shown in Figures 10 and 11, whilst the result is not perfect, the overshoot gain and frequency characteristics are acceptable. It is also important to note that, once the overshoot is non-zero, the only guaranteed matches to the prototype are at dc and Nyquist frequency.
An example of an overshoot law is:
0 H10P Q,,.,. =Q., 0 ', Where Q,,, is the Q, in equation 3 with overshoot applied Q,, is the Qn in equation 3 without overshoot applied (i.e. as calculated from equation 8) 0 is an overshoot parameter which is greater than, or equal to, zero.
11 For systems requiring an overshoot control, it has been empirically observed that using a value of co,,, in Equation 7 at the geometric mean of frequencies with no pre-warping and full pre-warping helps to reduce gain drift: i.e.
Hoop (H - 1) 4 Cotemp = CO 0 H MP 2 - H.
Coremp = co = 2Fs tan 0)temp 2 Fs 0) = jtempo)tempW OS o)tempo)tempW Illustrative filter svstem Referring to Figure 12, a digital filter system comprises a digital second order IIR filter 2 of known form, having an input in for receiving a digital audio signal sampled at a conventional digital audio sampling rate. The filter outputs a filtered signal at an output out.
is A computer interface including for example a DEC Alpha (Trade Mark) computer 4 generates filter coefficients in dependence upon the setting of, inter alia, gain and frequency controls 6 and 8, and a Q control 30. The Q control is not used in generating a shelf except for providing overshoot or undershoot.
In this example, the filter 2 and the computer 4 implement a shelf according to the procedure shown in the chart of Figure 13.
Referring to Figure 13, the shape or frequency response of the shelf is defined by Equations 5 and 6 described above.
S I. The gain control 6 sets the prototype gain H cop of Equation 5, i.e. the gain at infinity. The prototype centre frequency wop is set by the frequency control 8.
From Equation 5 the Nyquist gain Hn is calculated using the set values of H.p, coop and o) = n F5.
S2. From Equation 6, the frequencies colp and W2p at which the shelf gain is (H,,)114 and (Hn)l2 respectively are calculated, using (H,,)"4, (H,,)"2, ct),,p and H,.p. - 12 0 Thus, H,, o)lp and 02p are determined from the known sampling frequency F, and from the settings of controls 6 and 8. The value Of (02p may be used as the value of co., of the final shelf. see equation 7 above.
S3. The values colp and C02p (but not c),,) are prewarped according to Equation 5 2.
S4 - S6. The determined pre-warped values cot, C02 and the value coO, are then provided for the calculation of pre-warped values of Qn, and Qd, using Equations 6a, 7, 8 and 9. 0)n and 0)d are calculated using Equations 6 and 7 and the values co,), and H,, calculated at steps S2 and SI. co,, and (Od are substituted into Equations 8 and 9 to calculate Q, and Qd. As discussed, above (Onand(Odare based on an un- warped value of (DOS.
S7. The pre-warped values of H,,, (Ori 0)d Qd and Q, thus calculated are used to calculate a pre-warped shelf according to form of Equation 3, but with the pre-warped values applied.
S8. The pre-warped shelf is then subject to a bilinear transfer (Equation 1).
S9. Coefficients for the filter 2 are then generated in known manner. Equaliser according to the invention Referring to Figure 14 an example of an EQ is shown together with matching points for the derivation of filter coefficients. The chosen matches are: dc, lower half effect point, peak gain and Nyquist gain Such a matching scheme gives a higher priority to matching the response on the low frequency side of the peak gain. It might be thought that this would be a disadvantage if the peak gain is placed at low frequency. If the centre frequency is 1 kHz, then there are no matches between 1 kHz and Nyquist frequency and the response could be incorrect. However, it can be shown that as the Nyquist gain approaches 0d13 (as it will if the centre frequency is low), the response becomes symmetrical about the centre frequency (i.e. the match on the LF side also becomes a match on the high frequency side).
The Orfanidis method of filter design uses dc, peak gain, Nyquist gain and a bandwidth to specify the filter. The peak gain is actually two constraints - the gain at the centre frequency, and the derivative of gain at that frequency equal to -zero.
13 However, as the peak approaches the Nyquist frequency, the Nyquist gain condition becomes similar to the gain at centre frequency condition, and the bandwidth condition becomes similar to the derivative equal to zero condition. This causes the system of equations to become almost singular (ill-conditioned), and therefore highly sensitive.
In the EQ of the present embodiment, the gain at centre frequency and Nyquist gain condition become similar as the centre frequency rises. However, the other conditions remain completely independent, and thus the system of equations does not approach a singularity as quickly.
A filter EQ is formed using the matches which have been identified above. The 10 filter has a Nyquist gain of N and OdB gain at dc. There are three unknowns to find, a, b and c in the prototype EQ transfer function.
H(s) = Ns' + 2Fas + 4F,b (Equation 10) S 2 + 2Fcs + 4Fsb where: F, is sampling frequency.
The desired filter has parameters:
is centre frequency (o),), radians per sample, where radians per sample = (radians per second)l(samples per second); peak gain (G); and Q factor (Q) To calculate the target coefficients, some intermediate variables are the Nyquist 20 gain (N); lower half effect point (col) and several pre-warped quantities, denoted by a subscript w.
F2 (26 2 _ 2r 2 + G' O)C2 2r 2 (Equation 11) Q Q 2 0)2 Z 2 0 2 Z 2 + c c 0)' o), = Q J2- G + 2Q2- JG(G + 4Q2) (Equation 12) co, = tanc-) col w =tan (Equations 13) 2 2) 14 2 2 _N2 0).G 2 1 (Equation 14) G 2 N 2 2 - N' + co,2, G 2!--2n + G -2 (Equation 15) a 2b N - 9'C 2 0 2.
G G -1 G -1 2 CO 2 (G 2 - N 2) + 0)2 (N2 -G) C04 2 G 2 - N' C=. CW 2 1W CW 2 1 ± 2b (Equation 16) G-G G co,2w G Referring to Figure 12, the gain control 6 sets peak gain G and the ftequency control 8 sets centre frequency co,_, and the Q control 30 sets Q. Illustrative Filter System An illustrative filter system is shown in Figure 12 which is described hereinabove. The system operates as follows, referring to Figure 17.
S 11. The Nyquist gain N is calculated from Equation 11 according to the EQ prototype above, based on the settings of Q, G and o),. defined by the controls 30, 6 and 8 in Figure 12.
S 12. The lower half effect point (ol is calculated from Equation 12.
S13. The centre co, and lower half effect col frequencies are pre-warped according to Equation 13.
S 14. Y is calculated from Equation 14.
S 15. 'a' is calculated from Equation 15.
S 16. 'c' is calculated from Equation 16.
S17. The pre-warped analogue equalisation characteristic H(s) is calculated according to Equation 10.
S 18. The bilinear transform is then applied to H(s).
S 19. The filter coefficients are calculated in known manner and applied to the filter. Common transfer function for EO and Shelf The prototype shelf was described in general terms (as in Equation 3). However, because it has OdB gain at dc, it can be rearranged into the same form as the EQ:
H s 2 + S 0)n + 602 shef = - Q,, (Equation 17) 2 (1)d 2 S +S Qd + (t)d EQ = N2 S +as+b S 2 +cs+b (Equation 18) But if N = H,a = Hx 1"- b = 0)2, (noting that HC02 = 0)2), c = Md- then the R d n d Qd same transfer function can be used for the EQ and the shelf. This presents real benefit in a real-time processing system.
Combining Shelf and EO As the EQ is shifted higher in frequency its peak approaches and passes the Nyquist frequency. The EQ is defined by matching frequency points equal to and less than Nyquist frequency and thus the EQ remains stable below and near to Nyquist frequency but not beyond. However as the EQ peak moves above Nyquist frequency it resembles a shelf and, in accordance with an aspect of the present invention, it is recognised that it is desirable to replace the EQ with a matching shelf.
The shelf portion of the EQ provides a prototype of the desired shelf. The shelf is then produced in the same way as described hereinbefore but with the EQ as a prototype for the shelf The EQ gain/frequency characteristics are:
2 2 _ 2)2 0)2 2 = Q (coo - 0) + (G P o)-o) (Equation 19) Q2(OJ2 -0)2)2 +(OXO 0 0)2 2 /12 1)2 CO G 2 V(2Q2(1 A2) -G2 + A2 - 4Q' (,2 _ I P + Q2 (A2 (Equation 20) coo 2 16 where: ?, is gain; G is the peak gain of the EQ; coo is the centre frequency; (j) is I P frequency and Q is Q factor.
Figure 15 illustrates a comparison of an example of an EQ and a matching shelf.
They do not exactly match because they have very different pole-zero configurations.
The EQ is replaced by the shelf in the following manner.
A transition frequency is defined in software in the interface 4. The control frequency set by control 8 is compared with the transition frequency. If control frequency is higher than the transition frequency the EQ is replaced by the shelf.
Figure 16 shows schematically an audio mixer 10, having an equalisation (EQ) section 14, a Low Pass filter section 16 and a high pass filter section 18 controlled by a computer interface 4. The interface receives gain control 6 and frequency control signals. It also allows selection of the filter sections 14, 16, 18. Any of the sections may be connected to the input and output signals singly or in combination.
Other features conventional in a mixer are not shown. The algorithms for controlling the filter sections may be provided on a data carrier 20, such as a CD ROM, floppy disc or other conventional form of record or memory. The carrier is loaded into the computer interface 4 which may include a standard computer such as a DEC Alpha (trademark) for implementing the algorithms.
A computer (e.g. 4 in Figure 16) may be used "off-line" to calculate the filter coefficients which are compiled into, for example, a look-up table. The filter 14, 16 or 18 may use the look-up table instead of calculating the coefficients in "real-time".
17

Claims (1)

1. A method of generating coefficients in a digital filter, comprising the steps of(a) providing a gain control signal setting a value of reference gain, 5 (b) providing a frequency control signal setting a value of reference frequency (c) calculating, according to a model of the frequency/gain characteristic of a prototype analogue filter, a plurality of gain and/or frequency points at frequencies equal to and less than Nyquist frequency (where Nyquist frequency is half the sampling frequency of the digital filter) and which match corresponding gain and/or frequency points in the corresponding digital filter characteristic, (d) calculating from the said calculated points, pre-warped parameters of a model of the analogue filter, (e) applying a transform to the resulting pre-warped analogue model to convert the pre-warped analogue model to the digital domain and (f) generating filter coefficients from the transformed model and applying them to the filter.
2. A method according to claim 1, wherein the gain control signal sets the value of gain at infinite frequency as the reference frequency.
3. A method according to claim 1 or 2, wherein the frequency control signal sets the value of frequency at centre frequency.
4. A method according to claim 1, 2 or 3, wherein step c) comprises calculating the Nyquist gain at the Nyquist frequency, where Nyquist frequency is half the sampling frequency of the digital filter.
5. A method according to claim 4, wherein step c) comprises calculating the frequencies at respective ones of a plurality of predetermined proportions of the 330 Nyquist gain.
18 6. A method according to claim, 4, wherein step d) comprises warping calculated frequency values of predetermined proportions of the Nyquist gain.
7. A method according to claim 1, 2, 3, 4, 5or 6, wherein the filter is a shelf and 5 the said model of the prototype analogue filter is H.P (s 2 + S 0)'P + 0) 2 np) shef = Q,,p (Equation 3) 2 S 0) dp + 6 2 S + Qdp 0 dp where: o),,p is a zero frequency; (.Odp is a pole frequency; Qnp is a measure of zero damping; Qdp is a measure of pole damping; H.p is Gain at infinity (reference frequency).
8. A method according to claim 7, wherein Codo),, = CO 2 OS (Equation 7) where co,,, is the centre frequency of the final digital filter.
9. A method according to claim 8, wherein an un-warped value of the frequency of one of the said predetermined proportions of the Nyquist frequency is used as o)O, 10. A method according to claim 7, 8, or 9, wherein in step c) the Nyquist frequency H, is calculated using the equation:
4 4 H co p MP p Gp= F4 (Equation 5) C 0P C0 p W p 4 + O)C + WC + WOP mp Hp where Gp gain, cop frequency, H.P is the gain at infinite frequency set by the gain control sigaril and co,,p is the centre frequency of the prototype filter set by the frequency control signal and. cop = F, 25 19 11. A method according to claim 10, wherein step c) comprises calculating C002S = d/(on)2 values ct),, and 0)d fromo)do). = and H, (CO.
12. A method according to claim 11 wherein step c) comprises calculating g12 _ 2 7 g 2 - Q, = 0)n C() 10) 2 -,)2 - g2C 2 j _ 2 2 2 2 2 2 4 26'1 2 t)2 (0)n C 012 Y 2 2 ( 2 920)2 0) - c -g] 0) 2 XCO d -Col 0 012 Y 0) (CO + g] 92 ( CO 1 (Equation 8) and 2 _ 2 Qd -" C0d010)l 9192 6 2 21 2 - 2 g2C 2 2 Y 2 2X)4 1)2 - - - -6 020J2 92 0)l (0)d 02 1 2 (0)d 0)l 4)2 CD1 0 n 1 2 (Equation 9) 13. A method according to claim 12 wherein the step e) comprises applying H, co, (j)dy Q,, and Qd H MP (S 2 + S CO nP + 0) 2 11P) to shef = - CO Q"P S 2 +S dp + 0) dp 2 Qp d 14. A method according to any preceding claim wherein the said transform of step e) is a bilinear transform.
15. A computer program product arranged to implement the method of any one of claims 1 to 14 when run on a computer.
16. A recording medium in which is stored a computer program product arranged to implement the method of any one of claims 1 to 14 when run on a computer.
17. A digital filtering system comprising a digital filter (2) having an input for receiving a digital signal, and an output, an input (6) for receiving a gain control signal, 25 an input (8) for receiving a frequency control signal, and an interface (4) responsive to the gain and frequency control signals to apply coefficients to the digital filter, the interface calculating the coefficients according to the steps of c) calculating, according to a model of the frequency/gain characteristic of a prototype analogue filter, a plurality of gain and/or frequency points at frequencies equal to and less than Nyquist frequency (where Nyquist frequency is half the sampling frequency of the digital filter) and which match corresponding gain and/or frequency points in the corresponding digital filter characteristic, d) calculating from the said calculated points, pre-warped parameters of a model of the analogue filter, e) applying a transform to the resulting pre-warped analogue model to convert the pre-warped analogue model to the digital domain and 0 generating further coefficients from the transformed model and applying them to the filter.
18. A system according to claim 17, wherein step c) comprises calculating the Nyquist gain at the Nyquist frequency, where Nyquist frequency is half the sampling frequency of the digital filter.
19. A system according to claim 18, wherein step c) comprises calculating the frequencies at respective ones of a plurality of predetermined proportions of the Nyquist gain.
20. A system according to claim 19, wherein step d) comprises warping calculated frequency values of predetermined proportions of the Nyquist gain.
-) 1.
A system according to claim 17, 18, 19 or 20, wherein the filter is a shelf and the said model of the prototype analogue filter is 21 H,(s' +s 0) "' + 0)',) shey = Q,,p (Equation 3) S 2 +S 0) dp + C0 dp 2 Q# where: co,,p is a zero frequency; COdp is a pole frequency.
Qnp is a measure of zero damping; Qdp is a measure of pole damping; R,p is Gain at infinity (reference frequency).
= 012 Cod Con 22. A system according to claim 21, wherein OS (Equation 7) where co,,, is the centre frequency of the final digital filter. 10 23 A system according to claim 22, wherein an un-warped value of the frequency of one of the said predetermined proportions of the Nyquist frequency is used as co,,,.
24. A system according to claim 21, 22, or 23, wherein in step c) the Nyquist 15 frequency H,, is calculated using the equation:
4 4 H a) p +0 4 Gp= lop 0 p + 0 p (Equation 5) 0P m C 1F4 0P 0P C0 ji__ + wp 4 i p - +0)( - + WOP HWP WP where Gp = gain, frequency, R.,p is the gain at infinite frequency set by the gain control signal and cop is the centre frequency of the prototype filter set by the frequency control signal and cop = nF,, A system according to claim 24, wherein step c) comprises calculating 2 values (o,, and 0)d ftoM 0)do),, = coo2s andH, =(0)dM j.
26. A system according to claim 25, wherein step c) comprises calculating 22 2 g X2 2 X CO 4 0J2 Q n 0) n 0) 1 CO 2 2 2) +g 2g2(2 1)2 Y (CO CO CO 1 -C n 2 d t) 92 ( CV g 12 0)12 2 1 -0)2 (Equation 8) and g] 2 2 _g2 + 2 0) Y 6 Q d 2 _g2(02( 2 a 01 1 9 - - CO 1 0,4 _ 0) 2 ' (09d - C02 920) 2 (Equation 9) 27. A system according to claim 26 wherein the step e) comprises applying H, 0).
Wd, Q, and Qd H.,, (s 2 + s +CO,') to shey - CV Q11P S 2 '_ S -dp + CO dp 2 Q# 28. A system according to any one ofclaims 17 to 27, wherein the said transform of step e) is a bilinear transform. 29. A data carrier carrying an algorithm for use in a digital filtering system, the algorithm implementing the steps of.. 15 calculating, according to a model of the frequency/gain characteristic of a prototype analogue filter, a plurality of gain and/or frequency points at ftequencies equal to and less than Nyquist frequency (where Nyquist frequency is half the sampling frequency of the digital filter) and which match corresponding gain and/or frequency points in the corresponding digital filter characteristic, 20 calculating from the said calculated points, pre-warped parameters of a model of the analogue filter, applying a transform to the resulting pre- warped analogue model to convert the pre-warped analogue model to the digital domain and generating further coefficients from the transformed model and applying them to 25 the filter.
23 30, A method of generating coefficients for a digital filter comprising:
(a) providing a gain control signal setting a value of reference gain, 0 (b) providing a frequency control signal setting a value of reference frequency 0 (c) calculating, according to a model of the frequency/gain characteristic of a prototype analogue filter, a plurality of gain and/or frequency points at frequencies equal to and less than Nyquist frequency (where Nyquist frequency is half the sampling frequency of the digital filter) and which match corresponding gain and/or frequency points in the corresponding digital filter characteristic, (d) calculating from the said calculated points, pre-warped parameters of a model of the analogue filter, (e) applying a transform to the resulting pre-warped analogue model to convert the pre-warped analogue model to the digital domain and (f) generating filter coefficients from the transformed model.
3) 1. A digital filter containing a store storing filter coefficients, the coefficients being generated in accordance with the method of claim 32.
32. A method according to claim 1,2, 3, 4, 5 or 6, wherein the filter is an EQ and the said model of the prototype filter is:
y 2 S + 2Fas + 4F2b H(s) 2 (Equation 10) s + 2Fcs + 4F,b where: F, is sampling frequency and N is Nyquist gain, and a, b, and c, are filter parameters.
33. A method according to claim 32, wherein the said step c) comprises calculating a value of Nyquist gain according to Q2(( 2 0 _ 2)2 2 C0c21 2 N= Q2(02 z +G Ir - (Equation 11) c _Z2)2 + Co', z ' where centre frequency (co.), radians per sample, peak gain (G)-, and Q factor (Q).
24 1 calculating 34 A method according to claim 33, wherein step c) comprises G + 2(771VIG(G + 47Q (Equation 12).
QV2 35. A method according to claim 33 or 34, wherein step c) comprises using the centre frequency unchanged.
36. A method according to claim 34 or 35 wherein step d) comprises calculating pre- warped values co, = tan EL colw = tan (Equations 13).
2 2 EI-) 37. A method according to claim38 wherein step d) further comprises calculating 2 G 2 N2 b = COC, (Equation 14.) G -1 38. A method according to claim 37, wherein step d) comprises calculating 2 - G 2 - N 2(02 CO 2)2 N - E::E: +0)2 N2 CW--- - (Equation 15) a= 2b G 2 _1 lwG j--1 + G G 2 1 2 and 2o)2 (G2 _ Arl) + 0)12. (Ar 2 - G) 0) C4w 2 G' _ Ar2 c = 1 CW G-G 2 + G 0) 1 2 w G2 -1 + 2b (Equation 16) 39. A method according to claim 38, wherein step e) comprises applying N and the pre-warped values a, b, and c to H(s) = M2 + 2Fas + 4F,2 b (Equation S 2 + 2Fcs + 4F,2b 10) where: F, is sampling frequency and N is Nyquist gain, and a, b, and c, are filter parameters.
40, A digital filter operating according to the method of any one of claims 32 to 39.
41. A computer program product arranged to implement the method of any one of claims 32 to 339 when run on a computer.
42. A recording medium in which is stored a computer program product arranged to implement the method of any one of claims 32 to 39 when run on a computer.
43. A method of generating filter coefficients substantially as hereinbefore described with reference to Figures 7, 8, 12 and 13 optionally as modified by Figures 10 or 11 of the accompanying drawings.
44. A filter system substantially as hereinbefore described with reference to Figures 7, 8, 12 and 131 optionally as modified by Figures 10 or 11 of the accompanying drawings 45. A method of generating filter coefficients substantially as hereinbefore described with reference to Figures 14 and 17 of the accompanying drawings.
46. An audio mixer comprising a filter system of any one of claims 17 to 28 and 44.
GB0008719A 1999-04-16 2000-04-07 Digital filters Expired - Lifetime GB2350956B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
GB9908810A GB9908810D0 (en) 1999-04-16 1999-04-16 Digital filtering

Publications (3)

Publication Number Publication Date
GB0008719D0 GB0008719D0 (en) 2000-05-31
GB2350956A true GB2350956A (en) 2000-12-13
GB2350956B GB2350956B (en) 2004-02-25

Family

ID=10851733

Family Applications (2)

Application Number Title Priority Date Filing Date
GB9908810A Ceased GB9908810D0 (en) 1999-04-16 1999-04-16 Digital filtering
GB0008719A Expired - Lifetime GB2350956B (en) 1999-04-16 2000-04-07 Digital filters

Family Applications Before (1)

Application Number Title Priority Date Filing Date
GB9908810A Ceased GB9908810D0 (en) 1999-04-16 1999-04-16 Digital filtering

Country Status (1)

Country Link
GB (2) GB9908810D0 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2350505B (en) * 1999-04-16 2004-04-07 Sony Uk Ltd Digital filtering
EP1448022A1 (en) * 2003-02-14 2004-08-18 GN ReSound A/S Dynamic Compression in a hearing aid

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2080068A (en) * 1980-07-09 1982-01-27 Casio Computer Co Ltd Digital Filter Apparatus
EP0196413A1 (en) * 1985-03-09 1986-10-08 ANT Nachrichtentechnik GmbH Low or high pass shelving filter
US5856934A (en) * 1996-08-30 1999-01-05 Icom Incorporated Digital filter system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2080068A (en) * 1980-07-09 1982-01-27 Casio Computer Co Ltd Digital Filter Apparatus
EP0196413A1 (en) * 1985-03-09 1986-10-08 ANT Nachrichtentechnik GmbH Low or high pass shelving filter
US5856934A (en) * 1996-08-30 1999-01-05 Icom Incorporated Digital filter system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2350505B (en) * 1999-04-16 2004-04-07 Sony Uk Ltd Digital filtering
EP1448022A1 (en) * 2003-02-14 2004-08-18 GN ReSound A/S Dynamic Compression in a hearing aid
US7305100B2 (en) 2003-02-14 2007-12-04 Gn Resound A/S Dynamic compression in a hearing aid

Also Published As

Publication number Publication date
GB9908810D0 (en) 1999-06-09
GB0008719D0 (en) 2000-05-31
GB2350956B (en) 2004-02-25

Similar Documents

Publication Publication Date Title
Balogh et al. Infinite dimensional backstepping-style feedback transformations for a heat equation with an arbitrary level of instability
Zhong Robust output tracking control of SISO plants with multiple operating points and with parametric and unstructured uncertainties
US20090108891A1 (en) Bandwidth control in a mostly-digital pll/fll
US6581080B1 (en) Digital filters
CN108958041A (en) A kind of discrete binary cycle repetitive control attracting rule based on hyperbolic secant
Weaver et al. The use of multirate notch filters in embedded-servo disk drives
US20220368247A1 (en) Model predictive pulse pattern control based on small-signal pulse pattern optimization
US5995316A (en) initialization method and apparatus for a runout cancellation method
GB2350956A (en) Digital filters
Goodwin et al. Adaptive robust control (convergence, stability and performance)
Akhtar et al. A systematic approach of loop filter tuning of TD-Based PLLs using LQR-Based approach considering time delay
van der Houwen et al. Linear multistep methods with reduced truncation error for periodic initial-value problems
Niyomsatian et al. Active-damping virtual circuit control for grid-tied converters with differential-mode and common-mode output filters
GB2350505A (en) Digital filtering
Lanusse et al. Tuning of an active suspension system using a fractional controller and a closed-loop tuning
Gawthrop Robust stability of a continuous‐time self‐tuning controller
Xiong et al. Improved discrete proximate time optimal controller of a disk drive actuator
Du et al. A Cubic B-spline Finite Element Method for Optimal Control Problem Governed by Nonlinear Parabolic Equation Describing Crystal Surface Growth
Maione Multiple fractional networks for robust control design
US6856181B1 (en) Stability robustness using a non-integer order filter in a circuit
KR100973658B1 (en) Feedback Linearization Control of PWM Converters with LCL Input Filters
Rangaiah et al. Set point weighting for simplified model predictive control
HOROWITZ et al. Blending of uncertain nonminimum-phase plants for elimination or reduction of nonminimum-phase property
CN114884384B (en) Grid-connected inverter control method and system
Boiko On phase deficit of the super‐twisting second‐order sliding mode control algorithm

Legal Events

Date Code Title Description
732E Amendments to the register in respect of changes of name or changes affecting rights (sect. 32/1977)

Free format text: REGISTERED BETWEEN 20140116 AND 20140122

PE20 Patent expired after termination of 20 years

Expiry date: 20200406