GB2350505A - Digital filtering - Google Patents

Digital filtering Download PDF

Info

Publication number
GB2350505A
GB2350505A GB0008718A GB0008718A GB2350505A GB 2350505 A GB2350505 A GB 2350505A GB 0008718 A GB0008718 A GB 0008718A GB 0008718 A GB0008718 A GB 0008718A GB 2350505 A GB2350505 A GB 2350505A
Authority
GB
United Kingdom
Prior art keywords
frequency
characteristic
filter
gain
control signal
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
GB0008718A
Other versions
GB2350505B (en
GB0008718D0 (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 GB0008718D0 publication Critical patent/GB0008718D0/en
Publication of GB2350505A publication Critical patent/GB2350505A/en
Application granted granted Critical
Publication of GB2350505B publication Critical patent/GB2350505B/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

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Tone Control, Compression And Expansion, Limiting Amplitude (AREA)

Abstract

A digital filter system comprises a digital filter, inputs for receiving gain and frequency control signals and means for generating coefficients for the digital filter in such a way that over a first range of frequencies set by the frequency control input a first set of coefficients defining a first filter characteristic (e.g. an equalisation characteristic) which is liable to algorithmic instability when a portion thereof reaches a reference frequency is generated and over a second range of set frequencies a second set of coefficients defining a second filter characteristic (e.g. a shelf) is generated, the second filter characteristic matching a predetermined portion of the first characteristic and being algorithmically stable in the frequency zone of instability of the first characteristic. A method of generating coefficients for use in a digital filter to emulate an equalisation characteristic is also disclosed.

Description

2350505 Digital Filtering The present invention relates to digital
filters, a method of generating coefficients in a digital filter, and a data carrier.
In this specification the term "algorithmically stable" and its inverse, instability is used. It refers to situations in which the sollition 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.
Backaround
Background to the present invention will now be described by way of example with reference to Figures 4 and 5 which are graphs showing frequency responses of illustrative filters.
It is known to provide, for example, an equalisation characteristic or EQ as shown for example in Figures 4 and 5. Such a characteristic can be shifted in frequency such that its peak is adjacent to the Nyquist frequency, which is half the sampling frequency of the digital filter. It is also known that currently available coefficient calculation algorithms become ill-conditioned under these conditions as will be explained hereinafter. It is desired to provide an EQ where the peak is at or even apparently beyond the Nyquist frequency.
Whilst the background to the invention has been described with reference to an
EQ, the invention is not limited to EQ but may be applicable to other filter characteristics which become unstable when a portion of the characteristic is near to and/or beyond Nyquist frequency.
According to the one aspect present invention, there is provided a digital filter system, which generates a first filter characteristic which is liable to instability when a portion thereof reaches a reference frequency and which generates a second filter characteristic when the said portion of the first filter characteristic approaches its frequency zone of instability, and which second filter characteristic, substantially matches a predetermined portion of the first characteristic and is stable in the frequency zone of instability of the first characteristic.
2 Thus, this aspect of the invention replaces the portion below Nyquist frequency of the characteristic with a different filter characteristic which is algorithmically stable and yet which substantially matches the said portion below Nyquist frequency of the unstable characteristic. The algorithmically stable filter characteristics can be shifted to higher frequencies giving the appearance that the original EQ is operating correctly in what is in fact its region of instability. For the example of an EQ, when the peak reaches Nyquist frequency, the portion of the EQ below Nyquist frequency resembles a portion of a shelf. In a preferred embodiment of the invention, the portion of the EQ below Nyquist frequency is replaced by a matching shelf According to another aspect of the invention, there is provided a method of generating coefFicients for use in a digital filter to emulate an equalisation characteristic, comprising the steps of.
(a) providing a gain control signal setting a value of peak gain G, (b) providing a frequency control signal setting a value of center frequency o), (c) providing a Q control signal setting a value of quality factor Q; (d) calculating, according to a model of the frequency/gain characteristic of a prototype analogue equalisation characteristic, Nyquist gain N, and lower half effect frequency (ol and and center ftequency (o,. which match corresponding gain and/or frequency points in the corresponding digital filter characteristic, (e) calculating pre-warped values o),,(i)lw of o), and o), (f) calculating from Hn, G, co,, and col,,, a pre-warped model of the digital filter characteristic; (g) applying a transform to the resulting pre-warped analogue model to convert the pre-warped analogue model to the digital domain and (h) generating filter coefficients from the transformed model and applying them to the filter.
Thus there is provided an EQ characteristic which is digitally emulated and has algorithmic stability in the Nyquist region.
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; 3 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: F, is the sampling frequency.
However, this maps the entire frequency range (de 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', o,, and'digital frequency', 6)d is known and given by:
CO Cod s =tan (Equation 2) 2F 2 F, where: cos is "analogue frequency"; 0)d is "digital frequency"; and 4 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 20d13, 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 p (S2 + S OnP + 0)2 nP shef Qnp (Equation 3) S 2 + S 0) dp CO 2 Q dp dp where: cop is a zero frequency; Odp is a pole frequency; Q,p 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 ftequency is at VCodp 0)np if, and only if, Qnl,Qdp.
Subscript p denotes prototype.
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.
EO - 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 &1p_ S + 0) 2 HP (s) = 2 p Q, 2 CP (Equation 4) S + tc-p S + CO Q, CP where: Gp is gain, cocp 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 pre-warped 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 msent 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 6 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 accordin.R 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, Hm, C0n5 (M Q, 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, COn and C0d 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).
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 1/4, V2 and %Nyquist gain as shown in Figure 7. Constructing a shelf 7 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 with its parameters denoted without a subscript p, (i. e. H oo, 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.
NWuist gain constraint 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, e)op, then gain at any frequency, cop, is given by:
4 4 H co p + C0 MP p OP Gp= 1F4 p (Equation 5) C 0P 2)p C0 + C 00 wp W p +0)o +09 p HWP lop for the shelf of Equation 3 (coop is also the 'centre frequency' for a symmetrical 15 shelf).
Equation 5 is based on the assumptions that:
Q,,p = QdP = II-F2 - i.e. critical damping; o),,p / co dp)' = 11H.P and 2 0) = C0 0)d OP np p If the shelf has boost i.e. H, G > 1, then this equation can be rearranged for co:
09 p = 0) H.P (GP 2 _1) 4 (Equation 6) OP 2 2 Hoop G p (H.,,p and co,,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 CO=n 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 CO d _Ld = H, (Equation 6a) 0) Determining frequency componen There are three variables left to find: Qn; Qd; and either co,, or Wd. In theory, it is possible to solve for these variables by matching the 1/4, V2 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 c),, and COd satisfy the geometric mean property around the centre frequency o),,, of the final shelf Cod Con = CO 0, 2 (Equation 7) where: co,,s 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 FIF, pushing the centre frequency up. This reduces the need for pre-warping (which would have pushed the centre frequency up).
WaT Lolp; g2p Equation 6 is used to derive frequencies colp and 02p from H,, at the V2and '/4 Nyquist gain points. Equation 2 is then applied to pre-warp calp and 02p to Values COI and 02. Thus c), and 02 are pre-warped values chosen so that once the bilinear transform is applied they match with the prototype.
DetermininR 0 components 9 For the shelf of Equation 3 with a specified co, and (Od (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 0) 0) C0 91 92 Qn 1 2 g2C02 2 _ 2 2 2( 2 2Y +g2g2 2 _ 2 4 _ 2 2 2 2 (CO n col Y - 91 Col Con - C02 1 2(0)l 0) 2 XCO d 0)l C02 (Equation 8) 2 _ 2 Qd - C1)d 0) 10)2 2 C012 (OV 2 2 91 92 g2 2 (0 2 2 2) _)j _ 2 2 _ C0 2 X C0 4 - C0 0) 92 d - (02 1 C02 0)l Y + (Ct)2 1 n 1 2 (Equation 9) [Normalised gain gn is defined as (linear gain at point/linear gain at infinity) i.e.
9n= Gn 1H., where Gn 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.
Assembling the final filter Once the five parameters (H,,, On 0d, Qn, and Qd) have been found, the shelf having the form of Equation 3 (but with its parameters replaced by Hn, (On C0d5 Qn, and Qd)is subjected to a normal bilinear transform. The coefficients of the filter are then 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:
the new method guarantees a gain match at Nyquist frequency the slope of the prototype is almost exactly replicated in the enhanced shelf, especially in the audible region there is no guarantee that the prototype centre frequency i.e. W,,p as set by the control 8 is matched The flexibilily 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 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 IM of H, swapping (j),, 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 Hp. However, it is possible to use a nominal -MB point as the reference frequency.
11 The centre frequency and nominal -MB point are then related by the expression Ocentre 0)-MB i gain 4 Overshoot It is possible to provide an overshoot (or undershoot) characteristic in a shelf To achieve this, the Qn 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 Hop Q. =QJo 20 Where Q,,,, is the Q, in equation 3 with overshoot applied Q,, is the Q, 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.
For systems requiring an overshoot control, it has been empirically observed that using a value of co,,s in Equation 7 at the geometric mean of frequencies with no pre-warping and full pre-warping helps to reduce gain drift: i.e.
Hoo, (H 00 - 1) 4 1 Colemp = 0) 0H lop 2 _H.0 o)lemp = co = 2Fs tan Oiemp 2Fs 12 0.) OS = VCotemp OtempW Illustrative filter aste Referring to Figure 12, a digital filter system comprises a digital second order ER 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.
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.
SI. The gain control 6 sets the prototype gain Hoop of Equation 5, i.e. the gain at infinity. The prototype centre frequency coop 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 co = n F, S2. From Equation 6, the ftequencies o)ip and 02p at which the shelf gain is (H,,) 114 and (H,) l2 respectively are calculated, using (H,,) 114, (Hj 112 ' co,,p and 1-1,,,p.
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 c),,, of the final shelf.. see equation 7 above.
S3. The values o)lp and 02p (but not cos) are prewarped according to Equation 2.
S4 - S6. The determined pre-warped values col, co2 and the value C0,,, are then provided for the calculation of pre-warped values of Qn, and Qd, using Equations 6a, 7, 8 and 9. co,, and C0d are calculated using Equations 6 and 7 and the values o)os and H., calculated at steps S2 and S 1. co,, and C0d are substituted into Equations 8 and 9 to 13 calculate Q, and Qd. As discussed, above e),, andOdare based on an un- warped value of 0)05.
S7. The pre-warped values of H,, (Dn5 Od> Qd and Qn 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: de, 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 OdB (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.
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.
14 A filter EQ is formed using the matches which have been identified above. The 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 + 4F,2b where: F, is sampling frequency. The desired filter has parameters:
centre frequency radians per sample, where radians per sample = (radians per second)/(samples per second); peak gain (G); and Q factor (Q) To calculate the target coefficients, some intermediate variables are the Nyquist gain (N); lower half effect point (col) and several pre-warped quantities, denoted by a subscript w.
2 2 r.2 2 927C2 N 2- (C0 7, +G a c (Equation 11) Q 0 +,9 2 2 _ 2 2 z 2 c Ir 0), OIC VG + 2Q2 - VG(G + 4Q2) (Equation 12) QV2 co,, tan 21 ffil. = t 2 (Equations 13) 2 N2 b = o) 2 [J 2 (Equation 14) G 2 2 2 2 _N2 C2w 12w) 2 a= 2b N - -N +0)2 G 2 I-N +G G 2 _1 0)2 - (Equation 15) G 2 _1 1W j -1 G 1W C = 2 N'-G)+ co,4' G'-N 2 +2b (Equation 16) G-G GO.)2 G 2 _1 1W Referring to Figure 12, the gain control 6 sets peak gain G and the frequency control 8 sets centre frequency o),-, and the Q control 30 sets Q.
Illustrative Filter Syste 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 co. defined by the controls 30, 6 and 8 in Figure 12.
S 12. The lower half effect point col is calculated from Equation 12.
S13. The centre coc and lower half effect col frequencies are pre-warped according to Equation 13.
S 14. V 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 EQ 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:
2 +S + 2 con H s Q 1 shef =. - (Equation 17) S2 +S 0)d + 0 Qd + Od 16 N 2 EQ = S +as+b (Equation 18) S 2 + cs + b = C02, 0)P2 = 2 But if N = H,a = Hx 12- b (noting that H 1 c then the d 7 Cod Q,, 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 EQ 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:
Q2 (0)2 _ C02)2 0)0Y 0 + (Gpco (Equation 19) Q2 (0)2 _ 6V2)2 + ( 0)2 0 COCO 2 G 2 _ A2 V(2Q2 (1 - 2) - G 2 + 'C)2 - 4Q4 1)2 = 1 +. P 2Q2 (2 (Equation 20) where: 1 is gain; Gp is the peak gain of the EQ; coo is the centre frequency; co is 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.
17 A transition frequency is defined in software in the interface 4. Thecontrol 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".
18

Claims (15)

1. A digital filter system, which generates a first filter characteristic which is liable to algorithmic instability when a portion thereof reaches a reference frequency and which generates a second filter characteristic when the said portion of the first filter characteristic approaches its frequency zone of algorithmic instability, and which second filter characteristic, substantially matches a predetermined portion of the first characteristic and is algorithmically stable in the frequency zone of algorithmic instability of the first characteristic.
2. A digital filter system comprising a digital filter, an input for receiving a gain control signal an input for receiving a frequency control signal, an interface responsive to the gain and frequency control signals for generating filter coefficients for the digital filter, the interface being operative to a) generate a first set of coefficients defining a first filter characteristic over a first range of frequencies set by the frequency control signal, and b) generate a second set of coefficients defining a second filter characteristic when the frequency set by the frequency control signal is equal to or greater than a reference frequency, which second filter characteristic substantially matches the first characteristic at and below the reference frequency.
3. A filter system according to claim 1 or 2 wherein the said reference frequency is the Nyquist frequency where the Nyquist frequency is half the sampling rate of the filter.
4. A system according to claim 1, 2 or 3, wherein the second characteristic replaces the portion of the first characteristic below the reference frequency.
19
5. A system according to claim 1, 2, 3 or 4, wherein the first characteristic is an equalisation characterisation and the second characteristic is a shelf.
6. A method of generating coefficients in a digital filter comprising the steps of receiving a gain control signal receiving a ftequency control signal, generating filter coefficients for the digital filter in response to the gain and frequency control signals, a) generating a first set of coefficients defining a first filter characteristic over a first range of frequencies set by the frequency control signal, and b) generating a second set of coefficients defining a second filter characteristic when the frequency set by the frequency control signal is equal to or greater than a reference frequency, which second filter characteristic substantially matches the first characteristic at and below the reference frequency.
7. A data carrier carrying an algorithm for use in a digital filtering system, the algorithm implementing the steps of receiving a gain control signal receiving a frequency control signal, generating filter coefficients for the digital filter in response to the gain and frequency control signals, a) generating a first set of coefficients defining a first filter characteristic over a first range of frequencies set by the frequency control signal, and b) generating a second set of coefficients defining a second filter characteristic when the frequency set by the frequency control signal is equal to or greater than a reference frequency, which second filter characteristic substantially matches the first characteristic at and below the reference frequency.
8. A method of generating coefficients in a digital filter to emulate an equalisation characteristic, comprising the steps of.
(a) providing a gain control signal setting a value of peak gain G, (b) providing a frequency control signal setting a value of center frequency, (c) providing a Q control signal setting a value of quality factor Q; (d) calculating, according to a model of the frequency/gain characteristic of a prototype analogue equalisation characteristic, Nyquist gain N, and lower half effect frequency col and and center frequency o),, which match corresponding gain and/or frequency points in the corresponding digital filter characteristic, (e) calculating pre-warped values (j)cw,o)lw of co, and o)l, (f) calculating from Hn, G, cocw, and colw a pre-warped model of the digital filter characteristic; (g) applying a transform to the resulting pre-warped analogue model to convert the pre-warped analogue model to the digital domain and (h) generating filter coefficients from the transformed model and applying them to the filter.
9. A filter system arranged to carry out the method of claim 8.
10. A data carrier carrying an algorithm arranged to carry out the method of claim 8.
11. A method of generating coefficients for use in a digital filter. to emulate an equalisation characteristic, comprising the steps of (a) providing a gain control signal setting a value of peak gain G, (b) providing a frequency control signal setting a value of center frequency (c) providing a Q control signal setting a value of quality factor Q; (d) calculating, according to a model of the frequency/gain characteristic of a prototype analogue equalisation characteristic, Nyquist gain N, and lower half effect frequency col and and center ftequency coc which match corresponding gain and/or frequency points in the corresponding digital filter characteristic, (e) calculating pre-warped values (j),:w,colw of coc and (t)l, 21 (f) applying a transform to the resulting pre-warped analogue model to convert the pre-warped analogue model to the digital domain and (g) generating filter coefficients from the transformed model.
12. A computer program product arranged to carry out the method of claim 6, 8, or 11 when run on a computer
13. A data carrier carrying a computer program product arranged to carry out the method of claim 6, 8, or 11 when run on a computer
14. A digital filter system according to claim 1 and substantially as herein before described with reference to the accompanying drawings.
15. An audio mixer having a digital filter system according to any one of 15 claims 1 to 5 and 14.
GB0008718A 1999-04-16 2000-04-07 Digital filtering Expired - Lifetime GB2350505B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
GBGB9908813.0A GB9908813D0 (en) 1999-04-16 1999-04-16 Digital filtering

