The present invention generally relates to loudspeaker systems and more particularly to systems and method of equalizing the frequency response of loudspeaker systems.
Equalization is a well know and widely used process of adjusting the frequency response of a loudspeaker. To “equalize” loudspeaker system is to adjust the amplitude of the audio signal a different frequencies within the system's operating frequency range in order to correct for frequency dependent distortions and anomalies that appear in the frequency response of the system. Distortions in the frequency response can, for example, be introduced by components of the loudspeaker system itself or by the acoustic environment in which the system is used. Equalization can also be used to adjust the frequency response to achieve a desired audio experience, for example, to create a particular sound for a particular performance at a particular venue.
Equalizers are implemented using linear filters that alter the frequency response of the loudspeaker system within specific bands of frequencies. Different filtering techniques have been devised, each providing different capabilities. Standard first order shelving filters are often used for basic treble and bass controls in consumer products.
For more sophisticated applications, control is increased by increasing the number of frequency bands that can be manipulated by the user. The more bands the more control. And the more controllable each band is the greater the capability is to fine tune the frequency response. With conventional equalization schemes the gain (cut or boost) within each frequency band gain can be readily controlled. However, this is not true with the shape of the bands at the bands break point frequencies. Each break point will be characterized by a slope, typically specified in terms of dB/octave and the shape of the band can be adjusted h adjusting this slope. The slope will be relatively gradual where lower order liken; are used and will become increasingly steep as the order of the filters increases. Control over the shape of the bands would give the operator increased flexibility to fine tune the system's frequency response to achieve desired sonic experiences. However, with conventional equalization schemes, user adjustments to the slope at the frequency break points cannot be made without simultaneously changing the band gain, an unworkable condition in practice. This limits the equalizer's capability to render fine adjustments in the response of an audio system.
The invention is directed improvements in filters used for loudspeaker equalization and to a method of constructing such improved filters. The invention has particular application in multiband equalizers, but could be implemented to construct a single band filter of a single filtering section of a multiband filter. A filter implemented in accordance with the invention allows the user of an equalizer to independently adjust the band gain within a frequency band and the break point slopes for the frequency band, implemented as a multiband filter, the user can independently adjust the band gain within each frequency band and the break point slopes for each band of the multiband filter. The filter can be implemented digitally using cascaded digital biquad filters sections as hereinafter described.
A filter in accordance with the invention is comprised of at least one band filter section comprised 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 The order, n, of at least one, and preferably both of the shelving filters of the at least one band filter section can be selected for adjusting the slope of the shelving fitter at one or both of its break point frequencies. The high and low shelving filters forming the at least one band filter section have substantially the same gain and produce a resultant band gain for the band filter section. Gain correction means are 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. Such correction means provides a correction factor dependent on the order of the shelving filters selected.
User controlled shelving order selection means allow for setting the order, n, of one or both of the high and low shelving filters making up the at least one band filter section. By selecting the order of the shelving filters making up the band filters, the break point slope at the shelving filter's break point frequency can be adjusted. Additional user control means can be provided for adjusting the base gain of the gain corrected band of each band filter section. The gain adjustments and break point slope adjustments can be made independently without one affecting the other.
Most suitably, the filter in accordance with the invention is a multiband filter comprised two or more band filter sections, each of which is comprised of at least one of the following: a n-order high boost and cut shelving filters having break point frequency, ω1, and selectable n-order low boost and cut shelving filter having a break point frequency, ω2, wherein ω1<ω2. The order of at least one, and preferably all of the shelving filters can be selected for adjusting the slope of the shelving filter at the break point frequency. The selectable high and/or low shelving filters forming any one band filter section have substantially the same gain and produce a resultant band gain for the band filter section. Gain correction means are provided for each selectable n-order high shelving filter and n-order low shelving filter for correcting the resultant band gain to a base gain level. Such correction means provides a correction factor dependent on the order of the shelving filters selected.
User controlled shelving order selection means allow for setting the order, n, of one or both of the high and low shelving filters making up each band section. By selecting the order of the shelving filters making up any one of the band filters of the multiband filter, the break point slope at the shelving filter's break point frequency can be adjusted. Additional user control means can be provided for adjusting the base gain of the gain corrected band of each band filter section. The vain adjustments and break point slope adjustments can be made independently without one affecting the other.
Break point slopes can be user adjusted by switching between available n-order boost and cat shelving filters making up each band filter section. For example, selectable n-order high and low shelving fillers can be provided for n=1 (first order filter), n=2 (second order filter), n=3 (third order filter), etc. These selectable n-order filters would provide for selectable break point slopes of 6 dB/octave, 12 dB/octave, 18 dB/octave etc. The band could be symmetric (the selected break point slopes are the same) or asymmetric (the selected break point slopes are different. Also by setting the gains of adjacent bands to the same setting a breakpoint can be eliminated. In this case the adjacent equalization band would combine into a single wider band, whose breakpoint slopes could be adjusted.
In another aspect of the invention, a method of constructing n-order high and low shelving filters for a multiband filter having desired break point frequencies is provided for different values of n. The method involves choosing as a basic building block it first order (n=1) frequency-normalized shelving filter for providing a basic shelving shape and gain level. Selectable higher order shelving filters are then created which maintain the basic shape of the first order filter except for the slope at the filters frequency break point frequency. To construct each higher order shelving filter, e.g. second order, third order, and fourth order shelving filters, the complex s-plane representation of a frequency-normalized n-order Butterworth-type filter is established as represented by complex poles on a unit circle about the origin of the s-plane. Complex zeros are then added to these complex poles and manipulated on the s-plane to achieve a gain that maintains the basic gain level of the first order filter, but with an altered break-point frequency slope. To obtain this result, the complex zeros can be moved away from their associated pole and the origin of the s-plane on a line that passes through the pole and s-plane origin. Each zero is moved the same distance with the distance being chosen to achieve a desired gain. This method can be used to derive the parameters of the n-order filters for the multiband filter in accordance with the invention for n=2 and greater, which includes a gain correction factor to each higher order filter that normalizes the gain of the higher order filter to the gain of the first order shelving filter.
Gain correction factors can be determined for high and low boost and cut shelving filters. Suitably, gain correction factors can first be determined for the low boost-gain order shelving filter, and then the gain correction factors for the cut-gain low-pass and boost and cut high-pass filters derived therefrom.
Using the multiband filters and method of the invention different break point frequency slopes can he selected for a high shelving filter and a low shelving filter. Thus, the high frequency end of a vain band can be given a different shape, that is, break point frequency slope than the low frequency end of the gain band. This added flexibility will afford the user of the equalization system to fine tune the shape of either end of a gain band, again independently of the gain.
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.
As used herein, band filter will be understood to include a band filter and a band filter. In the band filter described herein the amount of boost or cut for the band is adjustable.
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.
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.
A basic first order low boost-gain frequency-normalized shelving filter is a well-known filter, and is given, in the analog domain, by:
Where G0 is a gain parameter which determines the amplification at ω=0.
By substituting jω in the above transfer function, it can be seen how the parameter G0, that is, the desired gain at DC, determines the position of the zero. When ω=0, the transfer function becomes:
The frequency response for this shelving filter is shown in
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:
The s-plane representation of the poles and zeros of this second order filter are shown in
If, as depicted in s-plane representation in
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 he obtained by just measuring the distance from poles and zeros to the ω points of the jω axis. The magnitude of the function will be:
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
The above trick can be used to obtain the relation between the gain parameter G0 and the position of the zeros. As illustrated in
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:
dz0=√{square root over (G0)}
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 forth to make it easier to operate on them geometrically. One starts by putting, the zeros at the same position than the poles:
s
2+√{square root over (2s)}+1+0
The roots of the equation are:
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:
By multiplying again the zeros, one gets the second order equation that he or she is looking for:
(s−z1)·(s−z2)=s2+√{square root over (2·G0s)}+G0
The final second order shelving equation will be then:
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:
The three poles of this transfer function are:
The s-plane representation of this poles is shown in
By using the same approach, zeros can be placed at the same position as the poles:
The resulting s-plane representation is shown in
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
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:
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:
By getting again the s equations, one finally obtains:
Following the same steps to obtain the fourth order filter, the low pass Butterworth prototype, split in second order sections, is:
The s-plane representation of this transfer function is shown in
Therefore the relation of the position of the zeros with the DC amplification parameter will be given by:
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:
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:
Any higher order filters can be obtained by following the same approach.
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) ω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, G0 needs to be replaced by 1/G0 by again using the distances to poles and zeros trick to get the magnitude response. When cut is desired, G0 is always less than 1.
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:
The same transformation must be applied to all other equations for boost and cut filters in order to obtain the high-pass filter prototypes.
In practical applications, asymmetric band filters are needed. Such asymmetric filters can be obtained from the above described building blocks.
Starting with the boost example, the band filter can be easily created b 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
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
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/octive to 24 dB/octive.
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.
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.
Each of the biquads blocks for each of the shelving filters illustrated in
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
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.
This application claims the benefit of U.S. Provisional Patent Application No. 61/829,988 filed May 31 2013, which is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
61829988 | May 2013 | US |