Filter with independently adjustable band gain and break point slopes and method of constructing same
09722560 · 2017-08-01
Assignee
Inventors
- David Lorente (San Antonio de Benageber, ES)
- Todd Meier (Walnut Creek, CA, US)
- Perrin Meyer (Albany, CA, US)
- Luke Jenks (San Anselmo, CA, US)
Cpc classification
H03G5/165
ELECTRICITY
International classification
Abstract
A filter for equalizing the frequency response of loudspeaker systems includes at least one band filter section (11) comprised an n-order high boost or cut shelving fitter (13) having a break point frequency, ω.sub.1, and an n-order low boost or cut shelving filter (15) having a break point frequency, ω.sub.2, wherein ω.sub.1<ω.sub.2. The order, n, of at least one, and preferably both of the shelving filters of the band filter sections can be selected for adjusting the slope of the shelving filter at one or both of its break point frequencies. The high and low n-order shelving filters forming the band filter sections have substantially the same gain and produce a resultant band gain for the band filter section. Gain correction is provided for the selectable n-order high shelving filter and n-order low shelving filter for correcting the resultant band gain to a base gain level.
Claims
1. A filter for equalizing the frequency response of loudspeaker systems comprising: at least one band filter section comprised of an n-order high boost or cut shelving filter having a break point frequency, ω1, and an n-order low boost or cut shelving filter having a break point frequency, ω2, wherein ω1<ω2, and wherein the order, n, of at least one of said shelving filters of the band filter section is user selectable for adjusting the slope of the shelving filter at the break point frequency of said shelving filter, and wherein said high and low n-order shelving filters have substantially the same gain and produce a resultant band gain for the band filter section, and gain correction means for the n-order high shelving filter and n-order low shelving filter for correcting the resultant band gain for the band filter section to a base gain level, said correction means providing a correction factor dependent on the order of the shelving filters.
2. The filter of claim 1 further comprising gain control means for adjusting the corrected-to base gain of the band filter section.
3. The filter of claim 1 wherein the order, n, of both said high and low shelving filters is user selectable for adjusting the slopes of either or both shelving filters at the break point frequencies thereof independent of gain.
4. The filter of claim 1 wherein the filter is a multiband filter comprising of at least two band filter sections, each of said band filter sections being comprised of an n-order high boost or cut shelving filter having a break point frequency, ω1, and an n-order low boost or cut shelving filter having a break point frequency, ω2, wherein ω1<ω2, wherein the order, n, of at least one of said shelving filters of each band filter section is selectable for adjusting the slope of the shelving filter at the break point frequency of said shelving filter, and wherein said high and low shelving filters of a band filter section on the multiband filter have substantially the same gain and produce a resultant band gain for the band filter section.
5. The filter of claim 4 further comprising gain control means for independently adjusting gain of any one of said band filter sections.
6. The filter of claim 4, wherein the order, n, of each shelving filter of each band filter section is user selectable for adjusting the slopes of any one of the shelving filters at the break point frequencies thereof.
7. The filter of claim 1 wherein the selections for said user selectable n-order high and low shelving filters include at least n=1 for a first order filter, n=2 for a second order filter, and n=3 for a third order filter for producing, respectively, user selectable break point slopes of 6 dB/octave, 12 dB/octave, and 18 dB/octave for the band filter section.
8. A filter for equalizing the frequency response of loudspeaker systems comprising: multiple band filter section, each of said band filter sections being comprised of an n-order high boost or cut shelving filter having a break point frequency, ω1, and an n-order low boost or cut shelving filter having a break point frequency, ω2, wherein ω1<ω2, wherein the order, n, of at least one of said shelving filters of each band filter section is user selectable for adjusting the slope of the shelving filter at the break point frequency of said shelving filter, and wherein said high and low shelving filters have substantially the same gain and produce a resultant band gain for the band filter section, gain correction means for the n-order high shelving filter and n-order low shelving filter of each band filter section for correcting the resultant band gain for each band filter section to a base gain level, said correction means providing a correction factor dependent on the order of the shelving filters, and gain control means for adjusting the corrected-to base gain of each band filter section, wherein the gain of each band filter section can be adjusted independently of the slopes of the shelving filters of each band filter section.
9. The filter of claim 8 wherein the order, n, of each shelving filter of each band filter section is user selectable for adjusting the slopes of any one of the shelving filters of any one of the band filter sections at the break point frequencies of the shelving filters.
10. A method creating a multiband filter for equalizing the frequency response of loudspeaker systems having multiple band filter sections, wherein the shape of either end of the band filter section can be adjusted independently of gain, said method comprising: for each band filter section, constructing of n-order high boost or cut shelving filter having a break point frequency, ω1, and an n-order low boost or cut shelving filter having a break point frequency, ω2, wherein ω1<ω2, wherein the order, n, of at least one of said shelving filters is user selectable for adjusting the slope of the shelving filter at the break point frequency of said shelving filter, wherein the low n-order shelving filter is first constructed and the high n-order shelved filter is derived therefrom, and wherein low n-order shelving filters are constructed for each value of n in accordance with the following steps: choosing as a basic building block a first order (n=1) frequency-normalized low shelving filter for providing a basic shelving shape and gain level, for each n-order, establishing a s-plane representation of a frequency-normalized n-order Butterworth-type filter, which is represented by n complex poles on a unit circle about the origin of the s-plane, adding n complex zeros to the complex poles on the s-plane representation of the frequency-normalized n-order Butterworth-type filter, wherein each added complex zero has an associated complex pole, and manipulating the added complex zeros on the s-plane to achieve a gain that maintains the basic gain level of the first order filter chosen as the basic building block, wherein the basic gain level is maintained with an altered break-point frequency slope, and wherein the gain of said high and low n-order shelving filters are corrected so that they are substantially the same for any order n, and produce a resultant band gain for the band filter section.
11. The method of claim 10 wherein the complex zeros are moved away from their associated complex pole and the origin of the s-plane on a line that passes through the pole and s-plane origin.
12. The method of claim 10 wherein each complex zero is moved the same distance, wherein the distance is chosen to achieve a desired gain.
13. The method of claim 10 wherein the n-order high shelving filter of each value n is derived from the low n-order shelving filter constructed in accordance with the previous steps by a low to high transformation of the low n-order shelving filter transfer function.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
DETAILED DESCRIPTION
(22) Filters in accordance with the invention will generally be employed in equalization systems for adjusting the frequency response of a loudspeaker system. The invention involves different combinations of standard first order shelving filters and non-standard higher order shelving filters. The architecture of the resulting filters can be used to transform the filter architecture of current audio control systems into digital biquad sections, resulting in expanded filtering capabilities, including the ability to shape frequency response at break point frequencies of a multiband system.
(23) As used herein, band filter will be understood to include a boost band filter and a cut band filter. In the band filter described herein the amount of boost or cut for the band is adjustable.
(24)
(25) Basic Shelving Filter
(26) First it is noted the user requirements for a multiband equalization will require asymmetric band filters. Building such filters can be accomplished using different combinations of standard first order and non-standard high order shelving filters. Using such shelving filters as building blocks, filter architectures can be created which can be transformed into digital, biquad sections that are flexible and can be cascaded to provide adjustment controls contemplated by the invention.
(27) First, the basic building block of the filters of the invention needs to be defined. That is, the low boost shelving filter. From this basic building block all the derivations for low-pass and boost gain frequency-normalized prototypes (ω=1) can be obtained. Later the tow-pass to high-pass and boost to cut transforms from this prototype will be derived.
(28) A basic first order low boost-gain frequency-normalized shelving filter is a well-known filter, and is given, in the analog domain, by:
(29)
Where G.sub.0 is a gain parameter which determines the amplification at ω=0.
(30) By substituting jω in the above transfer function, it can be seen how the parameter G.sub.0, that is, the desired gain at DC, determines the position of the zero. When ω=0, the transfer function becomes:
(31)
The frequency response for this shelving filter is shown in
Higher Order Shelving Filters
(32) In order to construct higher order shelving filters, one starts from a general Butterworth low-pass filter and then just add complex zeros to the complex poles in order to stop the monotonic attenuation at the desired points. For example, for a second order shelving filter, one starts with a Butterworth second order low pass prototype:
(33)
The s-plane representation of the poles and zeros of this second order filter are shown in
(34)
If, as depicted in s-plane representation in
(35) But now there are complex poles and zeros which need to be taken into account, and thus the relationship between the position of the zeros and the desired gain need to be obtained. This relationship can be obtained with a useful trick: The magnitude of the s function for any given frequency ω can be obtained by just measuring the distance from poles and zeros to the ω points of the jω axis. The magnitude of the function will be:
(36)
Where dpn is the distance from ‘pole n’ to the ω points at the jω axis and dzn is the distance from ‘zero n’ to the ω points at the jω axis. In the second order shelving filter example, the magnitude at ω=0 will be the product of the distances from all zeros to the point (0,0) divided by the product of the distance from all poles to the point (0,0). This is illustrated in the s-plane representation for the second order filter shown in
(37) The above trick can be used to obtain the relation between the gain parameter G.sub.0 and the position of the zeros. As illustrated in
(38)
As the distance to the point (0,0) is the same for both zeros, one can get the position of the zeros related with the desired gain parameter:
dz.sub.0=√{square root over (G.sub.0)}
(39) The relation of the zeros to the desired gain can now be substituted for the zeros of the second order equation. First the zeros can be put into rectangular form to make it easier to operate on them geometrically. One starts by putting the zeros at the same position as the poles:
s.sup.2+√{square root over (2)}s+1=0
The roots of the equation are:
(40)
Then, to move the zeros in a straight line, one just needs to multiply their real and imaginary components by the obtained parameter, which is related with the desired amplification at ω=0:
(41)
By multiplying again the zeros, one gets the second order equation that he or she is looking for:
s−z.sub.1).Math.(s−z.sub.2)=s.sup.2+√{square root over (2.Math.G.sub.0)}s+G.sub.0
The final second order shelving equation will be then:
(42)
(43) The same technique can now be used to obtain third and fourth order shelving filters. For third order filter, the low pass Butterworth prototype, split in second order sections, is:
(44)
The three poles of this transfer function are:
(45)
The s-plane representation of this poles is shown in
(46) By using the same approach, zeros can be placed at the same position as the poles:
(47)
The resulting s-plane representation is shown in
(48) And now the desired gain can be related to the distance to all zeros by moving the zeros in a straight line from the origin (0,0) as illustrated in
(49)
The distance to the point (0,0) is again the same for the three zeros, so the relation of the gain control parameter at DC in relation to the zero position will be:
(50)
(51) If that parameter is included, to control the zero's position in the above third order equation, by using the same geometric approach than was done for the second order filter:
(52)
By getting again the s equations, one finally obtains:
(53)
(54) Following the same steps to obtain the fourth order filter, the low pass Butterworth prototype, split in second order sections, is:
(55)
The s-plane representation of this transfer function is shown in
(56) Therefore the relation of the position of the zeros with the DC amplification parameter will be given by:
(57)
Once again, The distance to the point (0,0) is again the same for the four zeros, so the relation of the gain control parameter at DC in relation to the zero position will be:
(58)
(59) The following transfer function for the fourth order shelving filter prototype is finally obtained by putting the complex zeros in rectangular form, by introducing the obtained gain parameter and again by obtaining the second order functions in s domain as described above:
(60)
Any higher order filters can be obtained by following the same approach.
Boost to Cut Transform
(61) All the obtained filters have their cutoff normalized frequency at ωc=1 only in the case of boosting the gain at DC (G0>1). If cutting, gain is desired with the above equations (i.e G0<1) ω.sub.c is moved to lower frequencies. In order to keep a symmetric frequency response for boost and cut, the transfer function needs to be inverted in the case of cut by swapping the poles and the zeros. Also, G.sub.0 needs to be replaced by 1/G.sub.0 by again using the distances to poles and zeros trick to get the magnitude response. When cut is desired, G.sub.0 is always less than 1.
(62) Low to High Transform
(63) All the filters obtained in the manner discussed above are low pass prototypes. In order to obtain the equivalent high pass filters, a low-pass to high-pass transformation must be done. The low-pass to high-pass transformation is obtained by just substituting 1/s for s. For example, by making this substitution the transfer function of a boost first order high-pass filter becomes:
(64)
The same transformation must be applied to all other equations for boost and cut filters in order to obtain the high-pass filter prototypes.
Asymmetric Band Filters
(65) In practical applications, asymmetric band filters are needed. Such asymmetric filters can be obtained from the above described building blocks.
(66) Starting with the boost example, the band filter can be easily created by connecting in series a high and a low shelving filter with the same boost gain. The frequency response of the low shelving filter is shown in
(67) To achieve the desired gain form the band filter created in this manner will require gain adjustment. More specifically, the convolution of the series connected high and low shelving filters leads to a total gain in the band, and also out of the band. Generally, the desired gain will be the gain of the original high and low shelving filters. However, without corrections the gain of the cascaded filters will be the square of the gain of the original filters as seen in
(68) The above-described building blocks for filters in accordance with the invention can implemented using biquads. The biquad coefficients A to F are the analog second order section prototypes, and a complete bilinear transform is applied to each second order section in order to get the digital filter. Therefore, every pass-band region can be created with just 4 biquads, allowing independent step selections of 6 dB/octave to 24 dB/octave.
(69)
(70)
(71) More specifically, the illustrated filter, generally denoted by the numeral 101, has a first section 103 and a second section 105. The first section has a high shelving filter portion 107 having a first break point frequency (break point 1) implemented by biquad blocks 111, 113, 115, 117, and a low shelving filter portion 109 connected is series to the high shelving filter portion. The low shelving filter portion 109 has a second breakpoint frequency (break point 2) and is implemented by biquad blocks 119, 121, 123, 125. The second section is connected in series to the first section and is comprised of a high shelving filter portion 127 having a third break point frequency (break point 3) implemented by fewer biquad blocks 131, 133, and a low shelving filter portion 129 connected is series to the high shelving filter portion 127. The low shelving filter portion 129 has a fourth breakpoint frequency (break point 4) and is implemented by the two biquad blocks 135, 137.
(72) Gain correction for each of the shelving filters is provided by the series connected gain correction block 139, 141, 143, 145, associated, respectively, with shelving filters 107, 109, 127, and 129.
(73) Each of the biquads blocks for each of the shelving filters illustrated in
(74)
(75)
(76)
(77) Selection of the slopes for each break point of the filter gain bands along with gain adjustments within each gain band can be user adjusted through a programmed digital computer having a user interface such as shown in
(78) While an implementation of the invention has been described in considerable detail in the foregoing specification and accompanying drawings, it is not intended that the invention be hunted to such detail except as necessitated b the following claims.