Publications (3)

Publication Number Publication Date
GB0008718D0 GB0008718D0 (en) 2000-05-31
GB2350505A true GB2350505A (en) 2000-11-29
GB2350505B GB2350505B (en) 2004-04-07

Family

ID=10851736

Family Applications (2)

Application Number Title Priority Date Filing Date
GBGB9908813.0A Ceased GB9908813D0 (en) 1999-04-16 1999-04-16 Digital filtering
GB0008718A Expired - Lifetime GB2350505B (en) 1999-04-16 2000-04-07 Digital filtering

Family Applications Before (1)

Application Number Title Priority Date Filing Date
GBGB9908813.0A Ceased GB9908813D0 (en) 1999-04-16 1999-04-16 Digital filtering

Country Status (1)

Country Link
GB (2) GB9908813D0 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1485817A1 (en) * 2002-02-27 2004-12-15 Lecroy Corporation Digital frequency response compensator and arbitrary response generator system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2260068A (en) * 1991-09-30 1993-03-31 Motorola Inc Recovering a time-varying signal using multiple adaptive filtering algorithms
GB2267619A (en) * 1992-06-01 1993-12-08 Thomson Consumer Electronics System for determining instability in an IIR filter

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1075159A (en) * 1996-08-30 1998-03-17 Icom Inc Digital filter system
GB9908810D0 (en) * 1999-04-16 1999-06-09 Sony Uk Ltd Digital filtering

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2260068A (en) * 1991-09-30 1993-03-31 Motorola Inc Recovering a time-varying signal using multiple adaptive filtering algorithms
GB2267619A (en) * 1992-06-01 1993-12-08 Thomson Consumer Electronics System for determining instability in an IIR filter

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1485817A1 (en) * 2002-02-27 2004-12-15 Lecroy Corporation Digital frequency response compensator and arbitrary response generator system
EP1485817A4 (en) * 2002-02-27 2007-08-15 Lecroy Corp Digital frequency response compensator and arbitrary response generator system

Also Published As

Publication number Publication date
GB2350505B (en) 2004-04-07
GB9908813D0 (en) 1999-06-09
GB0008718D0 (en) 2000-05-31

Similar Documents

Publication Publication Date Title
Cao et al. Design and analysis of a novel L1 adaptive controller, Part II: Guaranteed transient performance
KR900005546B1 (en) Adaptive process control system
US4054780A (en) Gain-adaptive process control
CN100576323C (en) Offset adjusting apparatus
Lin et al. Nonlinearities enhance parameter convergence in output-feedback systems
JPS58186814A (en) Feed forward ac voltage adjustor using stepup/stepdown transformer and analog/digital control circuit
US5687104A (en) Method and apparatus for generating decoupled filter parameters and implementing a band decoupled filter
US6581080B1 (en) Digital filters
JPH0478208B2 (en)
GB2350505A (en) Digital filtering
Niyomsatian et al. Active-damping virtual circuit control for grid-tied converters with differential-mode and common-mode output filters
GB2350956A (en) Digital filters
KR101848903B1 (en) Sliding mode controller for dual active bridge converter
KR0185173B1 (en) Servo control circuit for optical disk apparatus
Langer et al. Pole placement design using convex optimisation criteria for the flexible transmission benchmark
Rahman et al. Retrospective cost adaptive control using composite FIR/IIR controllers
JPH07154900A (en) Circuit for stereo signal transformation and method of operation of is circuit
US7167432B2 (en) Read and write sample and hold signal generation
JP2019523627A (en) Control method of multi-level modular converter
US20080080218A1 (en) Bandwidth and output impedance control in a power supply
US20040036540A1 (en) Controlling an oscillator or a phase-delay device in a phase-control circuit
Marks et al. Impacts of linear controllers for power interfaces in ideal transformer model based power hardware-in-the-loop
Taylor et al. Loop-shaping for non-minimum phase systems using contoured robust bode plots
JP2003273671A (en) Analog pwm signal generating circuit
Keviczky et al. A new pole-placement regulator design method

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